Class Service
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.vnmonitoring.model.Service
-
@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 aServiceGateway
.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 theService.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 theService.Builder
, which maintain a set of all explicitly set fields calledService.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Service.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
Service
@Deprecated @ConstructorProperties({"cidrBlock","description","id","name"}) public Service(String cidrBlock, String description, String id, String name)
Deprecated.
-
-
Method Detail
-
builder
public static Service.Builder builder()
Create a new builder.
-
toBuilder
public Service.Builder toBuilder()
-
getCidrBlock
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). SeeSecurityList
.Example: oci-phx-objectstorage
- Returns:
- the value
-
getDescription
public String getDescription()
Description of the Oracle service or services covered by this Service object.Example: OCI PHX Object Storage
- Returns:
- the value
-
getName
public String getName()
Name of the Service object.This name can change and is not guaranteed to be unique.
Example: OCI PHX Object Storage
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-