Class ImmutableO365DeviceCodeResponse.Builder
java.lang.Object
com.iland.core.web.rest.response.vbo.ImmutableO365DeviceCodeResponse.Builder
- Enclosing class:
- ImmutableO365DeviceCodeResponse
@Generated(from="O365DeviceCodeResponse",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableO365DeviceCodeResponse.Builder
extends Object
Builds instances of type
ImmutableO365DeviceCodeResponse.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableO365DeviceCodeResponse.expiresIn(long expiresIn) Initializes the value for theexpiresInattribute.from(O365DeviceCodeResponse instance) Fill a builder with attribute values from the providedO365DeviceCodeResponseinstance.Initializes the value for themessageattribute.Initializes the value for theuserCodeattribute.verificationUrl(String verificationUrl) Initializes the value for theverificationUrlattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableO365DeviceCodeResponse.Builder from(O365DeviceCodeResponse instance) Fill a builder with attribute values from the providedO365DeviceCodeResponseinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
userCode
@CanIgnoreReturnValue public final ImmutableO365DeviceCodeResponse.Builder userCode(String userCode) Initializes the value for theuserCodeattribute.- Parameters:
userCode- The value for userCode- Returns:
thisbuilder for use in a chained invocation
-
verificationUrl
@CanIgnoreReturnValue public final ImmutableO365DeviceCodeResponse.Builder verificationUrl(String verificationUrl) Initializes the value for theverificationUrlattribute.- Parameters:
verificationUrl- The value for verificationUrl- Returns:
thisbuilder for use in a chained invocation
-
expiresIn
@CanIgnoreReturnValue public final ImmutableO365DeviceCodeResponse.Builder expiresIn(long expiresIn) Initializes the value for theexpiresInattribute.- Parameters:
expiresIn- The value for expiresIn- Returns:
thisbuilder for use in a chained invocation
-
message
Initializes the value for themessageattribute.- Parameters:
message- The value for message- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableO365DeviceCodeResponse.- Returns:
- An immutable instance of O365DeviceCodeResponse
- Throws:
IllegalStateException- if any required attributes are missing
-