@NotThreadSafe public static final class ImmutableO365DeviceCodeResponse.Builder extends Object
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.
Modifier and Type | Method and Description |
---|---|
ImmutableO365DeviceCodeResponse |
build()
Builds a new
ImmutableO365DeviceCodeResponse . |
ImmutableO365DeviceCodeResponse.Builder |
expiresIn(long expiresIn)
Initializes the value for the
expiresIn attribute. |
ImmutableO365DeviceCodeResponse.Builder |
from(O365DeviceCodeResponse instance)
Fill a builder with attribute values from the provided
O365DeviceCodeResponse instance. |
ImmutableO365DeviceCodeResponse.Builder |
message(String message)
Initializes the value for the
message attribute. |
ImmutableO365DeviceCodeResponse.Builder |
userCode(String userCode)
Initializes the value for the
userCode attribute. |
ImmutableO365DeviceCodeResponse.Builder |
verificationUrl(String verificationUrl)
Initializes the value for the
verificationUrl attribute. |
public final ImmutableO365DeviceCodeResponse.Builder from(O365DeviceCodeResponse instance)
O365DeviceCodeResponse
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ImmutableO365DeviceCodeResponse.Builder userCode(String userCode)
userCode
attribute.userCode
- The value for userCodethis
builder for use in a chained invocationpublic final ImmutableO365DeviceCodeResponse.Builder verificationUrl(String verificationUrl)
verificationUrl
attribute.verificationUrl
- The value for verificationUrlthis
builder for use in a chained invocationpublic final ImmutableO365DeviceCodeResponse.Builder expiresIn(long expiresIn)
expiresIn
attribute.expiresIn
- The value for expiresInthis
builder for use in a chained invocationpublic final ImmutableO365DeviceCodeResponse.Builder message(String message)
message
attribute.message
- The value for messagethis
builder for use in a chained invocationpublic ImmutableO365DeviceCodeResponse build()
ImmutableO365DeviceCodeResponse
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.