Class DeviceRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.users.item.authentication.platformcredentialmethods.item.device.DeviceRequestBuilder
@Generated("com.microsoft.kiota")
public class DeviceRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the device property of the microsoft.graph.platformCredentialAuthenticationMethod entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe registered device on which this Platform Credential resides.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
ConstructorsConstructorDescriptionDeviceRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDeviceRequestBuilderand sets the default values.DeviceRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDeviceRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget()The registered device on which this Platform Credential resides.get(Consumer<DeviceRequestBuilder.GetRequestConfiguration> requestConfiguration) The registered device on which this Platform Credential resides.com.microsoft.kiota.RequestInformationThe registered device on which this Platform Credential resides.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<DeviceRequestBuilder.GetRequestConfiguration> requestConfiguration) The registered device on which this Platform Credential resides.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
DeviceRequestBuilder
public DeviceRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDeviceRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
DeviceRequestBuilder
public DeviceRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDeviceRequestBuilderand 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
-
get
The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.- Returns:
- a
Device - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public Device get(@Nullable Consumer<DeviceRequestBuilder.GetRequestConfiguration> requestConfiguration) The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Device - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<DeviceRequestBuilder.GetRequestConfiguration> requestConfiguration) The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.- Parameters:
requestConfiguration- 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
DeviceRequestBuilder
-