public static final class RoutesTypes.Info.Builder
extends java.lang.Object
RoutesTypes.Info
.Constructor and Description |
---|
Builder(java.lang.String network,
long prefixLength)
Constructor with parameters for the required properties of
RoutesTypes.Info . |
Modifier and Type | Method and Description |
---|---|
RoutesTypes.Info |
build() |
RoutesTypes.Info.Builder |
setGatewayAddress(java.lang.String gatewayAddress)
Where to send the packets for this route.
|
RoutesTypes.Info.Builder |
setInterfaceIndex(java.lang.Long interfaceIndex)
The network interface associated with this route.
|
public Builder(java.lang.String network, long prefixLength)
RoutesTypes.Info
.public RoutesTypes.Info.Builder setGatewayAddress(java.lang.String gatewayAddress)
null
no gateway is set for the route.gatewayAddress
- New value for the property.public RoutesTypes.Info.Builder setInterfaceIndex(java.lang.Long interfaceIndex)
Interfaces.list(java.lang.String)
The
index refers to the relative position of an element in a List
.
For example, an index of 0 refers to the first element in the List
while an index of 1 refers to the second element. This property
was added in vSphere API 7.0.0.0.
If null
the route is not associated with a network interface.interfaceIndex
- New value for the property.public RoutesTypes.Info build()