public static class ExternalServiceAccessPolicyTargetDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ExternalServiceAccessPolicyTargetDetails |
build() |
ExternalServiceAccessPolicyTargetDetails.Builder |
copy(ExternalServiceAccessPolicyTargetDetails model) |
ExternalServiceAccessPolicyTargetDetails.Builder |
hostnames(List<String> hostnames)
The hostnames of the external service.
|
ExternalServiceAccessPolicyTargetDetails.Builder |
ipAddresses(List<String> ipAddresses)
The ipAddresses of the external service in CIDR notation.
|
ExternalServiceAccessPolicyTargetDetails.Builder |
ports(List<Integer> ports)
Ports exposed by an external service.
|
ExternalServiceAccessPolicyTargetDetails.Builder |
protocol(ExternalServiceAccessPolicyTargetDetails.Protocol protocol)
Protocol of the external service
|
public ExternalServiceAccessPolicyTargetDetails.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.
hostnames
- the value to setpublic ExternalServiceAccessPolicyTargetDetails.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.
ipAddresses
- the value to setpublic ExternalServiceAccessPolicyTargetDetails.Builder ports(List<Integer> ports)
Ports exposed by an external service. If left empty all ports will be allowed.
ports
- the value to setpublic ExternalServiceAccessPolicyTargetDetails.Builder protocol(ExternalServiceAccessPolicyTargetDetails.Protocol protocol)
Protocol of the external service
protocol
- the value to setpublic ExternalServiceAccessPolicyTargetDetails build()
public ExternalServiceAccessPolicyTargetDetails.Builder copy(ExternalServiceAccessPolicyTargetDetails model)
Copyright © 2016–2024. All rights reserved.