Package com.vmware.nsx_policy.model
Class LacpGroupConfigInfo.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.LacpGroupConfigInfo.Builder
-
- Enclosing class:
- LacpGroupConfigInfo
public static final class LacpGroupConfigInfo.Builder extends java.lang.Object
Builder class forLacpGroupConfigInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofLacpGroupConfigInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LacpGroupConfigInfo
build()
LacpGroupConfigInfo.Builder
setKey(java.lang.String key)
The key represents the identifier for the group that is unique across VC.LacpGroupConfigInfo.Builder
setLoadBalanceAlgorithm(java.lang.String loadBalanceAlgorithm)
Load balance algorithm used in LACP group.LacpGroupConfigInfo.Builder
setMode(java.lang.String mode)
Possible values are:LacpGroupConfigInfo.MODE_ACTIVE
LacpGroupConfigInfo.MODE_PASSIVE
The mode of LACP can be ACTIVE or PASSIVE.LacpGroupConfigInfo.Builder
setName(java.lang.String name)
The display name of the LACP group.LacpGroupConfigInfo.Builder
setTimeoutType(java.lang.String timeoutType)
Possible values are:LacpGroupConfigInfo.TIMEOUT_TYPE_FAST
LacpGroupConfigInfo.TIMEOUT_TYPE_SLOW
To set the lag mode as fast for LACP.LacpGroupConfigInfo.Builder
setUplinkNames(java.util.List<java.lang.String> uplinkNames)
Names for the uplink ports in the group.LacpGroupConfigInfo.Builder
setUplinkNum(java.lang.Long uplinkNum)
The number of uplink ports format: int64LacpGroupConfigInfo.Builder
setUplinkPortKeys(java.util.List<java.lang.String> uplinkPortKeys)
Keys for the uplink ports in the group.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofLacpGroupConfigInfo
.
-
-
Method Detail
-
setKey
public LacpGroupConfigInfo.Builder setKey(java.lang.String key)
The key represents the identifier for the group that is unique across VC.- Parameters:
key
- New value for the property.
-
setLoadBalanceAlgorithm
public LacpGroupConfigInfo.Builder setLoadBalanceAlgorithm(java.lang.String loadBalanceAlgorithm)
Load balance algorithm used in LACP group. The possible values are dictated by the values available in VC. Please refer VMwareDvsLacpLoadBalanceAlgorithm documentation for a full list of values. A few examples are srcDestIp where source and destination IP are considered, srcIp where only source IP is considered.- Parameters:
loadBalanceAlgorithm
- New value for the property.
-
setMode
public LacpGroupConfigInfo.Builder setMode(java.lang.String mode)
Possible values are: The mode of LACP can be ACTIVE or PASSIVE. If the mode is ACTIVE, LACP is enabled unconditionally. If the mode is PASSIVE, LACP is enabled only if LACP device is detected.- Parameters:
mode
- New value for the property.
-
setName
public LacpGroupConfigInfo.Builder setName(java.lang.String name)
The display name of the LACP group.- Parameters:
name
- New value for the property.
-
setTimeoutType
public LacpGroupConfigInfo.Builder setTimeoutType(java.lang.String timeoutType)
Possible values are: To set the lag mode as fast for LACP. By default, it will be slow.- Parameters:
timeoutType
- New value for the property.
-
setUplinkNames
public LacpGroupConfigInfo.Builder setUplinkNames(java.util.List<java.lang.String> uplinkNames)
Names for the uplink ports in the group.- Parameters:
uplinkNames
- New value for the property.
-
setUplinkNum
public LacpGroupConfigInfo.Builder setUplinkNum(java.lang.Long uplinkNum)
The number of uplink ports format: int64- Parameters:
uplinkNum
- New value for the property.
-
setUplinkPortKeys
public LacpGroupConfigInfo.Builder setUplinkPortKeys(java.util.List<java.lang.String> uplinkPortKeys)
Keys for the uplink ports in the group. Each uplink port is assigned a key that is unique across VC.- Parameters:
uplinkPortKeys
- New value for the property.
-
build
public LacpGroupConfigInfo build()
-
-