AWS SDK for C++  1.9.104
AWS SDK for C++
GetDataRetrievalPolicyResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace Glacier
24 {
25 namespace Model
26 {
34  {
35  public:
39 
40 
44  inline const DataRetrievalPolicy& GetPolicy() const{ return m_policy; }
45 
49  inline void SetPolicy(const DataRetrievalPolicy& value) { m_policy = value; }
50 
54  inline void SetPolicy(DataRetrievalPolicy&& value) { m_policy = std::move(value); }
55 
59  inline GetDataRetrievalPolicyResult& WithPolicy(const DataRetrievalPolicy& value) { SetPolicy(value); return *this;}
60 
64  inline GetDataRetrievalPolicyResult& WithPolicy(DataRetrievalPolicy&& value) { SetPolicy(std::move(value)); return *this;}
65 
66  private:
67 
68  DataRetrievalPolicy m_policy;
69  };
70 
71 } // namespace Model
72 } // namespace Glacier
73 } // namespace Aws
Aws::Glacier::Model::GetDataRetrievalPolicyResult
Definition: GetDataRetrievalPolicyResult.h:34
Aws::Glacier::Model::GetDataRetrievalPolicyResult::GetPolicy
const DataRetrievalPolicy & GetPolicy() const
Definition: GetDataRetrievalPolicyResult.h:44
Aws::Glacier::Model::GetDataRetrievalPolicyResult::SetPolicy
void SetPolicy(DataRetrievalPolicy &&value)
Definition: GetDataRetrievalPolicyResult.h:54
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Glacier::Model::GetDataRetrievalPolicyResult::SetPolicy
void SetPolicy(const DataRetrievalPolicy &value)
Definition: GetDataRetrievalPolicyResult.h:49
Aws::Glacier::Model::GetDataRetrievalPolicyResult::GetDataRetrievalPolicyResult
GetDataRetrievalPolicyResult()
Aws::Glacier::Model::GetDataRetrievalPolicyResult::operator=
GetDataRetrievalPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Glacier::Model::GetDataRetrievalPolicyResult::WithPolicy
GetDataRetrievalPolicyResult & WithPolicy(DataRetrievalPolicy &&value)
Definition: GetDataRetrievalPolicyResult.h:64
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
DataRetrievalPolicy.h
Aws::Glacier::Model::DataRetrievalPolicy
Definition: DataRetrievalPolicy.h:33
Aws::Glacier::Model::GetDataRetrievalPolicyResult::GetDataRetrievalPolicyResult
GetDataRetrievalPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Glacier::Model::GetDataRetrievalPolicyResult::WithPolicy
GetDataRetrievalPolicyResult & WithPolicy(const DataRetrievalPolicy &value)
Definition: GetDataRetrievalPolicyResult.h:59
Aws
Definition: AccessManagementClient.h:15
Glacier_EXPORTS.h