Package com.vmware.nsx_policy.model
Class PolicyApiError.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyApiError.Builder
-
- Enclosing class:
- PolicyApiError
public static final class PolicyApiError.Builder extends java.lang.Object
Builder class forPolicyApiError
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPolicyApiError
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyApiError
build()
PolicyApiError.Builder
setDetails(java.lang.String details)
Further details about the errorPolicyApiError.Builder
setErrorCode(java.lang.Long errorCode)
A numeric error code format: int64PolicyApiError.Builder
setErrorData(com.vmware.vapi.bindings.Structure errorData)
Additional data about the errorPolicyApiError.Builder
setErrorMessage(java.lang.String errorMessage)
A description of the errorPolicyApiError.Builder
setModuleName(java.lang.String moduleName)
The module name where the error occurredPolicyApiError.Builder
setRelatedErrors(java.util.List<PolicyRelatedApiError> relatedErrors)
Other errors related to this error
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyApiError
.
-
-
Method Detail
-
setDetails
public PolicyApiError.Builder setDetails(java.lang.String details)
Further details about the error- Parameters:
details
- New value for the property.
-
setErrorCode
public PolicyApiError.Builder setErrorCode(java.lang.Long errorCode)
A numeric error code format: int64- Parameters:
errorCode
- New value for the property.
-
setErrorData
public PolicyApiError.Builder setErrorData(com.vmware.vapi.bindings.Structure errorData)
Additional data about the error- Parameters:
errorData
- New value for the property.
-
setErrorMessage
public PolicyApiError.Builder setErrorMessage(java.lang.String errorMessage)
A description of the error- Parameters:
errorMessage
- New value for the property.
-
setModuleName
public PolicyApiError.Builder setModuleName(java.lang.String moduleName)
The module name where the error occurred- Parameters:
moduleName
- New value for the property.
-
setRelatedErrors
public PolicyApiError.Builder setRelatedErrors(java.util.List<PolicyRelatedApiError> relatedErrors)
Other errors related to this error- Parameters:
relatedErrors
- New value for the property.
-
build
public PolicyApiError build()
-
-