Package com.dropbox.core.v2.openid
Class UserInfoError.Builder
- java.lang.Object
-
- com.dropbox.core.v2.openid.UserInfoError.Builder
-
- Enclosing class:
- UserInfoError
public static class UserInfoError.Builder extends java.lang.Object
Builder forUserInfoError
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ErrUnion
err
protected java.lang.String
errorMessage
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserInfoError
build()
Builds an instance ofUserInfoError
configured with this builder's valuesUserInfoError.Builder
withErr(ErrUnion err)
Set value for optional field.UserInfoError.Builder
withErrorMessage(java.lang.String errorMessage)
Set value for optional field.
-
-
-
Field Detail
-
err
protected ErrUnion err
-
errorMessage
protected java.lang.String errorMessage
-
-
Method Detail
-
withErr
public UserInfoError.Builder withErr(ErrUnion err)
Set value for optional field.- Returns:
- this builder
-
withErrorMessage
public UserInfoError.Builder withErrorMessage(java.lang.String errorMessage)
Set value for optional field.If left unset or set to
null
, defaults to""
.- Parameters:
errorMessage
- Brief explanation of the error. Must not benull
. Defaults to""
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
build
public UserInfoError build()
Builds an instance ofUserInfoError
configured with this builder's values- Returns:
- new instance of
UserInfoError
-
-