Class PhoneAuthenticationMethod

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class PhoneAuthenticationMethod extends AuthenticationMethod implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • PhoneAuthenticationMethod

      public PhoneAuthenticationMethod()
      Instantiates a new PhoneAuthenticationMethod and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static PhoneAuthenticationMethod createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a PhoneAuthenticationMethod
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class AuthenticationMethod
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getPhoneNumber

      @Nullable public String getPhoneNumber()
      Gets the phoneNumber property value. 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 don't match the required format.
      Returns:
      a String
    • getPhoneType

      @Nullable public AuthenticationPhoneType getPhoneType()
      Gets the phoneType property value. The type of this phone. Possible values are: mobile, alternateMobile, or office.
      Returns:
      a AuthenticationPhoneType
    • getSmsSignInState

      @Nullable public AuthenticationMethodSignInState getSmsSignInState()
      Gets the smsSignInState property value. 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.
      Returns:
      a AuthenticationMethodSignInState
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class AuthenticationMethod
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setPhoneNumber

      public void setPhoneNumber(@Nullable String value)
      Sets the phoneNumber property value. 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 don't match the required format.
      Parameters:
      value - Value to set for the phoneNumber property.
    • setPhoneType

      public void setPhoneType(@Nullable AuthenticationPhoneType value)
      Sets the phoneType property value. The type of this phone. Possible values are: mobile, alternateMobile, or office.
      Parameters:
      value - Value to set for the phoneType property.
    • setSmsSignInState

      public void setSmsSignInState(@Nullable AuthenticationMethodSignInState value)
      Sets the smsSignInState property value. 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.
      Parameters:
      value - Value to set for the smsSignInState property.