Package com.vmware.nsx_policy.model
Class HostSwitchState.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.HostSwitchState.Builder
-
- Enclosing class:
- HostSwitchState
public static final class HostSwitchState.Builder extends java.lang.Object
Builder class forHostSwitchState
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofHostSwitchState
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostSwitchState
build()
HostSwitchState.Builder
setEndpoints(java.util.List<Endpoint> endpoints)
List of virtual tunnel endpoints which are configured on this switch This property may be present in responses from the server, but if it is present in a request to server it will be ignored.HostSwitchState.Builder
setHostSwitchId(java.lang.String hostSwitchId)
External ID of the HostSwitch This property may be present in responses from the server, but if it is present in a request to server it will be ignored.HostSwitchState.Builder
setHostSwitchName(java.lang.String hostSwitchName)
The name must be unique among all host switches specified in a given Transport Node.HostSwitchState.Builder
setHostSwitchType(java.lang.String hostSwitchType)
Possible values are:HostSwitchState.HOST_SWITCH_TYPE_NVDS
HostSwitchState.HOST_SWITCH_TYPE_VDS
VDS represents VMware vSphere Distributed Switch from vSphere that is used as HostSwitch through TransportNode or TransportNodeProfile configuration.HostSwitchState.Builder
setTransportZoneIds(java.util.List<java.lang.String> transportZoneIds)
List of Ids of TransportZones this HostSwitch belongs to 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 ofHostSwitchState
.
-
-
Method Detail
-
setEndpoints
public HostSwitchState.Builder setEndpoints(java.util.List<Endpoint> endpoints)
List of virtual tunnel endpoints which are configured on this switch 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:
endpoints
- New value for the property.
-
setHostSwitchId
public HostSwitchState.Builder setHostSwitchId(java.lang.String hostSwitchId)
External ID of the HostSwitch 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:
hostSwitchId
- New value for the property.
-
setHostSwitchName
public HostSwitchState.Builder setHostSwitchName(java.lang.String hostSwitchName)
The name must be unique among all host switches specified in a given 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:
hostSwitchName
- New value for the property.
-
setHostSwitchType
public HostSwitchState.Builder setHostSwitchType(java.lang.String hostSwitchType)
Possible values are: VDS represents VMware vSphere Distributed Switch from vSphere that is used as HostSwitch through TransportNode or TransportNodeProfile configuration. When VDS is used as a HostSwitch, Hosts have to be added to VDS from vSphere and VDS instance is created on Hosts. To configure NSX on such hosts, you can use this VDS as a HostSwitch from NSX manager. vCenter has the ownership of MTU, LAG, NIOC and LLDP configuration of such VDS backed HostSwitch. Remaining configuration (e.g. UplinkHostswitchProfile) will be managed by NSX. NVDS represents NSX Virtual Switch which is NSX native HostSwitch. All configurations of NVDS will be managed by NSX.- Parameters:
hostSwitchType
- New value for the property.
-
setTransportZoneIds
public HostSwitchState.Builder setTransportZoneIds(java.util.List<java.lang.String> transportZoneIds)
List of Ids of TransportZones this HostSwitch belongs to 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:
transportZoneIds
- New value for the property.
-
build
public HostSwitchState build()
-
-