Class PolicyApiError.Builder

  • Enclosing class:
    PolicyApiError

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

      • Builder

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