Package com.vmware.nsx_policy.model
Class NamedTeamingPolicy.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.NamedTeamingPolicy.Builder
-
- Enclosing class:
- NamedTeamingPolicy
public static final class NamedTeamingPolicy.Builder extends java.lang.Object
Builder class forNamedTeamingPolicy
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofNamedTeamingPolicy
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedTeamingPolicy
build()
NamedTeamingPolicy.Builder
setActiveList(java.util.List<Uplink> activeList)
List of Uplinks used in active listNamedTeamingPolicy.Builder
setName(java.lang.String name)
An uplink teaming policy of a given name defined in UplinkHostSwitchProfile.NamedTeamingPolicy.Builder
setPolicy(java.lang.String policy)
Possible values are:NamedTeamingPolicy.POLICY_FAILOVER_ORDER
NamedTeamingPolicy.POLICY_LOADBALANCE_SRCID
NamedTeamingPolicy.POLICY_LOADBALANCE_SRC_MAC
Teaming policyNamedTeamingPolicy.Builder
setRollingOrder(java.lang.Boolean rollingOrder)
Flag for preemptive modeNamedTeamingPolicy.Builder
setStandbyList(java.util.List<Uplink> standbyList)
List of Uplinks used in standby list
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofNamedTeamingPolicy
.
-
-
Method Detail
-
setActiveList
public NamedTeamingPolicy.Builder setActiveList(java.util.List<Uplink> activeList)
List of Uplinks used in active list- Parameters:
activeList
- New value for the property.
-
setPolicy
public NamedTeamingPolicy.Builder setPolicy(java.lang.String policy)
Possible values are: Teaming policy- Parameters:
policy
- New value for the property.
-
setRollingOrder
public NamedTeamingPolicy.Builder setRollingOrder(java.lang.Boolean rollingOrder)
Flag for preemptive mode- Parameters:
rollingOrder
- New value for the property.
-
setStandbyList
public NamedTeamingPolicy.Builder setStandbyList(java.util.List<Uplink> standbyList)
List of Uplinks used in standby list- Parameters:
standbyList
- New value for the property.
-
setName
public NamedTeamingPolicy.Builder setName(java.lang.String name)
An uplink teaming policy of a given name defined in UplinkHostSwitchProfile. The names of all NamedTeamingPolicies in an UplinkHostSwitchProfile must be different, but a name can be shared by different UplinkHostSwitchProfiles. Different TransportNodes can use different NamedTeamingPolicies having the same name in different UplinkHostSwitchProfiles to realize an uplink teaming policy on a logical switch. An uplink teaming policy on a logical switch can be any policy defined by a user; it does not have to be a single type of FAILOVER or LOADBALANCE. It can be a combination of types, for instance, a user can define a policy with name \"MyHybridTeamingPolicy\" as \"FAILOVER on all ESX TransportNodes and LOADBALANCE on all KVM TransportNodes\". The name is the key of the teaming policy and can not be changed once assigned.- Parameters:
name
- New value for the property.
-
build
public NamedTeamingPolicy build()
-
-