Class ImmutableO365DeviceCodeResponse
java.lang.Object
com.iland.core.web.rest.response.vbo.ImmutableO365DeviceCodeResponse
- All Implemented Interfaces:
O365DeviceCodeResponse
@Generated(from="O365DeviceCodeResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableO365DeviceCodeResponse
extends Object
implements O365DeviceCodeResponse
Immutable implementation of
O365DeviceCodeResponse.
Use the builder to create immutable instances:
ImmutableO365DeviceCodeResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableO365DeviceCodeResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableO365DeviceCodeResponse.copyOf(O365DeviceCodeResponse instance) Creates an immutable copy of aO365DeviceCodeResponsevalue.booleanThis instance is equal to all instances ofImmutableO365DeviceCodeResponsethat have equal attribute values.longShows the lifespan of the code in milliseconds.inthashCode()Computes a hash code from attributes:userCode,verificationUrl,expiresIn,message.message()Shows the help message.toString()Prints the immutable valueO365DeviceCodeResponsewith attribute values.userCode()Shows the code that you must copy and then specify on the Microsoft authentication portal.Shows the verification URL that you must open to sign in to Microsoft Azure.withExpiresIn(long value) Copy the current immutable object by setting a value for theexpiresInattribute.withMessage(String value) Copy the current immutable object by setting a value for themessageattribute.withUserCode(String value) Copy the current immutable object by setting a value for theuserCodeattribute.withVerificationUrl(String value) Copy the current immutable object by setting a value for theverificationUrlattribute.
-
Method Details
-
userCode
Shows the code that you must copy and then specify on the Microsoft authentication portal.- Specified by:
userCodein interfaceO365DeviceCodeResponse
-
verificationUrl
Shows the verification URL that you must open to sign in to Microsoft Azure.- Specified by:
verificationUrlin interfaceO365DeviceCodeResponse
-
expiresIn
public long expiresIn()Shows the lifespan of the code in milliseconds.- Specified by:
expiresInin interfaceO365DeviceCodeResponse
-
message
Shows the help message.- Specified by:
messagein interfaceO365DeviceCodeResponse
-
withUserCode
Copy the current immutable object by setting a value for theuserCodeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userCode- Returns:
- A modified copy of the
thisobject
-
withVerificationUrl
Copy the current immutable object by setting a value for theverificationUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for verificationUrl- Returns:
- A modified copy of the
thisobject
-
withExpiresIn
Copy the current immutable object by setting a value for theexpiresInattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for expiresIn- Returns:
- A modified copy of the
thisobject
-
withMessage
Copy the current immutable object by setting a value for themessageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for message- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableO365DeviceCodeResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:userCode,verificationUrl,expiresIn,message. -
toString
Prints the immutable valueO365DeviceCodeResponsewith attribute values. -
copyOf
Creates an immutable copy of aO365DeviceCodeResponsevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable O365DeviceCodeResponse instance
-
builder
Creates a builder forImmutableO365DeviceCodeResponse.ImmutableO365DeviceCodeResponse.builder() .userCode(String) // requireduserCode.verificationUrl(String) // requiredverificationUrl.expiresIn(long) // requiredexpiresIn.message(String) // requiredmessage.build();- Returns:
- A new ImmutableO365DeviceCodeResponse builder
-