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.
  • Constructor Details

    • RetentionLabelItemRequestBuilder

      public RetentionLabelItemRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new RetentionLabelItemRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • RetentionLabelItemRequestBuilder

      public RetentionLabelItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new RetentionLabelItemRequestBuilder and 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

      @Nonnull public DescriptorsRequestBuilder descriptors()
      Provides operations to manage the descriptors property of the microsoft.graph.security.retentionLabel entity.
      Returns:
      a DescriptorsRequestBuilder
    • dispositionReviewStages

      @Nonnull public DispositionReviewStagesRequestBuilder dispositionReviewStages()
      Provides operations to manage the dispositionReviewStages property of the microsoft.graph.security.retentionLabel entity.
      Returns:
      a DispositionReviewStagesRequestBuilder
    • retentionEventType

      @Nonnull public RetentionEventTypeRequestBuilder 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

      @Nullable public RetentionLabel 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

      @Nullable public RetentionLabel patch(@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 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 body
      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
      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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public RetentionLabelItemRequestBuilder withUrl(@Nonnull String rawUrl)
      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