Class PhoneAuthenticationMethod

All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class PhoneAuthenticationMethod extends AuthenticationMethod implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Phone Authentication Method.
  • Field Details

    • phoneNumber

      @SerializedName(value="phoneNumber", alternate="PhoneNumber") @Expose @Nullable public String phoneNumber
      The Phone Number. The phone number to text or call for authentication. Phone numbers use the format +{country code} {number}x{extension}, with extension optional. For example, +1 5555551234 or +1 5555551234x123 are valid. Numbers are rejected when creating or updating if they do not match the required format.
    • phoneType

      @SerializedName(value="phoneType", alternate="PhoneType") @Expose @Nullable public AuthenticationPhoneType phoneType
      The Phone Type. The type of this phone. Possible values are: mobile, alternateMobile, or office.
    • smsSignInState

      @SerializedName(value="smsSignInState", alternate="SmsSignInState") @Expose @Nullable public AuthenticationMethodSignInState smsSignInState
      The Sms Sign In State. Whether a phone is ready to be used for SMS sign-in or not. Possible values are: notSupported, notAllowedByPolicy, notEnabled, phoneNumberNotUnique, ready, or notConfigured, unknownFutureValue.
  • Constructor Details

    • PhoneAuthenticationMethod

      public PhoneAuthenticationMethod()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class AuthenticationMethod
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to