Class RetentionLabelItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.security.labels.retentionlabels.item.RetentionLabelItemRequestBuilder
@Generated("com.microsoft.kiota")
public class RetentionLabelItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the retentionLabels property of the microsoft.graph.security.labelsRoot entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRepresents how customers can manage their data, whether and for how long to retain or delete it.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
ConstructorsConstructorDescriptionRetentionLabelItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRetentionLabelItemRequestBuilderand sets the default values.RetentionLabelItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRetentionLabelItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete a retentionLabel object.voiddelete(Consumer<RetentionLabelItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a retentionLabel object.Provides operations to manage the descriptors property of the microsoft.graph.security.retentionLabel entity.Provides operations to manage the dispositionReviewStages property of the microsoft.graph.security.retentionLabel entity.get()Represents how customers can manage their data, whether and for how long to retain or delete it.get(Consumer<RetentionLabelItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents how customers can manage their data, whether and for how long to retain or delete it.patch(RetentionLabel body) Update the properties of a retentionLabel object.patch(RetentionLabel body, Consumer<RetentionLabelItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a retentionLabel object.Provides operations to manage the retentionEventType property of the microsoft.graph.security.retentionLabel entity.com.microsoft.kiota.RequestInformationDelete a retentionLabel object.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<RetentionLabelItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a retentionLabel object.com.microsoft.kiota.RequestInformationRepresents how customers can manage their data, whether and for how long to retain or delete it.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<RetentionLabelItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents how customers can manage their data, whether and for how long to retain or delete it.com.microsoft.kiota.RequestInformationUpdate the properties of a retentionLabel object.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(RetentionLabel body, Consumer<RetentionLabelItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a retentionLabel object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
RetentionLabelItemRequestBuilder
public RetentionLabelItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRetentionLabelItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
RetentionLabelItemRequestBuilder
public RetentionLabelItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRetentionLabelItemRequestBuilderand 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
-
descriptors
Provides operations to manage the descriptors property of the microsoft.graph.security.retentionLabel entity.- Returns:
- a
DescriptorsRequestBuilder
-
dispositionReviewStages
Provides operations to manage the dispositionReviewStages property of the microsoft.graph.security.retentionLabel entity.- Returns:
- a
DispositionReviewStagesRequestBuilder
-
retentionEventType
Provides operations to manage the retentionEventType property of the microsoft.graph.security.retentionLabel entity.- Returns:
- a
RetentionEventTypeRequestBuilder
-
delete
public void delete()Delete a retentionLabel object.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<RetentionLabelItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a retentionLabel 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
Represents how customers can manage their data, whether and for how long to retain or delete it.- Returns:
- a
RetentionLabel - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public RetentionLabel get(@Nullable Consumer<RetentionLabelItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents how customers can manage their data, whether and for how long to retain or delete it.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RetentionLabel - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update the properties of a retentionLabel object. To update a disposition review stage, include the actionAfterRetentionPeriod property in the request body with one of the possible values specified.- Parameters:
body- The request body- Returns:
- a
RetentionLabel - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public RetentionLabel patch(@Nonnull RetentionLabel body, @Nullable Consumer<RetentionLabelItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a retentionLabel object. To update a disposition review stage, include the actionAfterRetentionPeriod property in the request body with one of the possible values specified.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RetentionLabel - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete a retentionLabel object.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<RetentionLabelItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete a retentionLabel 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()Represents how customers can manage their data, whether and for how long to retain or delete it.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<RetentionLabelItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents how customers can manage their data, whether and for how long to retain or delete it.- 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 RetentionLabel body) Update the properties of a retentionLabel object. To update a disposition review stage, include the actionAfterRetentionPeriod property in the request body with one of the possible values specified.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull RetentionLabel body, @Nullable Consumer<RetentionLabelItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a retentionLabel object. To update a disposition review stage, include the actionAfterRetentionPeriod property in the request body with one of the possible values specified.- 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
RetentionLabelItemRequestBuilder
-