@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class Service extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
An object that represents one or multiple Oracle services that you can enable for a ServiceGateway
. In the User Guide topic Access to Oracle Services: Service
Gateway, the term
service CIDR label is used to refer to the string that represents the regional public IP
address ranges of the Oracle service or services covered by a given Service
object. That
unique string is the value of the Service
object’s cidrBlock
attribute.
Note: Objects should always be created or deserialized using the Service.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Service.Builder
, which maintain a
set of all explicitly set fields called Service.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Service.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Service(String cidrBlock,
String description,
String id,
String name)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Service.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCidrBlock()
A string that represents the regional public IP address ranges for the Oracle service or
services covered by this
Service object. |
String |
getDescription()
Description of the Oracle service or services covered by this
Service object. |
String |
getId()
The
Service object’s
OCID. |
String |
getName()
Name of the
Service object. |
int |
hashCode() |
Service.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"cidrBlock","description","id","name"}) public Service(String cidrBlock, String description, String id, String name)
public static Service.Builder builder()
Create a new builder.
public Service.Builder toBuilder()
public String getCidrBlock()
A string that represents the regional public IP address ranges for the Oracle service or
services covered by this Service
object. Also known as the Service
object’s
service CIDR label.
When you set up a route rule to route traffic to the service gateway, use this value as
the rule's destination. See RouteTable
. Also, when you set up a security list rule to
cover traffic with the service gateway, use the cidrBlock
value as the rule's
destination (for an egress rule) or the source (for an ingress rule). See SecurityList
.
Example: oci-phx-objectstorage
public String getDescription()
Description of the Oracle service or services covered by this Service
object.
Example: OCI PHX Object Storage
public String getName()
Name of the Service
object. This name can change and is not guaranteed to be unique.
Example: OCI PHX Object Storage
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.