Class EmailAuthenticationMethodItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.authentication.emailmethods.item.EmailAuthenticationMethodItemRequestBuilder
@Generated("com.microsoft.kiota")
public class EmailAuthenticationMethodItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the emailMethods 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 email address 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
ConstructorsConstructorDescriptionEmailAuthenticationMethodItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEmailAuthenticationMethodItemRequestBuilderand sets the default values.EmailAuthenticationMethodItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEmailAuthenticationMethodItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes a user's emailAuthenticationMethod object.voiddelete(Consumer<EmailAuthenticationMethodItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a user's emailAuthenticationMethod object.get()The email address registered to a user for authentication.get(Consumer<EmailAuthenticationMethodItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The email address registered to a user for authentication.Update a user's email address represented by an emailAuthenticationMethod object.patch(EmailAuthenticationMethod body, Consumer<EmailAuthenticationMethodItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a user's email address represented by an emailAuthenticationMethod object.com.microsoft.kiota.RequestInformationDeletes a user's emailAuthenticationMethod object.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<EmailAuthenticationMethodItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a user's emailAuthenticationMethod object.com.microsoft.kiota.RequestInformationThe email address registered to a user for authentication.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<EmailAuthenticationMethodItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The email address registered to a user for authentication.com.microsoft.kiota.RequestInformationUpdate a user's email address represented by an emailAuthenticationMethod object.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(EmailAuthenticationMethod body, Consumer<EmailAuthenticationMethodItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a user's email address represented by an emailAuthenticationMethod object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
EmailAuthenticationMethodItemRequestBuilder
public EmailAuthenticationMethodItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEmailAuthenticationMethodItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
EmailAuthenticationMethodItemRequestBuilder
public EmailAuthenticationMethodItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEmailAuthenticationMethodItemRequestBuilderand 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
-
delete
public void delete()Deletes a user's emailAuthenticationMethod object.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<EmailAuthenticationMethodItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a user's emailAuthenticationMethod object.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
The email address registered to a user for authentication.- Returns:
- a
EmailAuthenticationMethod - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public EmailAuthenticationMethod get(@Nullable Consumer<EmailAuthenticationMethodItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The email address registered to a user for authentication.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
EmailAuthenticationMethod - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update a user's email address represented by an emailAuthenticationMethod object. Self-service operations aren't supported.- Parameters:
body- The request body- Returns:
- a
EmailAuthenticationMethod - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public EmailAuthenticationMethod patch(@Nonnull EmailAuthenticationMethod body, @Nullable Consumer<EmailAuthenticationMethodItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a user's email address represented by an emailAuthenticationMethod object. 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
EmailAuthenticationMethod - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Deletes a user's emailAuthenticationMethod object.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<EmailAuthenticationMethodItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a user's emailAuthenticationMethod object.- 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 email address registered to a user for authentication.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<EmailAuthenticationMethodItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The email address 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 EmailAuthenticationMethod body) Update a user's email address represented by an emailAuthenticationMethod object. Self-service operations aren't supported.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull EmailAuthenticationMethod body, @Nullable Consumer<EmailAuthenticationMethodItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a user's email address represented by an emailAuthenticationMethod object. 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
EmailAuthenticationMethodItemRequestBuilder
-