AWS SDK for C++  1.9.104
AWS SDK for C++
CreateVaultRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Glacier
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateVault"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
46  inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 
56  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
57 
66  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
67 
76  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
77 
86  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
87 
96  inline CreateVaultRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
97 
106  inline CreateVaultRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
107 
116  inline CreateVaultRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
117 
118 
122  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
123 
127  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
128 
132  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
133 
137  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
138 
142  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
143 
147  inline CreateVaultRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
148 
152  inline CreateVaultRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
153 
157  inline CreateVaultRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
158 
159  private:
160 
161  Aws::String m_accountId;
162  bool m_accountIdHasBeenSet;
163 
164  Aws::String m_vaultName;
165  bool m_vaultNameHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace Glacier
170 } // namespace Aws
Aws::Glacier::Model::CreateVaultRequest::WithVaultName
CreateVaultRequest & WithVaultName(const Aws::String &value)
Definition: CreateVaultRequest.h:147
Aws::Glacier::Model::CreateVaultRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::CreateVaultRequest::SetAccountId
void SetAccountId(const char *value)
Definition: CreateVaultRequest.h:86
Aws::Glacier::Model::CreateVaultRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: CreateVaultRequest.h:76
Aws::Glacier::Model::CreateVaultRequest::CreateVaultRequest
CreateVaultRequest()
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::CreateVaultRequest::WithVaultName
CreateVaultRequest & WithVaultName(const char *value)
Definition: CreateVaultRequest.h:157
Aws::Glacier::Model::CreateVaultRequest::WithAccountId
CreateVaultRequest & WithAccountId(Aws::String &&value)
Definition: CreateVaultRequest.h:106
Aws::Glacier::Model::CreateVaultRequest::WithAccountId
CreateVaultRequest & WithAccountId(const Aws::String &value)
Definition: CreateVaultRequest.h:96
Aws::Glacier::Model::CreateVaultRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: CreateVaultRequest.h:56
Aws::Glacier::Model::CreateVaultRequest
Definition: CreateVaultRequest.h:25
AWSString.h
GlacierRequest.h
Aws::Glacier::Model::CreateVaultRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: CreateVaultRequest.h:46
Aws::Glacier::Model::CreateVaultRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: CreateVaultRequest.h:127
Aws::Glacier::Model::CreateVaultRequest::WithAccountId
CreateVaultRequest & WithAccountId(const char *value)
Definition: CreateVaultRequest.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::CreateVaultRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: CreateVaultRequest.h:122
Aws::Glacier::Model::CreateVaultRequest::SetVaultName
void SetVaultName(const char *value)
Definition: CreateVaultRequest.h:142
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::CreateVaultRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: CreateVaultRequest.h:66
Aws::Glacier::Model::CreateVaultRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateVaultRequest.h:33
Aws::Glacier::Model::CreateVaultRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: CreateVaultRequest.h:132
Aws::Glacier::Model::CreateVaultRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: CreateVaultRequest.h:137
Aws::Glacier::Model::CreateVaultRequest::WithVaultName
CreateVaultRequest & WithVaultName(Aws::String &&value)
Definition: CreateVaultRequest.h:152
Glacier_EXPORTS.h