@Generated(value="OracleSDKGenerator", comments="API Version: 20220615") public final class ExternalServiceAccessPolicyTargetDetails extends AccessPolicyTargetDetails
External service target that internal virtual services direct traffic to.
Note: Objects should always be created or deserialized using the ExternalServiceAccessPolicyTargetDetails.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 ExternalServiceAccessPolicyTargetDetails.Builder
, which maintain a
set of all explicitly set fields called ExternalServiceAccessPolicyTargetDetails.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 |
ExternalServiceAccessPolicyTargetDetails.Builder |
static class |
ExternalServiceAccessPolicyTargetDetails.Protocol
Protocol of the external service
|
AccessPolicyTargetDetails.Type
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ExternalServiceAccessPolicyTargetDetails(List<String> hostnames,
List<String> ipAddresses,
List<Integer> ports,
ExternalServiceAccessPolicyTargetDetails.Protocol protocol)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ExternalServiceAccessPolicyTargetDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<String> |
getHostnames()
The hostnames of the external service.
|
List<String> |
getIpAddresses()
The ipAddresses of the external service in CIDR notation.
|
List<Integer> |
getPorts()
Ports exposed by an external service.
|
ExternalServiceAccessPolicyTargetDetails.Protocol |
getProtocol()
Protocol of the external service
|
int |
hashCode() |
ExternalServiceAccessPolicyTargetDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public ExternalServiceAccessPolicyTargetDetails(List<String> hostnames, List<String> ipAddresses, List<Integer> ports, ExternalServiceAccessPolicyTargetDetails.Protocol protocol)
public static ExternalServiceAccessPolicyTargetDetails.Builder builder()
Create a new builder.
public ExternalServiceAccessPolicyTargetDetails.Builder toBuilder()
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.
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.
public List<Integer> getPorts()
Ports exposed by an external service. If left empty all ports will be allowed.
public ExternalServiceAccessPolicyTargetDetails.Protocol getProtocol()
Protocol of the external service
public String toString()
toString
in class AccessPolicyTargetDetails
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class AccessPolicyTargetDetails
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class AccessPolicyTargetDetails
public int hashCode()
hashCode
in class AccessPolicyTargetDetails
Copyright © 2016–2024. All rights reserved.