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 Lag
build()
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.Lag.Builder
setLoadBalanceAlgorithm(java.lang.String loadBalanceAlgorithm)
Possible values are:Lag.LOAD_BALANCE_ALGORITHM_SRCMAC
Lag.LOAD_BALANCE_ALGORITHM_DESTMAC
Lag.LOAD_BALANCE_ALGORITHM_SRCDESTMAC
Lag.LOAD_BALANCE_ALGORITHM_SRCDESTIPVLAN
Lag.LOAD_BALANCE_ALGORITHM_SRCDESTMACIPPORT
LACP load balance AlgorithmLag.Builder
setMode(java.lang.String mode)
Possible values are:Lag.MODE_ACTIVE
Lag.MODE_PASSIVE
LACP group modeLag.Builder
setName(java.lang.String name)
Lag nameLag.Builder
setNumberOfUplinks(java.lang.Long numberOfUplinks)
number of uplinks format: int32Lag.Builder
setTimeoutType(java.lang.String timeoutType)
Possible values are:Lag.TIMEOUT_TYPE_SLOW
Lag.TIMEOUT_TYPE_FAST
LACP timeout typeLag.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.
-
-
-
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()
-
-