Package com.oracle.bmc.servicemesh.model
Class ExternalServiceAccessPolicyTargetDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.servicemesh.model.AccessPolicyTargetDetails
-
- com.oracle.bmc.servicemesh.model.ExternalServiceAccessPolicyTargetDetails
-
@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 theExternalServiceAccessPolicyTargetDetails.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 theExternalServiceAccessPolicyTargetDetails.Builder
, which maintain a set of all explicitly set fields calledExternalServiceAccessPolicyTargetDetails.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
ExternalServiceAccessPolicyTargetDetails.Builder
static class
ExternalServiceAccessPolicyTargetDetails.Protocol
Protocol of the external service-
Nested classes/interfaces inherited from class com.oracle.bmc.servicemesh.model.AccessPolicyTargetDetails
AccessPolicyTargetDetails.Type
-
-
Constructor Summary
Constructors Constructor Description ExternalServiceAccessPolicyTargetDetails(List<String> hostnames, List<String> ipAddresses, List<Integer> ports, ExternalServiceAccessPolicyTargetDetails.Protocol protocol)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 serviceint
hashCode()
ExternalServiceAccessPolicyTargetDetails.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
ExternalServiceAccessPolicyTargetDetails
@Deprecated public ExternalServiceAccessPolicyTargetDetails(List<String> hostnames, List<String> ipAddresses, List<Integer> ports, ExternalServiceAccessPolicyTargetDetails.Protocol protocol)
Deprecated.
-
-
Method Detail
-
builder
public static ExternalServiceAccessPolicyTargetDetails.Builder builder()
Create a new builder.
-
toBuilder
public ExternalServiceAccessPolicyTargetDetails.Builder toBuilder()
-
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
-
getProtocol
public ExternalServiceAccessPolicyTargetDetails.Protocol getProtocol()
Protocol of the external service- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classAccessPolicyTargetDetails
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classAccessPolicyTargetDetails
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAccessPolicyTargetDetails
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAccessPolicyTargetDetails
-
-