Class ExchangeRestoreSessionsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.solutions.backuprestore.exchangerestoresessions.ExchangeRestoreSessionsRequestBuilder
@Generated("com.microsoft.kiota")
public class ExchangeRestoreSessionsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the exchangeRestoreSessions property of the microsoft.graph.backupRestoreRoot entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe list of Exchange restore sessions available in the tenant.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
ConstructorsConstructorDescriptionExchangeRestoreSessionsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newExchangeRestoreSessionsRequestBuilderand sets the default values.ExchangeRestoreSessionsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newExchangeRestoreSessionsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyExchangeRestoreSessionId(String exchangeRestoreSessionId) Provides operations to manage the exchangeRestoreSessions property of the microsoft.graph.backupRestoreRoot entity.count()Provides operations to count the resources in the collection.get()The list of Exchange restore sessions available in the tenant.get(Consumer<ExchangeRestoreSessionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The list of Exchange restore sessions available in the tenant.post(ExchangeRestoreSession body) Create a new exchangeRestoreSession object.post(ExchangeRestoreSession body, Consumer<ExchangeRestoreSessionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new exchangeRestoreSession object.com.microsoft.kiota.RequestInformationThe list of Exchange restore sessions available in the tenant.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ExchangeRestoreSessionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The list of Exchange restore sessions available in the tenant.com.microsoft.kiota.RequestInformationCreate a new exchangeRestoreSession object.com.microsoft.kiota.RequestInformationtoPostRequestInformation(ExchangeRestoreSession body, Consumer<ExchangeRestoreSessionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new exchangeRestoreSession object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ExchangeRestoreSessionsRequestBuilder
public ExchangeRestoreSessionsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newExchangeRestoreSessionsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ExchangeRestoreSessionsRequestBuilder
public ExchangeRestoreSessionsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newExchangeRestoreSessionsRequestBuilderand 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
-
byExchangeRestoreSessionId
@Nonnull public ExchangeRestoreSessionItemRequestBuilder byExchangeRestoreSessionId(@Nonnull String exchangeRestoreSessionId) Provides operations to manage the exchangeRestoreSessions property of the microsoft.graph.backupRestoreRoot entity.- Parameters:
exchangeRestoreSessionId- The unique identifier of exchangeRestoreSession- Returns:
- a
ExchangeRestoreSessionItemRequestBuilder
-
get
The list of Exchange restore sessions available in the tenant.- Returns:
- a
ExchangeRestoreSessionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public ExchangeRestoreSessionCollectionResponse get(@Nullable Consumer<ExchangeRestoreSessionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The list of Exchange restore sessions available in the tenant.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ExchangeRestoreSessionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
Create a new exchangeRestoreSession object.- Parameters:
body- The request body- Returns:
- a
ExchangeRestoreSession - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public ExchangeRestoreSession post(@Nonnull ExchangeRestoreSession body, @Nullable Consumer<ExchangeRestoreSessionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new exchangeRestoreSession object.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ExchangeRestoreSession - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()The list of Exchange restore sessions available in the tenant.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ExchangeRestoreSessionsRequestBuilder.GetRequestConfiguration> requestConfiguration) The list of Exchange restore sessions available in the tenant.- 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 ExchangeRestoreSession body) Create a new exchangeRestoreSession object.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ExchangeRestoreSession body, @Nullable Consumer<ExchangeRestoreSessionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new exchangeRestoreSession object.- 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
ExchangeRestoreSessionsRequestBuilder
-