AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateVaultRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/GlacierRequest.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Glacier {
15namespace Model {
16
23 public:
24 AWS_GLACIER_API CreateVaultRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateVault"; }
31
32 AWS_GLACIER_API Aws::String SerializePayload() const override;
33
35
43 inline const Aws::String& GetAccountId() const { return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 template <typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) {
47 m_accountIdHasBeenSet = true;
48 m_accountId = std::forward<AccountIdT>(value);
49 }
50 template <typename AccountIdT = Aws::String>
51 CreateVaultRequest& WithAccountId(AccountIdT&& value) {
52 SetAccountId(std::forward<AccountIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetVaultName() const { return m_vaultName; }
62 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
63 template <typename VaultNameT = Aws::String>
64 void SetVaultName(VaultNameT&& value) {
65 m_vaultNameHasBeenSet = true;
66 m_vaultName = std::forward<VaultNameT>(value);
67 }
68 template <typename VaultNameT = Aws::String>
69 CreateVaultRequest& WithVaultName(VaultNameT&& value) {
70 SetVaultName(std::forward<VaultNameT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_accountId;
76 bool m_accountIdHasBeenSet = false;
77
78 Aws::String m_vaultName;
79 bool m_vaultNameHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Glacier
84} // namespace Aws
const Aws::String & GetAccountId() const
CreateVaultRequest & WithAccountId(AccountIdT &&value)
const Aws::String & GetVaultName() const
virtual const char * GetServiceRequestName() const override
AWS_GLACIER_API CreateVaultRequest()=default
CreateVaultRequest & WithVaultName(VaultNameT &&value)
AWS_GLACIER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String