AWS SDK for C++  1.9.104
AWS SDK for C++
SetDataRetrievalPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Glacier
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "SetDataRetrievalPolicy"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
47  inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 
57  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
58 
67  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
68 
77  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
78 
87  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
88 
97  inline SetDataRetrievalPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
98 
107  inline SetDataRetrievalPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
108 
117  inline SetDataRetrievalPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
118 
119 
123  inline const DataRetrievalPolicy& GetPolicy() const{ return m_policy; }
124 
128  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
129 
133  inline void SetPolicy(const DataRetrievalPolicy& value) { m_policyHasBeenSet = true; m_policy = value; }
134 
138  inline void SetPolicy(DataRetrievalPolicy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
139 
143  inline SetDataRetrievalPolicyRequest& WithPolicy(const DataRetrievalPolicy& value) { SetPolicy(value); return *this;}
144 
148  inline SetDataRetrievalPolicyRequest& WithPolicy(DataRetrievalPolicy&& value) { SetPolicy(std::move(value)); return *this;}
149 
150  private:
151 
152  Aws::String m_accountId;
153  bool m_accountIdHasBeenSet;
154 
155  DataRetrievalPolicy m_policy;
156  bool m_policyHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace Glacier
161 } // namespace Aws
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: SetDataRetrievalPolicyRequest.h:128
Aws::Glacier::Model::SetDataRetrievalPolicyRequest
Definition: SetDataRetrievalPolicyRequest.h:26
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: SetDataRetrievalPolicyRequest.h:67
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::WithPolicy
SetDataRetrievalPolicyRequest & WithPolicy(DataRetrievalPolicy &&value)
Definition: SetDataRetrievalPolicyRequest.h:148
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::SetPolicy
void SetPolicy(DataRetrievalPolicy &&value)
Definition: SetDataRetrievalPolicyRequest.h:138
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: SetDataRetrievalPolicyRequest.h:47
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::WithAccountId
SetDataRetrievalPolicyRequest & WithAccountId(const char *value)
Definition: SetDataRetrievalPolicyRequest.h:117
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetDataRetrievalPolicyRequest.h:34
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::SetAccountId
void SetAccountId(const char *value)
Definition: SetDataRetrievalPolicyRequest.h:87
DataRetrievalPolicy.h
Aws::Glacier::Model::DataRetrievalPolicy
Definition: DataRetrievalPolicy.h:33
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::WithAccountId
SetDataRetrievalPolicyRequest & WithAccountId(const Aws::String &value)
Definition: SetDataRetrievalPolicyRequest.h:97
AWSString.h
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::GetPolicy
const DataRetrievalPolicy & GetPolicy() const
Definition: SetDataRetrievalPolicyRequest.h:123
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::SetDataRetrievalPolicyRequest
SetDataRetrievalPolicyRequest()
GlacierRequest.h
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::SetPolicy
void SetPolicy(const DataRetrievalPolicy &value)
Definition: SetDataRetrievalPolicyRequest.h:133
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::WithAccountId
SetDataRetrievalPolicyRequest & WithAccountId(Aws::String &&value)
Definition: SetDataRetrievalPolicyRequest.h:107
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: SetDataRetrievalPolicyRequest.h:57
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::WithPolicy
SetDataRetrievalPolicyRequest & WithPolicy(const DataRetrievalPolicy &value)
Definition: SetDataRetrievalPolicyRequest.h:143
Aws::Glacier::Model::SetDataRetrievalPolicyRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: SetDataRetrievalPolicyRequest.h:77
Glacier_EXPORTS.h