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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classThe phone numbers registered to a user for authentication.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionPhoneAuthenticationMethodItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPhoneAuthenticationMethodItemRequestBuilderand sets the default values.PhoneAuthenticationMethodItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPhoneAuthenticationMethodItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete navigation property phoneMethods for usersvoiddelete(Consumer<PhoneAuthenticationMethodItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property phoneMethods for usersProvides operations to call the disableSmsSignIn method.Provides operations to call the enableSmsSignIn method.get()The phone numbers registered to a user for authentication.get(Consumer<PhoneAuthenticationMethodItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The phone numbers registered to a user for authentication.Update a user's phone number associated with a phone authentication method object.patch(PhoneAuthenticationMethod body, Consumer<PhoneAuthenticationMethodItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a user's phone number associated with a phone authentication method object.com.microsoft.kiota.RequestInformationDelete navigation property phoneMethods for userscom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<PhoneAuthenticationMethodItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property phoneMethods for userscom.microsoft.kiota.RequestInformationThe phone numbers registered to a user for authentication.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<PhoneAuthenticationMethodItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The phone numbers registered to a user for authentication.com.microsoft.kiota.RequestInformationUpdate a user's phone number associated with a phone authentication method object.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(PhoneAuthenticationMethod body, Consumer<PhoneAuthenticationMethodItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a user's phone number associated with a phone authentication method object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
PhoneAuthenticationMethodItemRequestBuilder
public PhoneAuthenticationMethodItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPhoneAuthenticationMethodItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
PhoneAuthenticationMethodItemRequestBuilder
public PhoneAuthenticationMethodItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPhoneAuthenticationMethodItemRequestBuilderand 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
Provides operations to call the disableSmsSignIn method.- Returns:
- a
DisableSmsSignInRequestBuilder
-
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
The phone numbers registered to a user for authentication.- Returns:
- a
PhoneAuthenticationMethod - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public PhoneAuthenticationMethod get(@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
PhoneAuthenticationMethod - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
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- Returns:
- a
PhoneAuthenticationMethod - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public PhoneAuthenticationMethod patch(@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 bodyrequestConfiguration- 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 bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
-