/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ConfigService { namespace Model { class PutRetentionConfigurationResult { public: AWS_CONFIGSERVICE_API PutRetentionConfigurationResult(); AWS_CONFIGSERVICE_API PutRetentionConfigurationResult(const Aws::AmazonWebServiceResult& result); AWS_CONFIGSERVICE_API PutRetentionConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Returns a retention configuration object.

*/ inline const RetentionConfiguration& GetRetentionConfiguration() const{ return m_retentionConfiguration; } /** *

Returns a retention configuration object.

*/ inline void SetRetentionConfiguration(const RetentionConfiguration& value) { m_retentionConfiguration = value; } /** *

Returns a retention configuration object.

*/ inline void SetRetentionConfiguration(RetentionConfiguration&& value) { m_retentionConfiguration = std::move(value); } /** *

Returns a retention configuration object.

*/ inline PutRetentionConfigurationResult& WithRetentionConfiguration(const RetentionConfiguration& value) { SetRetentionConfiguration(value); return *this;} /** *

Returns a retention configuration object.

*/ inline PutRetentionConfigurationResult& WithRetentionConfiguration(RetentionConfiguration&& value) { SetRetentionConfiguration(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutRetentionConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutRetentionConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutRetentionConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: RetentionConfiguration m_retentionConfiguration; Aws::String m_requestId; }; } // namespace Model } // namespace ConfigService } // namespace Aws