Package com.oracle.bmc.servicemesh.model
Class ExternalServiceAccessPolicyTarget.Builder
- java.lang.Object
-
- com.oracle.bmc.servicemesh.model.ExternalServiceAccessPolicyTarget.Builder
-
- Enclosing class:
- ExternalServiceAccessPolicyTarget
public static class ExternalServiceAccessPolicyTarget.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalServiceAccessPolicyTarget
build()
ExternalServiceAccessPolicyTarget.Builder
copy(ExternalServiceAccessPolicyTarget model)
ExternalServiceAccessPolicyTarget.Builder
hostnames(List<String> hostnames)
The hostnames of the external service.ExternalServiceAccessPolicyTarget.Builder
ipAddresses(List<String> ipAddresses)
The ipAddresses of the external service in CIDR notation.ExternalServiceAccessPolicyTarget.Builder
ports(List<Integer> ports)
Ports exposed by an external service.ExternalServiceAccessPolicyTarget.Builder
protocol(ExternalServiceAccessPolicyTarget.Protocol protocol)
Protocol of the external service
-
-
-
Method Detail
-
hostnames
public ExternalServiceAccessPolicyTarget.Builder hostnames(List<String> hostnames)
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.
- Parameters:
hostnames
- the value to set- Returns:
- this builder
-
ipAddresses
public ExternalServiceAccessPolicyTarget.Builder ipAddresses(List<String> ipAddresses)
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.
- Parameters:
ipAddresses
- the value to set- Returns:
- this builder
-
ports
public ExternalServiceAccessPolicyTarget.Builder ports(List<Integer> ports)
Ports exposed by an external service.If left empty all ports will be allowed.
- Parameters:
ports
- the value to set- Returns:
- this builder
-
protocol
public ExternalServiceAccessPolicyTarget.Builder protocol(ExternalServiceAccessPolicyTarget.Protocol protocol)
Protocol of the external service- Parameters:
protocol
- the value to set- Returns:
- this builder
-
build
public ExternalServiceAccessPolicyTarget build()
-
copy
public ExternalServiceAccessPolicyTarget.Builder copy(ExternalServiceAccessPolicyTarget model)
-
-