Package com.vmware.nsx_policy.model
Class ImportErrorMessage.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ImportErrorMessage.Builder
-
- Enclosing class:
- ImportErrorMessage
public static final class ImportErrorMessage.Builder extends java.lang.Object
Builder class forImportErrorMessage
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofImportErrorMessage
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportErrorMessage
build()
ImportErrorMessage.Builder
setErrors(java.util.List<ImportErrorMessageDetail> errors)
Contains a list of errors against all network policy rules and fields failed during import.ImportErrorMessage.Builder
setNetworkPolicyId(java.lang.String networkPolicyId)
K8s Network Policy ID.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofImportErrorMessage
.
-
-
Method Detail
-
setErrors
public ImportErrorMessage.Builder setErrors(java.util.List<ImportErrorMessageDetail> errors)
Contains a list of errors against all network policy rules and fields failed during import.- Parameters:
errors
- New value for the property.
-
setNetworkPolicyId
public ImportErrorMessage.Builder setNetworkPolicyId(java.lang.String networkPolicyId)
K8s Network Policy ID. If it's not set, the error_message is related to the overall import operation but not to specific K8s Network Policy.- Parameters:
networkPolicyId
- New value for the property.
-
build
public ImportErrorMessage build()
-
-