Class PhoneAuthenticationMethodItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.authentication.phonemethods.item.PhoneAuthenticationMethodItemRequestBuilder

@Generated("com.microsoft.kiota") public class PhoneAuthenticationMethodItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the phoneMethods property of the microsoft.graph.authentication entity.
  • Constructor Details

    • PhoneAuthenticationMethodItemRequestBuilder

      public PhoneAuthenticationMethodItemRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new PhoneAuthenticationMethodItemRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • PhoneAuthenticationMethodItemRequestBuilder

      public PhoneAuthenticationMethodItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new PhoneAuthenticationMethodItemRequestBuilder and sets the default values.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      requestAdapter - The request adapter to use to execute the requests.
  • Method Details

    • disableSmsSignIn

      @Nonnull public DisableSmsSignInRequestBuilder disableSmsSignIn()
      Provides operations to call the disableSmsSignIn method.
      Returns:
      a DisableSmsSignInRequestBuilder
    • enableSmsSignIn

      @Nonnull public EnableSmsSignInRequestBuilder enableSmsSignIn()
      Provides operations to call the enableSmsSignIn method.
      Returns:
      a EnableSmsSignInRequestBuilder
    • delete

      public void delete()
      Delete navigation property phoneMethods for users
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<PhoneAuthenticationMethodItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property phoneMethods for users
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public PhoneAuthenticationMethod get()
      The phone numbers registered to a user for authentication.
      Returns:
      a PhoneAuthenticationMethod
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      The phone numbers registered to a user for authentication.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a PhoneAuthenticationMethod
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public PhoneAuthenticationMethod patch(@Nonnull PhoneAuthenticationMethod body)
      Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. Self-service operations aren't supported.
      Parameters:
      body - The request body
      Returns:
      a PhoneAuthenticationMethod
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. Self-service operations aren't supported.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a PhoneAuthenticationMethod
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete navigation property phoneMethods for users
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<PhoneAuthenticationMethodItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property phoneMethods for users
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      The phone numbers registered to a user for authentication.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<PhoneAuthenticationMethodItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      The phone numbers registered to a user for authentication.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull PhoneAuthenticationMethod body)
      Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. Self-service operations aren't supported.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull PhoneAuthenticationMethod body, @Nullable Consumer<PhoneAuthenticationMethodItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update a user's phone number associated with a phone authentication method object. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system will attempt to register the number for use in that system. Self-service operations aren't supported.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public PhoneAuthenticationMethodItemRequestBuilder withUrl(@Nonnull String rawUrl)
      Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      Returns:
      a PhoneAuthenticationMethodItemRequestBuilder