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

The container element for an object's retention settings.

*/ inline const ObjectLockRetention& GetRetention() const{ return m_retention; } /** *

The container element for an object's retention settings.

*/ inline void SetRetention(const ObjectLockRetention& value) { m_retention = value; } /** *

The container element for an object's retention settings.

*/ inline void SetRetention(ObjectLockRetention&& value) { m_retention = std::move(value); } /** *

The container element for an object's retention settings.

*/ inline GetObjectRetentionResult& WithRetention(const ObjectLockRetention& value) { SetRetention(value); return *this;} /** *

The container element for an object's retention settings.

*/ inline GetObjectRetentionResult& WithRetention(ObjectLockRetention&& value) { SetRetention(std::move(value)); return *this;} private: ObjectLockRetention m_retention; }; } // namespace Model } // namespace S3 } // namespace Aws