Class RestoreSessionBaseItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.solutions.backuprestore.restoresessions.item.RestoreSessionBaseItemRequestBuilder
@Generated("com.microsoft.kiota")
public class RestoreSessionBaseItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the restoreSessions property of the microsoft.graph.backupRestoreRoot entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classGet the properties of a restoreSession object by ID.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
ConstructorsConstructorDescriptionRestoreSessionBaseItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRestoreSessionBaseItemRequestBuilderand sets the default values.RestoreSessionBaseItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRestoreSessionBaseItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionactivate()Provides operations to call the activate method.voiddelete()Delete a draft restoreSessionBase object.voiddelete(Consumer<RestoreSessionBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a draft restoreSessionBase object.get()Get the properties of a restoreSession object by ID.get(Consumer<RestoreSessionBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties of a restoreSession object by ID.patch(RestoreSessionBase body) Update the navigation property restoreSessions in solutionspatch(RestoreSessionBase body, Consumer<RestoreSessionBaseItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property restoreSessions in solutionscom.microsoft.kiota.RequestInformationDelete a draft restoreSessionBase object.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<RestoreSessionBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a draft restoreSessionBase object.com.microsoft.kiota.RequestInformationGet the properties of a restoreSession object by ID.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<RestoreSessionBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties of a restoreSession object by ID.com.microsoft.kiota.RequestInformationUpdate the navigation property restoreSessions in solutionscom.microsoft.kiota.RequestInformationtoPatchRequestInformation(RestoreSessionBase body, Consumer<RestoreSessionBaseItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property restoreSessions in solutionsReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
RestoreSessionBaseItemRequestBuilder
public RestoreSessionBaseItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRestoreSessionBaseItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
RestoreSessionBaseItemRequestBuilder
public RestoreSessionBaseItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRestoreSessionBaseItemRequestBuilderand 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
-
activate
Provides operations to call the activate method.- Returns:
- a
ActivateRequestBuilder
-
delete
public void delete()Delete a draft restoreSessionBase object.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<RestoreSessionBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a draft restoreSessionBase 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
Get the properties of a restoreSession object by ID.- Returns:
- a
RestoreSessionBase - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public RestoreSessionBase get(@Nullable Consumer<RestoreSessionBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties of a restoreSession object by ID.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RestoreSessionBase - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update the navigation property restoreSessions in solutions- Parameters:
body- The request body- Returns:
- a
RestoreSessionBase - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public RestoreSessionBase patch(@Nonnull RestoreSessionBase body, @Nullable Consumer<RestoreSessionBaseItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property restoreSessions in solutions- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RestoreSessionBase - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete a draft restoreSessionBase object.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<RestoreSessionBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a draft restoreSessionBase 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()Get the properties of a restoreSession object by ID.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<RestoreSessionBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties of a restoreSession object by ID.- 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 RestoreSessionBase body) Update the navigation property restoreSessions in solutions- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull RestoreSessionBase body, @Nullable Consumer<RestoreSessionBaseItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property restoreSessions in solutions- 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
RestoreSessionBaseItemRequestBuilder
-