Interface UpdateDataRetentionRequest.Builder

    • Method Detail

      • streamName

        UpdateDataRetentionRequest.Builder streamName​(String streamName)

        The name of the stream whose retention period you want to change.

        Parameters:
        streamName - The name of the stream whose retention period you want to change.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • streamARN

        UpdateDataRetentionRequest.Builder streamARN​(String streamARN)

        The Amazon Resource Name (ARN) of the stream whose retention period you want to change.

        Parameters:
        streamARN - The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • currentVersion

        UpdateDataRetentionRequest.Builder currentVersion​(String currentVersion)

        The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream or the ListStreams API.

        Parameters:
        currentVersion - The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream or the ListStreams API.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dataRetentionChangeInHours

        UpdateDataRetentionRequest.Builder dataRetentionChangeInHours​(Integer dataRetentionChangeInHours)

        The number of hours to adjust the current retention by. The value you specify is added to or subtracted from the current value, depending on the operation.

        The minimum value for data retention is 0 and the maximum value is 87600 (ten years).

        Parameters:
        dataRetentionChangeInHours - The number of hours to adjust the current retention by. The value you specify is added to or subtracted from the current value, depending on the operation.

        The minimum value for data retention is 0 and the maximum value is 87600 (ten years).

        Returns:
        Returns a reference to this object so that method calls can be chained together.