Package com.vmware.nsx_policy.model
Class NicMetadata.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.NicMetadata.Builder
-
- Enclosing class:
- NicMetadata
public static final class NicMetadata.Builder extends java.lang.ObjectBuilder class forNicMetadata.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofNicMetadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NicMetadatabuild()NicMetadata.BuildersetInterfaceIndex(java.lang.Long interfaceIndex)Network Interface index.NicMetadata.BuildersetInterfaceLabel(java.lang.String interfaceLabel)Network Interface label.NicMetadata.BuildersetInterfaceType(java.lang.String interfaceType)Possible values are:NicMetadata.INTERFACE_TYPE_MANAGEMENTNicMetadata.INTERFACE_TYPE_DATA1NicMetadata.INTERFACE_TYPE_DATA2NicMetadata.INTERFACE_TYPE_HA1NicMetadata.INTERFACE_TYPE_HA2NicMetadata.INTERFACE_TYPE_CONTROLInterface that needs to be configured on the partner appliance.NicMetadata.BuildersetTransports(java.util.List<java.lang.String> transports)Possible values are:NicMetadata.TRANSPORTS_L2_BRIDGENicMetadata.TRANSPORTS_L3_ROUTEDNicMetadata.TRANSPORTS_NSHTransport Type of the service, which is the mechanism of redirecting the traffic to the the partner appliance.NicMetadata.BuildersetUserConfigurable(java.lang.Boolean userConfigurable)Used to specify if the given interface needs configuration.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofNicMetadata.
-
-
Method Detail
-
setInterfaceIndex
public NicMetadata.Builder setInterfaceIndex(java.lang.Long interfaceIndex)
Network Interface index. format: int64- Parameters:
interfaceIndex- New value for the property.
-
setInterfaceLabel
public NicMetadata.Builder setInterfaceLabel(java.lang.String interfaceLabel)
Network Interface label.- Parameters:
interfaceLabel- New value for the property.
-
setInterfaceType
public NicMetadata.Builder setInterfaceType(java.lang.String interfaceType)
Possible values are: Interface that needs to be configured on the partner appliance. Ex. MANAGEMENT, DATA1, DATA2, HA1, HA2, CONTROL.- Parameters:
interfaceType- New value for the property.
-
setTransports
public NicMetadata.Builder setTransports(java.util.List<java.lang.String> transports)
Possible values are: Transport Type of the service, which is the mechanism of redirecting the traffic to the the partner appliance. Transport type is required if Service caters to any functionality other than EPP and MPS. Here, the transports array specifies the kinds of transport where this particular NIC is user configurable. If nothing is specified, and the \"user_configurable\" flag is true, then user configuration will be allowed for all transports. If any transport is/are specified, then it will be considered as user configurable for the specified transports only.\"- Parameters:
transports- New value for the property.
-
setUserConfigurable
public NicMetadata.Builder setUserConfigurable(java.lang.Boolean userConfigurable)
Used to specify if the given interface needs configuration. Management nics will always need the configuration, for others it will be use case specific. For example, a DATA NIC may be user configurable if the appliance is deployed in certain mode, such as L3_ROUTED.- Parameters:
userConfigurable- New value for the property.
-
build
public NicMetadata build()
-
-