Class PasswordMethodsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.authentication.passwordmethods.PasswordMethodsRequestBuilder
@Generated("com.microsoft.kiota")
public class PasswordMethodsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the passwordMethods property of the microsoft.graph.authentication entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRepresents the password 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
ConstructorsConstructorDescriptionPasswordMethodsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPasswordMethodsRequestBuilderand sets the default values.PasswordMethodsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPasswordMethodsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyPasswordAuthenticationMethodId(String passwordAuthenticationMethodId) Provides operations to manage the passwordMethods property of the microsoft.graph.authentication entity.count()Provides operations to count the resources in the collection.get()Represents the password registered to a user for authentication.get(Consumer<PasswordMethodsRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents the password registered to a user for authentication.Create new navigation property to passwordMethods for userspost(PasswordAuthenticationMethod body, Consumer<PasswordMethodsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to passwordMethods for userscom.microsoft.kiota.RequestInformationRepresents the password registered to a user for authentication.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<PasswordMethodsRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents the password registered to a user for authentication.com.microsoft.kiota.RequestInformationCreate new navigation property to passwordMethods for userscom.microsoft.kiota.RequestInformationtoPostRequestInformation(PasswordAuthenticationMethod body, Consumer<PasswordMethodsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to passwordMethods for usersReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
PasswordMethodsRequestBuilder
public PasswordMethodsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPasswordMethodsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
PasswordMethodsRequestBuilder
public PasswordMethodsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newPasswordMethodsRequestBuilderand 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
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byPasswordAuthenticationMethodId
@Nonnull public PasswordAuthenticationMethodItemRequestBuilder byPasswordAuthenticationMethodId(@Nonnull String passwordAuthenticationMethodId) Provides operations to manage the passwordMethods property of the microsoft.graph.authentication entity.- Parameters:
passwordAuthenticationMethodId- The unique identifier of passwordAuthenticationMethod- Returns:
- a
PasswordAuthenticationMethodItemRequestBuilder
-
get
Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password.- Returns:
- a
PasswordAuthenticationMethodCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public PasswordAuthenticationMethodCollectionResponse get(@Nullable Consumer<PasswordMethodsRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
PasswordAuthenticationMethodCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
Create new navigation property to passwordMethods for users- Parameters:
body- The request body- Returns:
- a
PasswordAuthenticationMethod - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public PasswordAuthenticationMethod post(@Nonnull PasswordAuthenticationMethod body, @Nullable Consumer<PasswordMethodsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to passwordMethods for users- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
PasswordAuthenticationMethod - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<PasswordMethodsRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull PasswordAuthenticationMethod body) Create new navigation property to passwordMethods for users- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull PasswordAuthenticationMethod body, @Nullable Consumer<PasswordMethodsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to passwordMethods for users- 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
PasswordMethodsRequestBuilder
-