Package com.vmware.nsx_policy.model
Class PolicyKubernetesService.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyKubernetesService.Builder
-
- Enclosing class:
- PolicyKubernetesService
public static final class PolicyKubernetesService.Builder extends java.lang.Object
Builder class forPolicyKubernetesService
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPolicyKubernetesService
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyKubernetesService
build()
PolicyKubernetesService.Builder
setClusterIps(java.util.List<java.lang.String> clusterIps)
The cluster ip addresses of kubernetes service resourcePolicyKubernetesService.Builder
setDisplayName(java.lang.String displayName)
The name of kubernetes resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.PolicyKubernetesService.Builder
setExternalId(java.lang.String externalId)
The id of kubernetes resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.PolicyKubernetesService.Builder
setLoadBalanceIngresses(java.util.List<PolicyKubernetesServiceLoadBalancerIngress> loadBalanceIngresses)
The load balance ingress of kubernetes service resourcePolicyKubernetesService.Builder
setNodePortLocalEndpoints(java.util.List<PolicyKubernetesServiceNodePortLocalEndpoint> nodePortLocalEndpoints)
The node port local endpoints of kubernetes service resourcePolicyKubernetesService.Builder
setType(java.lang.String type)
The type of kubernetes service resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyKubernetesService
.
-
-
Method Detail
-
setDisplayName
public PolicyKubernetesService.Builder setDisplayName(java.lang.String displayName)
The name of kubernetes resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
displayName
- New value for the property.
-
setExternalId
public PolicyKubernetesService.Builder setExternalId(java.lang.String externalId)
The id of kubernetes resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
externalId
- New value for the property.
-
setClusterIps
public PolicyKubernetesService.Builder setClusterIps(java.util.List<java.lang.String> clusterIps)
The cluster ip addresses of kubernetes service resource- Parameters:
clusterIps
- New value for the property.
-
setLoadBalanceIngresses
public PolicyKubernetesService.Builder setLoadBalanceIngresses(java.util.List<PolicyKubernetesServiceLoadBalancerIngress> loadBalanceIngresses)
The load balance ingress of kubernetes service resource- Parameters:
loadBalanceIngresses
- New value for the property.
-
setNodePortLocalEndpoints
public PolicyKubernetesService.Builder setNodePortLocalEndpoints(java.util.List<PolicyKubernetesServiceNodePortLocalEndpoint> nodePortLocalEndpoints)
The node port local endpoints of kubernetes service resource- Parameters:
nodePortLocalEndpoints
- New value for the property.
-
setType
public PolicyKubernetesService.Builder setType(java.lang.String type)
The type of kubernetes service resource This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
type
- New value for the property.
-
build
public PolicyKubernetesService build()
-
-