Package com.vmware.nsx_policy.model
Class RemoteTunnelEndpoint.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.RemoteTunnelEndpoint.Builder
-
- Enclosing class:
- RemoteTunnelEndpoint
public static final class RemoteTunnelEndpoint.Builder extends java.lang.Object
Builder class forRemoteTunnelEndpoint
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofRemoteTunnelEndpoint
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteTunnelEndpoint
build()
RemoteTunnelEndpoint.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.RemoteTunnelEndpoint.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.RemoteTunnelEndpoint.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.RemoteTunnelEndpoint.Builder
setIpv6(IPv6EndPoint ipv6)
RemoteTunnelEndpoint.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.RemoteTunnelEndpoint.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.RemoteTunnelEndpoint.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.RemoteTunnelEndpoint.Builder
setVlan(java.lang.Long vlan)
Vlan id format: int64 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 ofRemoteTunnelEndpoint
.
-
-
Method Detail
-
setDefaultGateway
public RemoteTunnelEndpoint.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 RemoteTunnelEndpoint.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 RemoteTunnelEndpoint.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 RemoteTunnelEndpoint.Builder setIpv6(IPv6EndPoint ipv6)
- Parameters:
ipv6
- New value for the property.
-
setLabel
public RemoteTunnelEndpoint.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 RemoteTunnelEndpoint.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 RemoteTunnelEndpoint.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.
-
setVlan
public RemoteTunnelEndpoint.Builder setVlan(java.lang.Long vlan)
Vlan id format: int64 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:
vlan
- New value for the property.
-
build
public RemoteTunnelEndpoint build()
-
-