Package com.vmware.nsx_policy.model
Class NetworkPolicyImportRequest.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.NetworkPolicyImportRequest.Builder
-
- Enclosing class:
- NetworkPolicyImportRequest
public static final class NetworkPolicyImportRequest.Builder extends java.lang.Object
Builder class forNetworkPolicyImportRequest
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofNetworkPolicyImportRequest
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkPolicyImportRequest
build()
NetworkPolicyImportRequest.Builder
setNetworkPolicyIds(java.util.List<java.lang.String> networkPolicyIds)
A set of network policy UUIDs that has to be imported to NSX SecurityPolicyNetworkPolicyImportRequest.Builder
setSequenceNumberLower(java.lang.Long sequenceNumberLower)
This is an optional field.NetworkPolicyImportRequest.Builder
setSequenceNumberUpper(java.lang.Long sequenceNumberUpper)
This is an optional field.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofNetworkPolicyImportRequest
.
-
-
Method Detail
-
setNetworkPolicyIds
public NetworkPolicyImportRequest.Builder setNetworkPolicyIds(java.util.List<java.lang.String> networkPolicyIds)
A set of network policy UUIDs that has to be imported to NSX SecurityPolicy- Parameters:
networkPolicyIds
- New value for the property.
-
setSequenceNumberLower
public NetworkPolicyImportRequest.Builder setSequenceNumberLower(java.lang.Long sequenceNumberLower)
This is an optional field. If specified, the \"drop\" action policy will be placed at this position. If unspecified, the drop policy will be created after its corresponding allow policy. The default-drop policies' sequence_number = last existing policy sequence_number + 2. If you specify the sequence numbers explicitly, you must specify both sequence_number_upper and sequence_number_lower at the same time. The sequence_number_lower must be greater than sequence_number_upper. format: int32- Parameters:
sequenceNumberLower
- New value for the property.
-
setSequenceNumberUpper
public NetworkPolicyImportRequest.Builder setSequenceNumberUpper(java.lang.Long sequenceNumberUpper)
This is an optional field. If specified, the \"allow\" action policy will be placed at this position. If unspecified, the import API should find the lowest existing copy-span security policy applied to the original container cluster, and put the imported policies behind it. The allow policies' sequence_number=last existing copy-span policy sequence_number + 1 format: int32- Parameters:
sequenceNumberUpper
- New value for the property.
-
build
public NetworkPolicyImportRequest build()
-
-