@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class Service extends 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.
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
ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
ExplicitlySetBmcModel.__explicitlySet__
into account. The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
Service.Builder |
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 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 ExplicitlySetBmcModel
public int hashCode()
hashCode
in class ExplicitlySetBmcModel
Copyright © 2016–2022. All rights reserved.