Class ProtectionPolicyBaseItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.solutions.backuprestore.protectionpolicies.item.ProtectionPolicyBaseItemRequestBuilder
@Generated("com.microsoft.kiota")
public class ProtectionPolicyBaseItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the protectionPolicies 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.classList of protection policies 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
ConstructorsConstructorDescriptionProtectionPolicyBaseItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newProtectionPolicyBaseItemRequestBuilderand sets the default values.ProtectionPolicyBaseItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newProtectionPolicyBaseItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionactivate()Provides operations to call the activate method.Provides operations to call the deactivate method.voiddelete()Delete a protection policy.voiddelete(Consumer<ProtectionPolicyBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a protection policy.get()List of protection policies in the tenant.get(Consumer<ProtectionPolicyBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) List of protection policies in the tenant.patch(ProtectionPolicyBase body) Update the navigation property protectionPolicies in solutionspatch(ProtectionPolicyBase body, Consumer<ProtectionPolicyBaseItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property protectionPolicies in solutionscom.microsoft.kiota.RequestInformationDelete a protection policy.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<ProtectionPolicyBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a protection policy.com.microsoft.kiota.RequestInformationList of protection policies in the tenant.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ProtectionPolicyBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) List of protection policies in the tenant.com.microsoft.kiota.RequestInformationUpdate the navigation property protectionPolicies in solutionscom.microsoft.kiota.RequestInformationtoPatchRequestInformation(ProtectionPolicyBase body, Consumer<ProtectionPolicyBaseItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property protectionPolicies in solutionsReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ProtectionPolicyBaseItemRequestBuilder
public ProtectionPolicyBaseItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newProtectionPolicyBaseItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ProtectionPolicyBaseItemRequestBuilder
public ProtectionPolicyBaseItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newProtectionPolicyBaseItemRequestBuilderand 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
-
deactivate
Provides operations to call the deactivate method.- Returns:
- a
DeactivateRequestBuilder
-
delete
public void delete()Delete a protection policy. Read the properties and relationships of a protectionPolicyBase object.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<ProtectionPolicyBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a protection policy. Read the properties and relationships of a protectionPolicyBase 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
List of protection policies in the tenant.- Returns:
- a
ProtectionPolicyBase - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public ProtectionPolicyBase get(@Nullable Consumer<ProtectionPolicyBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) List of protection policies in the tenant.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ProtectionPolicyBase - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update the navigation property protectionPolicies in solutions- Parameters:
body- The request body- Returns:
- a
ProtectionPolicyBase - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public ProtectionPolicyBase patch(@Nonnull ProtectionPolicyBase body, @Nullable Consumer<ProtectionPolicyBaseItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property protectionPolicies in solutions- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ProtectionPolicyBase - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete a protection policy. Read the properties and relationships of a protectionPolicyBase object.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<ProtectionPolicyBaseItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a protection policy. Read the properties and relationships of a protectionPolicyBase 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()List of protection policies in the tenant.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ProtectionPolicyBaseItemRequestBuilder.GetRequestConfiguration> requestConfiguration) List of protection policies in the tenant.- 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 ProtectionPolicyBase body) Update the navigation property protectionPolicies in solutions- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull ProtectionPolicyBase body, @Nullable Consumer<ProtectionPolicyBaseItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property protectionPolicies 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
ProtectionPolicyBaseItemRequestBuilder
-