Class 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 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).

    • Method Detail

      • 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). See SecurityList.

        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
      • getId

        public String getId()
        The Service object’s OCID.
        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 class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel