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().

  • Method Details

    • userCode

      public String userCode()
      Shows the code that you must copy and then specify on the Microsoft authentication portal.
      Specified by:
      userCode in interface O365DeviceCodeResponse
    • verificationUrl

      public String verificationUrl()
      Shows the verification URL that you must open to sign in to Microsoft Azure.
      Specified by:
      verificationUrl in interface O365DeviceCodeResponse
    • expiresIn

      public long expiresIn()
      Shows the lifespan of the code in milliseconds.
      Specified by:
      expiresIn in interface O365DeviceCodeResponse
    • message

      public String message()
      Shows the help message.
      Specified by:
      message in interface O365DeviceCodeResponse
    • withUserCode

      public final ImmutableO365DeviceCodeResponse withUserCode(String value)
      Copy the current immutable object by setting a value for the userCode attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for userCode
      Returns:
      A modified copy of the this object
    • withVerificationUrl

      public final ImmutableO365DeviceCodeResponse withVerificationUrl(String value)
      Copy the current immutable object by setting a value for the verificationUrl attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for verificationUrl
      Returns:
      A modified copy of the this object
    • withExpiresIn

      public final ImmutableO365DeviceCodeResponse withExpiresIn(long value)
      Copy the current immutable object by setting a value for the expiresIn attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for expiresIn
      Returns:
      A modified copy of the this object
    • withMessage

      public final ImmutableO365DeviceCodeResponse withMessage(String value)
      Copy the current immutable object by setting a value for the message attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for message
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableO365DeviceCodeResponse that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: userCode, verificationUrl, expiresIn, message.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value O365DeviceCodeResponse with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a O365DeviceCodeResponse value. 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

      public static ImmutableO365DeviceCodeResponse.Builder builder()
      Creates a builder for ImmutableO365DeviceCodeResponse.
       ImmutableO365DeviceCodeResponse.builder()
          .userCode(String) // required userCode
          .verificationUrl(String) // required verificationUrl
          .expiresIn(long) // required expiresIn
          .message(String) // required message
          .build();
       
      Returns:
      A new ImmutableO365DeviceCodeResponse builder