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