Package com.dropbox.core.v2.riviera
Class GetMarkdownAsyncError.Builder
java.lang.Object
com.dropbox.core.v2.riviera.GetMarkdownAsyncError.Builder
- Enclosing class:
GetMarkdownAsyncError
Builder for
GetMarkdownAsyncError.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofGetMarkdownAsyncErrorconfigured with this builder's valueswithErrorCode(ErrorCode errorCode) Set value for optional field.withErrorDetails(MarkdownConversionApiV2Error errorDetails) Set value for optional field.
-
Field Details
-
errorCode
-
errorDetails
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withErrorCode
Set value for optional field.If left unset or set to
null, defaults toErrorCode.UNKNOWN_ERROR.- Parameters:
errorCode- Must not benull. Defaults toErrorCode.UNKNOWN_ERRORwhen set tonull.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withErrorDetails
Set value for optional field.- Returns:
- this builder
-
build
Builds an instance ofGetMarkdownAsyncErrorconfigured with this builder's values- Returns:
- new instance of
GetMarkdownAsyncError
-