/** * 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 Json { class JsonValue; } // namespace Json } // namespace Utils namespace Glacier { namespace Model { /** *

Contains the Amazon S3 Glacier response to the * GetDataRetrievalPolicy request.

See Also:

AWS * API Reference

*/ class AWS_GLACIER_API GetDataRetrievalPolicyResult { public: GetDataRetrievalPolicyResult(); GetDataRetrievalPolicyResult(const Aws::AmazonWebServiceResult& result); GetDataRetrievalPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains the returned data retrieval policy in JSON format.

*/ inline const DataRetrievalPolicy& GetPolicy() const{ return m_policy; } /** *

Contains the returned data retrieval policy in JSON format.

*/ inline void SetPolicy(const DataRetrievalPolicy& value) { m_policy = value; } /** *

Contains the returned data retrieval policy in JSON format.

*/ inline void SetPolicy(DataRetrievalPolicy&& value) { m_policy = std::move(value); } /** *

Contains the returned data retrieval policy in JSON format.

*/ inline GetDataRetrievalPolicyResult& WithPolicy(const DataRetrievalPolicy& value) { SetPolicy(value); return *this;} /** *

Contains the returned data retrieval policy in JSON format.

*/ inline GetDataRetrievalPolicyResult& WithPolicy(DataRetrievalPolicy&& value) { SetPolicy(std::move(value)); return *this;} private: DataRetrievalPolicy m_policy; }; } // namespace Model } // namespace Glacier } // namespace Aws