Package com.vmware.nsx_policy.model
Class PolicyKubernetesServiceNodePortLocalEndpoint.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyKubernetesServiceNodePortLocalEndpoint.Builder
-
- Enclosing class:
- PolicyKubernetesServiceNodePortLocalEndpoint
public static final class PolicyKubernetesServiceNodePortLocalEndpoint.Builder extends java.lang.Object
Builder class forPolicyKubernetesServiceNodePortLocalEndpoint
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPolicyKubernetesServiceNodePortLocalEndpoint
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyKubernetesServiceNodePortLocalEndpoint
build()
PolicyKubernetesServiceNodePortLocalEndpoint.Builder
setNodeIp(java.lang.String nodeIp)
The node ip 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.PolicyKubernetesServiceNodePortLocalEndpoint.Builder
setNodePort(java.lang.String nodePort)
The node port 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.PolicyKubernetesServiceNodePortLocalEndpoint.Builder
setProtocol(java.lang.String protocol)
Possible values are:PolicyKubernetesServiceNodePortLocalEndpoint.PROTOCOL_TCP
PolicyKubernetesServiceNodePortLocalEndpoint.PROTOCOL_UDP
PolicyKubernetesServiceNodePortLocalEndpoint.PROTOCOL_SCTP
Protocol of endpoint
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyKubernetesServiceNodePortLocalEndpoint
.
-
-
Method Detail
-
setNodeIp
public PolicyKubernetesServiceNodePortLocalEndpoint.Builder setNodeIp(java.lang.String nodeIp)
The node ip 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:
nodeIp
- New value for the property.
-
setNodePort
public PolicyKubernetesServiceNodePortLocalEndpoint.Builder setNodePort(java.lang.String nodePort)
The node port 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:
nodePort
- New value for the property.
-
setProtocol
public PolicyKubernetesServiceNodePortLocalEndpoint.Builder setProtocol(java.lang.String protocol)
Possible values are: Protocol of endpoint- Parameters:
protocol
- New value for the property.
-
build
public PolicyKubernetesServiceNodePortLocalEndpoint build()
-
-