Package com.vmware.nsx_policy.model
Class ApiError.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ApiError.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiErrorbuild()ApiError.BuildersetDetails(java.lang.String details)Further details about the errorApiError.BuildersetErrorCode(java.lang.Long errorCode)A numeric error code format: int64ApiError.BuildersetErrorData(com.vmware.vapi.bindings.Structure errorData)Additional data about the errorApiError.BuildersetErrorMessage(java.lang.String errorMessage)A description of the errorApiError.BuildersetModuleName(java.lang.String moduleName)The module name where the error occurredApiError.BuildersetRelatedErrors(java.util.List<RelatedApiError> relatedErrors)Other errors related to this error
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofApiError.
-
-
Method Detail
-
setDetails
public ApiError.Builder setDetails(java.lang.String details)
Further details about the error- Parameters:
details- New value for the property.
-
setErrorCode
public ApiError.Builder setErrorCode(java.lang.Long errorCode)
A numeric error code format: int64- Parameters:
errorCode- New value for the property.
-
setErrorData
public ApiError.Builder setErrorData(com.vmware.vapi.bindings.Structure errorData)
Additional data about the error- Parameters:
errorData- New value for the property.
-
setErrorMessage
public ApiError.Builder setErrorMessage(java.lang.String errorMessage)
A description of the error- Parameters:
errorMessage- New value for the property.
-
setModuleName
public ApiError.Builder setModuleName(java.lang.String moduleName)
The module name where the error occurred- Parameters:
moduleName- New value for the property.
-
setRelatedErrors
public ApiError.Builder setRelatedErrors(java.util.List<RelatedApiError> relatedErrors)
Other errors related to this error- Parameters:
relatedErrors- New value for the property.
-
build
public ApiError build()
-
-