AWS SDK for C++  1.9.107
AWS SDK for C++
InitiateVaultLockRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "InitiateVaultLock"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
48  inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 
58  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
59 
68  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
69 
78  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
79 
88  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
89 
98  inline InitiateVaultLockRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
99 
108  inline InitiateVaultLockRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
109 
118  inline InitiateVaultLockRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
119 
120 
124  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
125 
129  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
130 
134  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
135 
139  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
140 
144  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
145 
149  inline InitiateVaultLockRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
150 
154  inline InitiateVaultLockRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
155 
159  inline InitiateVaultLockRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
160 
161 
166  inline const VaultLockPolicy& GetPolicy() const{ return m_policy; }
167 
172  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
173 
178  inline void SetPolicy(const VaultLockPolicy& value) { m_policyHasBeenSet = true; m_policy = value; }
179 
184  inline void SetPolicy(VaultLockPolicy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
185 
190  inline InitiateVaultLockRequest& WithPolicy(const VaultLockPolicy& value) { SetPolicy(value); return *this;}
191 
196  inline InitiateVaultLockRequest& WithPolicy(VaultLockPolicy&& value) { SetPolicy(std::move(value)); return *this;}
197 
198  private:
199 
200  Aws::String m_accountId;
201  bool m_accountIdHasBeenSet;
202 
203  Aws::String m_vaultName;
204  bool m_vaultNameHasBeenSet;
205 
206  VaultLockPolicy m_policy;
207  bool m_policyHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace Glacier
212 } // namespace Aws
Aws::Glacier::Model::InitiateVaultLockRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: InitiateVaultLockRequest.h:134
Aws::Glacier::Model::InitiateVaultLockRequest::WithPolicy
InitiateVaultLockRequest & WithPolicy(const VaultLockPolicy &value)
Definition: InitiateVaultLockRequest.h:190
Aws::Glacier::Model::InitiateVaultLockRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: InitiateVaultLockRequest.h:129
Aws::Glacier::Model::InitiateVaultLockRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: InitiateVaultLockRequest.h:124
Aws::Glacier::Model::InitiateVaultLockRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: InitiateVaultLockRequest.h:78
Aws::Glacier::Model::InitiateVaultLockRequest::WithVaultName
InitiateVaultLockRequest & WithVaultName(const Aws::String &value)
Definition: InitiateVaultLockRequest.h:149
Aws::Glacier::Model::InitiateVaultLockRequest::WithPolicy
InitiateVaultLockRequest & WithPolicy(VaultLockPolicy &&value)
Definition: InitiateVaultLockRequest.h:196
Aws::Glacier::Model::InitiateVaultLockRequest::InitiateVaultLockRequest
InitiateVaultLockRequest()
Aws::Glacier::Model::InitiateVaultLockRequest::WithVaultName
InitiateVaultLockRequest & WithVaultName(Aws::String &&value)
Definition: InitiateVaultLockRequest.h:154
Aws::Glacier::Model::InitiateVaultLockRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: InitiateVaultLockRequest.h:58
Aws::Glacier::Model::InitiateVaultLockRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: InitiateVaultLockRequest.h:68
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
Aws::Glacier::Model::InitiateVaultLockRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: InitiateVaultLockRequest.h:139
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::VaultLockPolicy
Definition: VaultLockPolicy.h:32
Aws::Glacier::Model::InitiateVaultLockRequest::WithAccountId
InitiateVaultLockRequest & WithAccountId(const Aws::String &value)
Definition: InitiateVaultLockRequest.h:98
Aws::Glacier::Model::InitiateVaultLockRequest::WithVaultName
InitiateVaultLockRequest & WithVaultName(const char *value)
Definition: InitiateVaultLockRequest.h:159
AWSString.h
Aws::Glacier::Model::InitiateVaultLockRequest::SetVaultName
void SetVaultName(const char *value)
Definition: InitiateVaultLockRequest.h:144
Aws::Glacier::Model::InitiateVaultLockRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: InitiateVaultLockRequest.h:35
GlacierRequest.h
Aws::Glacier::Model::InitiateVaultLockRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::InitiateVaultLockRequest::WithAccountId
InitiateVaultLockRequest & WithAccountId(const char *value)
Definition: InitiateVaultLockRequest.h:118
Aws::Glacier::Model::InitiateVaultLockRequest
Definition: InitiateVaultLockRequest.h:27
Aws::Glacier::Model::InitiateVaultLockRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: InitiateVaultLockRequest.h:48
Aws::Glacier::Model::InitiateVaultLockRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: InitiateVaultLockRequest.h:172
Aws::Glacier::Model::InitiateVaultLockRequest::SetAccountId
void SetAccountId(const char *value)
Definition: InitiateVaultLockRequest.h:88
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::InitiateVaultLockRequest::SetPolicy
void SetPolicy(VaultLockPolicy &&value)
Definition: InitiateVaultLockRequest.h:184
Aws::Glacier::Model::InitiateVaultLockRequest::WithAccountId
InitiateVaultLockRequest & WithAccountId(Aws::String &&value)
Definition: InitiateVaultLockRequest.h:108
Aws::Glacier::Model::InitiateVaultLockRequest::SetPolicy
void SetPolicy(const VaultLockPolicy &value)
Definition: InitiateVaultLockRequest.h:178
VaultLockPolicy.h
Aws::Glacier::Model::InitiateVaultLockRequest::GetPolicy
const VaultLockPolicy & GetPolicy() const
Definition: InitiateVaultLockRequest.h:166
Glacier_EXPORTS.h