Class ApiError.Builder

  • Enclosing class:
    ApiError

    public static final class ApiError.Builder
    extends java.lang.Object
    Builder class for ApiError.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of ApiError.
    • 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.