Class NetworkPolicyImportRequest.Builder

    • 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.