/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include namespace Aws { namespace ConfigService { namespace Model { /** */ class PutRetentionConfigurationRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API PutRetentionConfigurationRequest(); // 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 "PutRetentionConfiguration"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Number of days Config stores your historical information.

*

Currently, only applicable to the configuration item history.

*/ inline int GetRetentionPeriodInDays() const{ return m_retentionPeriodInDays; } /** *

Number of days Config stores your historical information.

*

Currently, only applicable to the configuration item history.

*/ inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; } /** *

Number of days Config stores your historical information.

*

Currently, only applicable to the configuration item history.

*/ inline void SetRetentionPeriodInDays(int value) { m_retentionPeriodInDaysHasBeenSet = true; m_retentionPeriodInDays = value; } /** *

Number of days Config stores your historical information.

*

Currently, only applicable to the configuration item history.

*/ inline PutRetentionConfigurationRequest& WithRetentionPeriodInDays(int value) { SetRetentionPeriodInDays(value); return *this;} private: int m_retentionPeriodInDays; bool m_retentionPeriodInDaysHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws