Package com.vmware.nsx_policy.model
Class HostSwitchConfigOption.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.HostSwitchConfigOption.Builder
-
- Enclosing class:
- HostSwitchConfigOption
public static final class HostSwitchConfigOption.Builder extends java.lang.Object
Builder class forHostSwitchConfigOption
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofHostSwitchConfigOption
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostSwitchConfigOption
build()
HostSwitchConfigOption.Builder
setHostSwitchId(java.lang.String hostSwitchId)
This field is writable only in case of VDS type HostSwitch and system generated for NVDS type.HostSwitchConfigOption.Builder
setHostSwitchProfileIds(java.util.List<HostSwitchProfileTypeIdEntry> hostSwitchProfileIds)
Host switch profiles bound to this host switch.HostSwitchConfigOption.Builder
setIpAssignmentSpec(com.vmware.vapi.bindings.Structure ipAssignmentSpec)
HostSwitchConfigOption.Builder
setIpv6AssignmentSpec(com.vmware.vapi.bindings.Structure ipv6AssignmentSpec)
HostSwitchConfigOption.Builder
setUplinks(java.util.List<VdsUplink> uplinks)
If VDS is used as a HostSwitch this attribute must be specified.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofHostSwitchConfigOption
.
-
-
Method Detail
-
setHostSwitchId
public HostSwitchConfigOption.Builder setHostSwitchId(java.lang.String hostSwitchId)
This field is writable only in case of VDS type HostSwitch and system generated for NVDS type. For VDS type host switch, This field is used to lookup a VDS from corresponding Compute Manager and then can be configured for logical networking. For NVDS type host switch, This field is system generated and if provided will be overwritten.- Parameters:
hostSwitchId
- New value for the property.
-
setHostSwitchProfileIds
public HostSwitchConfigOption.Builder setHostSwitchProfileIds(java.util.List<HostSwitchProfileTypeIdEntry> hostSwitchProfileIds)
Host switch profiles bound to this host switch. If a profile ID is not provided for any HostSwitchProfileType that is supported by the transport node, the corresponding default profile will be bound to the host switch. If transport node is created using Policy APIs, use policyPaths instead of UUIDs.- Parameters:
hostSwitchProfileIds
- New value for the property.
-
setIpAssignmentSpec
public HostSwitchConfigOption.Builder setIpAssignmentSpec(com.vmware.vapi.bindings.Structure ipAssignmentSpec)
- Parameters:
ipAssignmentSpec
- New value for the property. When clients pass a value of this class as a parameter, the property must contain all the properties defined inIpAssignmentSpec
. When methods return a value of this class as a return value, the property will contain all the properties defined inIpAssignmentSpec
.
-
setIpv6AssignmentSpec
public HostSwitchConfigOption.Builder setIpv6AssignmentSpec(com.vmware.vapi.bindings.Structure ipv6AssignmentSpec)
- Parameters:
ipv6AssignmentSpec
- New value for the property. When clients pass a value of this class as a parameter, the property must contain all the properties defined inIpv6AssignmentSpec
. When methods return a value of this class as a return value, the property will contain all the properties defined inIpv6AssignmentSpec
.
-
setUplinks
public HostSwitchConfigOption.Builder setUplinks(java.util.List<VdsUplink> uplinks)
If VDS is used as a HostSwitch this attribute must be specified. You can associate uplinks from UplinkHostSwitchProfile to either VDS uplink or LAG. VDS uplink or LAG will inherit the global VDS level teaming policy from vSphere. NSX managed uplink or LAG will have NSX teaming policy configured through UplinkHostSwitchProfile.- Parameters:
uplinks
- New value for the property.
-
build
public HostSwitchConfigOption build()
-
-