Package com.vmware.nsx_policy.model
Class TunnelProperties.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.TunnelProperties.Builder
-
- Enclosing class:
- TunnelProperties
public static final class TunnelProperties.Builder extends java.lang.ObjectBuilder class forTunnelProperties.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofTunnelProperties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TunnelPropertiesbuild()TunnelProperties.BuildersetBfd(BFDProperties bfd)TunnelProperties.BuildersetEgressInterface(java.lang.String egressInterface)Corresponds to the interface where local_ip_address is routed.TunnelProperties.BuildersetEncap(java.lang.String encap)Possible values are:TunnelProperties.ENCAP_STTTunnelProperties.ENCAP_VXLANTunnelProperties.ENCAP_GENEVETunnelProperties.ENCAP_NONETunnelProperties.ENCAP_UNKNOWN_ENCAPTunnel encap This property may be present in responses from the server, but if it is present in a request to server it will be ignored.TunnelProperties.BuildersetLastUpdatedTime(java.lang.Long lastUpdatedTime)Time at which the Tunnel status has been fetched last time.TunnelProperties.BuildersetLatencyType(java.lang.String latencyType)TunnelProperties.BuildersetLatencyValue(java.lang.Long latencyValue)The latency value is set only when latency_type is VALID.TunnelProperties.BuildersetLinks(java.util.List<ResourceLink> links)The server will populate this field when returing the resource.TunnelProperties.BuildersetLocalIp(java.lang.String localIp)Local IP address of tunnel 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.TunnelProperties.BuildersetName(java.lang.String name)Name of tunnel This property may be present in responses from the server, but if it is present in a request to server it will be ignored.TunnelProperties.BuildersetRemoteIp(java.lang.String remoteIp)Remote IP address of tunnel 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.TunnelProperties.BuildersetRemoteNodeDisplayName(java.lang.String remoteNodeDisplayName)Represents the display name of the remote transport node at the other end of the tunnel.TunnelProperties.BuildersetRemoteNodeId(java.lang.String remoteNodeId)UUID of the remote transport node This property may be present in responses from the server, but if it is present in a request to server it will be ignored.TunnelProperties.BuildersetSchema(java.lang.String schema)Schema for this 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.TunnelProperties.BuildersetSelf(SelfResourceLink self)TunnelProperties.BuildersetStatus(java.lang.String status)Possible values are:TunnelProperties.STATUS_UPTunnelProperties.STATUS_DOWNTunnelProperties.STATUS_UNKNOWNStatus of tunnel 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 ofTunnelProperties.
-
-
Method Detail
-
setLinks
public TunnelProperties.Builder setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource. Ignored on PUT and POST. 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:
links- New value for the property.
-
setSchema
public TunnelProperties.Builder setSchema(java.lang.String schema)
Schema for this 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:
schema- New value for the property.
-
setSelf
public TunnelProperties.Builder setSelf(SelfResourceLink self)
- Parameters:
self- New value for the property.
-
setBfd
public TunnelProperties.Builder setBfd(BFDProperties bfd)
- Parameters:
bfd- New value for the property.
-
setEgressInterface
public TunnelProperties.Builder setEgressInterface(java.lang.String egressInterface)
Corresponds to the interface where local_ip_address is routed. 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:
egressInterface- New value for the property.
-
setEncap
public TunnelProperties.Builder setEncap(java.lang.String encap)
Possible values are: Tunnel encap 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:
encap- New value for the property.
-
setLastUpdatedTime
public TunnelProperties.Builder setLastUpdatedTime(java.lang.Long lastUpdatedTime)
Time at which the Tunnel status has been fetched last time. 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:
lastUpdatedTime- New value for the property.
-
setLatencyType
public TunnelProperties.Builder setLatencyType(java.lang.String latencyType)
Possible values are: Latency type. 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:
latencyType- New value for the property.
-
setLatencyValue
public TunnelProperties.Builder setLatencyValue(java.lang.Long latencyValue)
The latency value is set only when latency_type is VALID. 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:
latencyValue- New value for the property.
-
setLocalIp
public TunnelProperties.Builder setLocalIp(java.lang.String localIp)
Local IP address of tunnel 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:
localIp- New value for the property.
-
setName
public TunnelProperties.Builder setName(java.lang.String name)
Name of tunnel 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:
name- New value for the property.
-
setRemoteIp
public TunnelProperties.Builder setRemoteIp(java.lang.String remoteIp)
Remote IP address of tunnel 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:
remoteIp- New value for the property.
-
setRemoteNodeDisplayName
public TunnelProperties.Builder setRemoteNodeDisplayName(java.lang.String remoteNodeDisplayName)
Represents the display name of the remote transport node at the other end of the tunnel. 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:
remoteNodeDisplayName- New value for the property.
-
setRemoteNodeId
public TunnelProperties.Builder setRemoteNodeId(java.lang.String remoteNodeId)
UUID of the remote transport node 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:
remoteNodeId- New value for the property.
-
setStatus
public TunnelProperties.Builder setStatus(java.lang.String status)
Possible values are: Status of tunnel 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:
status- New value for the property.
-
build
public TunnelProperties build()
-
-