Package com.vmware.nsx_policy.model
Class Endpoint.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.Endpoint.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint
build()
Endpoint.Builder
setDefaultGateway(java.lang.String defaultGateway)
Gateway IP format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.Endpoint.Builder
setDeviceName(java.lang.String deviceName)
Name of the virtual tunnel endpoint This property may be present in responses from the server, but if it is present in a request to server it will be ignored.Endpoint.Builder
setIp(java.lang.String ip)
Depending upon the EndpointIpConfig used in HostSwitch, IP could be allocated either from DHCP (default) or from Static IP Pool.Endpoint.Builder
setIpv6(IPv6EndPoint ipv6)
Endpoint.Builder
setLabel(java.lang.Long label)
Unique label for this Endpoint format: int32 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.Endpoint.Builder
setMac(java.lang.String mac)
MAC address format: mac-address This property may be present in responses from the server, but if it is present in a request to server it will be ignored.Endpoint.Builder
setSubnetMask(java.lang.String subnetMask)
Subnet mask format: ip 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 ofEndpoint
.
-
-
Method Detail
-
setDefaultGateway
public Endpoint.Builder setDefaultGateway(java.lang.String defaultGateway)
Gateway IP format: ip 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:
defaultGateway
- New value for the property.
-
setDeviceName
public Endpoint.Builder setDeviceName(java.lang.String deviceName)
Name of the virtual tunnel endpoint 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:
deviceName
- New value for the property.
-
setIp
public Endpoint.Builder setIp(java.lang.String ip)
Depending upon the EndpointIpConfig used in HostSwitch, IP could be allocated either from DHCP (default) or from Static IP Pool. format: ip 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:
ip
- New value for the property.
-
setIpv6
public Endpoint.Builder setIpv6(IPv6EndPoint ipv6)
- Parameters:
ipv6
- New value for the property.
-
setLabel
public Endpoint.Builder setLabel(java.lang.Long label)
Unique label for this Endpoint format: int32 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:
label
- New value for the property.
-
setMac
public Endpoint.Builder setMac(java.lang.String mac)
MAC address format: mac-address 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:
mac
- New value for the property.
-
setSubnetMask
public Endpoint.Builder setSubnetMask(java.lang.String subnetMask)
Subnet mask format: ip 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:
subnetMask
- New value for the property.
-
build
public Endpoint build()
-
-