Class RetentionLabelRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.drives.item.items.item.retentionlabel.RetentionLabelRequestBuilder
@Generated("com.microsoft.kiota")
public class RetentionLabelRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the retentionLabel property of the microsoft.graph.driveItem entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classInformation about retention label and settings enforced on the driveItem.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
ConstructorsConstructorDescriptionRetentionLabelRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRetentionLabelRequestBuilderand sets the default values.RetentionLabelRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRetentionLabelRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Remove a retention label from a driveItem.voiddelete(Consumer<RetentionLabelRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove a retention label from a driveItem.get()Information about retention label and settings enforced on the driveItem.get(Consumer<RetentionLabelRequestBuilder.GetRequestConfiguration> requestConfiguration) Information about retention label and settings enforced on the driveItem.patch(ItemRetentionLabel body) Lock or unlock a retention label on a driveItem that classifies content as records.patch(ItemRetentionLabel body, Consumer<RetentionLabelRequestBuilder.PatchRequestConfiguration> requestConfiguration) Lock or unlock a retention label on a driveItem that classifies content as records.com.microsoft.kiota.RequestInformationRemove a retention label from a driveItem.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<RetentionLabelRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove a retention label from a driveItem.com.microsoft.kiota.RequestInformationInformation about retention label and settings enforced on the driveItem.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<RetentionLabelRequestBuilder.GetRequestConfiguration> requestConfiguration) Information about retention label and settings enforced on the driveItem.com.microsoft.kiota.RequestInformationLock or unlock a retention label on a driveItem that classifies content as records.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(ItemRetentionLabel body, Consumer<RetentionLabelRequestBuilder.PatchRequestConfiguration> requestConfiguration) Lock or unlock a retention label on a driveItem that classifies content as records.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
RetentionLabelRequestBuilder
public RetentionLabelRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRetentionLabelRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
RetentionLabelRequestBuilder
public RetentionLabelRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRetentionLabelRequestBuilderand 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
-
delete
public void delete()Remove a retention label from a driveItem. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<RetentionLabelRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove a retention label from a driveItem. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.- 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
Information about retention label and settings enforced on the driveItem. Read-write.- Returns:
- a
ItemRetentionLabel - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public ItemRetentionLabel get(@Nullable Consumer<RetentionLabelRequestBuilder.GetRequestConfiguration> requestConfiguration) Information about retention label and settings enforced on the driveItem. Read-write.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ItemRetentionLabel - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive.- Parameters:
body- The request body- Returns:
- a
ItemRetentionLabel - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public ItemRetentionLabel patch(@Nonnull ItemRetentionLabel body, @Nullable Consumer<RetentionLabelRequestBuilder.PatchRequestConfiguration> requestConfiguration) Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ItemRetentionLabel - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Remove a retention label from a driveItem. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<RetentionLabelRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove a retention label from a driveItem. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.- 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()Information about retention label and settings enforced on the driveItem. Read-write.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<RetentionLabelRequestBuilder.GetRequestConfiguration> requestConfiguration) Information about retention label and settings enforced on the driveItem. Read-write.- 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 ItemRetentionLabel body) Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull ItemRetentionLabel body, @Nullable Consumer<RetentionLabelRequestBuilder.PatchRequestConfiguration> requestConfiguration) Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive.- 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
RetentionLabelRequestBuilder
-