/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace KinesisVideo { namespace Model { /** */ class AWS_KINESISVIDEO_API UpdateDataRetentionRequest : public KinesisVideoRequest { public: UpdateDataRetentionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateDataRetention"; } Aws::String SerializePayload() const override; /** *

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

*/ inline const Aws::String& GetStreamName() const{ return m_streamName; } /** *

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

*/ inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; } /** *

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

*/ inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; } /** *

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

*/ inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); } /** *

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

*/ inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); } /** *

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

*/ inline UpdateDataRetentionRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;} /** *

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

*/ inline UpdateDataRetentionRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;} /** *

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

*/ inline UpdateDataRetentionRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;} /** *

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

*/ inline const Aws::String& GetStreamARN() const{ return m_streamARN; } /** *

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

*/ inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; } /** *

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

*/ inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; } /** *

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

*/ inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); } /** *

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

*/ inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); } /** *

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

*/ inline UpdateDataRetentionRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;} /** *

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

*/ inline UpdateDataRetentionRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;} /** *

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

*/ inline UpdateDataRetentionRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;} /** *

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

*/ inline const Aws::String& GetCurrentVersion() const{ return m_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.

*/ inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; } /** *

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

*/ inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; } /** *

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

*/ inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); } /** *

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

*/ inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); } /** *

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

*/ inline UpdateDataRetentionRequest& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;} /** *

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

*/ inline UpdateDataRetentionRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;} /** *

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

*/ inline UpdateDataRetentionRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;} /** *

Indicates whether you want to increase or decrease the retention period.

*/ inline const UpdateDataRetentionOperation& GetOperation() const{ return m_operation; } /** *

Indicates whether you want to increase or decrease the retention period.

*/ inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; } /** *

Indicates whether you want to increase or decrease the retention period.

*/ inline void SetOperation(const UpdateDataRetentionOperation& value) { m_operationHasBeenSet = true; m_operation = value; } /** *

Indicates whether you want to increase or decrease the retention period.

*/ inline void SetOperation(UpdateDataRetentionOperation&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); } /** *

Indicates whether you want to increase or decrease the retention period.

*/ inline UpdateDataRetentionRequest& WithOperation(const UpdateDataRetentionOperation& value) { SetOperation(value); return *this;} /** *

Indicates whether you want to increase or decrease the retention period.

*/ inline UpdateDataRetentionRequest& WithOperation(UpdateDataRetentionOperation&& value) { SetOperation(std::move(value)); return *this;} /** *

The retention period, in hours. The value you specify replaces the current * value. The maximum value for this parameter is 87600 (ten years).

*/ inline int GetDataRetentionChangeInHours() const{ return m_dataRetentionChangeInHours; } /** *

The retention period, in hours. The value you specify replaces the current * value. The maximum value for this parameter is 87600 (ten years).

*/ inline bool DataRetentionChangeInHoursHasBeenSet() const { return m_dataRetentionChangeInHoursHasBeenSet; } /** *

The retention period, in hours. The value you specify replaces the current * value. The maximum value for this parameter is 87600 (ten years).

*/ inline void SetDataRetentionChangeInHours(int value) { m_dataRetentionChangeInHoursHasBeenSet = true; m_dataRetentionChangeInHours = value; } /** *

The retention period, in hours. The value you specify replaces the current * value. The maximum value for this parameter is 87600 (ten years).

*/ inline UpdateDataRetentionRequest& WithDataRetentionChangeInHours(int value) { SetDataRetentionChangeInHours(value); return *this;} private: Aws::String m_streamName; bool m_streamNameHasBeenSet; Aws::String m_streamARN; bool m_streamARNHasBeenSet; Aws::String m_currentVersion; bool m_currentVersionHasBeenSet; UpdateDataRetentionOperation m_operation; bool m_operationHasBeenSet; int m_dataRetentionChangeInHours; bool m_dataRetentionChangeInHoursHasBeenSet; }; } // namespace Model } // namespace KinesisVideo } // namespace Aws