@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableO365DeviceCodeResponse extends Object implements O365DeviceCodeResponse
O365DeviceCodeResponse
.
Use the builder to create immutable instances:
ImmutableO365DeviceCodeResponse.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableO365DeviceCodeResponse.Builder
Builds instances of type
ImmutableO365DeviceCodeResponse . |
Modifier and Type | Method and Description |
---|---|
static ImmutableO365DeviceCodeResponse.Builder |
builder()
Creates a builder for
ImmutableO365DeviceCodeResponse . |
static ImmutableO365DeviceCodeResponse |
copyOf(O365DeviceCodeResponse instance)
Creates an immutable copy of a
O365DeviceCodeResponse value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableO365DeviceCodeResponse that have equal attribute values. |
long |
expiresIn()
Shows the lifespan of the code in milliseconds.
|
int |
hashCode()
Computes a hash code from attributes:
userCode , verificationUrl , expiresIn , message . |
String |
message()
Shows the help message.
|
String |
toString()
Prints the immutable value
O365DeviceCodeResponse with attribute values. |
String |
userCode()
Shows the code that you must copy and then specify on the Microsoft authentication portal.
|
String |
verificationUrl()
Shows the verification URL that you must open to sign in to Microsoft Azure.
|
ImmutableO365DeviceCodeResponse |
withExpiresIn(long value)
Copy the current immutable object by setting a value for the
expiresIn attribute. |
ImmutableO365DeviceCodeResponse |
withMessage(String value)
Copy the current immutable object by setting a value for the
message attribute. |
ImmutableO365DeviceCodeResponse |
withUserCode(String value)
Copy the current immutable object by setting a value for the
userCode attribute. |
ImmutableO365DeviceCodeResponse |
withVerificationUrl(String value)
Copy the current immutable object by setting a value for the
verificationUrl attribute. |
public String userCode()
userCode
in interface O365DeviceCodeResponse
public String verificationUrl()
verificationUrl
in interface O365DeviceCodeResponse
public long expiresIn()
expiresIn
in interface O365DeviceCodeResponse
public String message()
message
in interface O365DeviceCodeResponse
public final ImmutableO365DeviceCodeResponse withUserCode(String value)
userCode
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for userCodethis
objectpublic final ImmutableO365DeviceCodeResponse withVerificationUrl(String value)
verificationUrl
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for verificationUrlthis
objectpublic final ImmutableO365DeviceCodeResponse withExpiresIn(long value)
expiresIn
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for expiresInthis
objectpublic final ImmutableO365DeviceCodeResponse withMessage(String value)
message
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for messagethis
objectpublic boolean equals(@Nullable Object another)
ImmutableO365DeviceCodeResponse
that have equal attribute values.public int hashCode()
userCode
, verificationUrl
, expiresIn
, message
.public String toString()
O365DeviceCodeResponse
with attribute values.public static ImmutableO365DeviceCodeResponse copyOf(O365DeviceCodeResponse instance)
O365DeviceCodeResponse
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableO365DeviceCodeResponse.Builder builder()
ImmutableO365DeviceCodeResponse
.
ImmutableO365DeviceCodeResponse.builder() .userCode(String) // requireduserCode
.verificationUrl(String) // requiredverificationUrl
.expiresIn(long) // requiredexpiresIn
.message(String) // requiredmessage
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.