Package com.vmware.nsx_policy.model
Class Lag.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.Lag.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Lagbuild()Lag.BuildersetId(java.lang.String id)unique id This property may be present in responses from the server, but if it is present in a request to server it will be ignored.Lag.BuildersetLoadBalanceAlgorithm(java.lang.String loadBalanceAlgorithm)Possible values are:Lag.LOAD_BALANCE_ALGORITHM_SRCMACLag.LOAD_BALANCE_ALGORITHM_DESTMACLag.LOAD_BALANCE_ALGORITHM_SRCDESTMACLag.LOAD_BALANCE_ALGORITHM_SRCDESTIPVLANLag.LOAD_BALANCE_ALGORITHM_SRCDESTMACIPPORTLACP load balance AlgorithmLag.BuildersetMode(java.lang.String mode)Possible values are:Lag.MODE_ACTIVELag.MODE_PASSIVELACP group modeLag.BuildersetName(java.lang.String name)Lag nameLag.BuildersetNumberOfUplinks(java.lang.Long numberOfUplinks)number of uplinks format: int32Lag.BuildersetTimeoutType(java.lang.String timeoutType)Possible values are:Lag.TIMEOUT_TYPE_SLOWLag.TIMEOUT_TYPE_FASTLACP timeout typeLag.BuildersetUplinks(java.util.List<Uplink> uplinks)uplink names 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 ofLag.
-
-
Method Detail
-
setId
public Lag.Builder setId(java.lang.String id)
unique id 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:
id- New value for the property.
-
setLoadBalanceAlgorithm
public Lag.Builder setLoadBalanceAlgorithm(java.lang.String loadBalanceAlgorithm)
Possible values are: LACP load balance Algorithm- Parameters:
loadBalanceAlgorithm- New value for the property.
-
setMode
public Lag.Builder setMode(java.lang.String mode)
Possible values are: LACP group mode- Parameters:
mode- New value for the property.
-
setName
public Lag.Builder setName(java.lang.String name)
Lag name- Parameters:
name- New value for the property.
-
setNumberOfUplinks
public Lag.Builder setNumberOfUplinks(java.lang.Long numberOfUplinks)
number of uplinks format: int32- Parameters:
numberOfUplinks- New value for the property.
-
setTimeoutType
public Lag.Builder setTimeoutType(java.lang.String timeoutType)
Possible values are: LACP timeout type- Parameters:
timeoutType- New value for the property.
-
setUplinks
public Lag.Builder setUplinks(java.util.List<Uplink> uplinks)
uplink names 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:
uplinks- New value for the property.
-
build
public Lag build()
-
-