Class ExternalServiceAccessPolicyTarget


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20220615")
    public final class ExternalServiceAccessPolicyTarget
    extends AccessPolicyTarget
    External service target that internal virtual services direct traffic to.
    Note: Objects should always be created or deserialized using the ExternalServiceAccessPolicyTarget.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 ExternalServiceAccessPolicyTarget.Builder, which maintain a set of all explicitly set fields called ExternalServiceAccessPolicyTarget.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

      • getHostnames

        public List<String> getHostnames()
        The hostnames of the external service.

        Only applicable for HTTP and HTTPS protocols. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are “www.example.com”, “*.example.com”, “*.com”, “*”. Hostname “*” can be used to allow all hosts.

        Returns:
        the value
      • getIpAddresses

        public List<String> getIpAddresses()
        The ipAddresses of the external service in CIDR notation.

        Only applicable for TCP protocol. All requests matching the given CIDR notation will pass through. In case a wildcard CIDR “0.0.0.0/0” is provided, the same port cannot be used for a virtual service communication.

        Returns:
        the value
      • getPorts

        public List<Integer> getPorts()
        Ports exposed by an external service.

        If left empty all ports will be allowed.

        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class AccessPolicyTarget
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation