AWS SDK for C++  1.9.104
AWS SDK for C++
SetVaultNotificationsRequest.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 "SetVaultNotifications"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
47  inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 
56  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
57 
65  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
66 
74  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
75 
83  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
84 
92  inline SetVaultNotificationsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
93 
101  inline SetVaultNotificationsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
102 
110  inline SetVaultNotificationsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
111 
112 
116  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
117 
121  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
122 
126  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
127 
131  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
132 
136  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
137 
141  inline SetVaultNotificationsRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
142 
146  inline SetVaultNotificationsRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
147 
151  inline SetVaultNotificationsRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
152 
153 
157  inline const VaultNotificationConfig& GetVaultNotificationConfig() const{ return m_vaultNotificationConfig; }
158 
162  inline bool VaultNotificationConfigHasBeenSet() const { return m_vaultNotificationConfigHasBeenSet; }
163 
167  inline void SetVaultNotificationConfig(const VaultNotificationConfig& value) { m_vaultNotificationConfigHasBeenSet = true; m_vaultNotificationConfig = value; }
168 
172  inline void SetVaultNotificationConfig(VaultNotificationConfig&& value) { m_vaultNotificationConfigHasBeenSet = true; m_vaultNotificationConfig = std::move(value); }
173 
177  inline SetVaultNotificationsRequest& WithVaultNotificationConfig(const VaultNotificationConfig& value) { SetVaultNotificationConfig(value); return *this;}
178 
182  inline SetVaultNotificationsRequest& WithVaultNotificationConfig(VaultNotificationConfig&& value) { SetVaultNotificationConfig(std::move(value)); return *this;}
183 
184  private:
185 
186  Aws::String m_accountId;
187  bool m_accountIdHasBeenSet;
188 
189  Aws::String m_vaultName;
190  bool m_vaultNameHasBeenSet;
191 
192  VaultNotificationConfig m_vaultNotificationConfig;
193  bool m_vaultNotificationConfigHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace Glacier
198 } // namespace Aws
Aws::Glacier::Model::SetVaultNotificationsRequest::WithAccountId
SetVaultNotificationsRequest & WithAccountId(const Aws::String &value)
Definition: SetVaultNotificationsRequest.h:92
Aws::Glacier::Model::SetVaultNotificationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetVaultNotificationsRequest.h:35
Aws::Glacier::Model::SetVaultNotificationsRequest::GetVaultNotificationConfig
const VaultNotificationConfig & GetVaultNotificationConfig() const
Definition: SetVaultNotificationsRequest.h:157
Aws::Glacier::Model::SetVaultNotificationsRequest::WithAccountId
SetVaultNotificationsRequest & WithAccountId(const char *value)
Definition: SetVaultNotificationsRequest.h:110
Aws::Glacier::Model::SetVaultNotificationsRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: SetVaultNotificationsRequest.h:56
Aws::Glacier::Model::SetVaultNotificationsRequest::VaultNotificationConfigHasBeenSet
bool VaultNotificationConfigHasBeenSet() const
Definition: SetVaultNotificationsRequest.h:162
Aws::Glacier::Model::SetVaultNotificationsRequest::WithVaultNotificationConfig
SetVaultNotificationsRequest & WithVaultNotificationConfig(VaultNotificationConfig &&value)
Definition: SetVaultNotificationsRequest.h:182
VaultNotificationConfig.h
Aws::Glacier::Model::SetVaultNotificationsRequest::SetVaultNotificationConfig
void SetVaultNotificationConfig(VaultNotificationConfig &&value)
Definition: SetVaultNotificationsRequest.h:172
Aws::Glacier::Model::SetVaultNotificationsRequest::WithAccountId
SetVaultNotificationsRequest & WithAccountId(Aws::String &&value)
Definition: SetVaultNotificationsRequest.h:101
Aws::Glacier::Model::SetVaultNotificationsRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: SetVaultNotificationsRequest.h:65
Aws::Glacier::Model::SetVaultNotificationsRequest::SetVaultName
void SetVaultName(const char *value)
Definition: SetVaultNotificationsRequest.h:136
Aws::Glacier::Model::SetVaultNotificationsRequest
Definition: SetVaultNotificationsRequest.h:27
Aws::Glacier::Model::SetVaultNotificationsRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: SetVaultNotificationsRequest.h:116
Aws::Glacier::Model::SetVaultNotificationsRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: SetVaultNotificationsRequest.h:74
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
Aws::Glacier::Model::SetVaultNotificationsRequest::WithVaultNotificationConfig
SetVaultNotificationsRequest & WithVaultNotificationConfig(const VaultNotificationConfig &value)
Definition: SetVaultNotificationsRequest.h:177
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::SetVaultNotificationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::SetVaultNotificationsRequest::SetVaultNotificationConfig
void SetVaultNotificationConfig(const VaultNotificationConfig &value)
Definition: SetVaultNotificationsRequest.h:167
AWSString.h
Aws::Glacier::Model::SetVaultNotificationsRequest::WithVaultName
SetVaultNotificationsRequest & WithVaultName(const char *value)
Definition: SetVaultNotificationsRequest.h:151
GlacierRequest.h
Aws::Glacier::Model::SetVaultNotificationsRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: SetVaultNotificationsRequest.h:121
Aws::Glacier::Model::SetVaultNotificationsRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: SetVaultNotificationsRequest.h:126
Aws::Glacier::Model::SetVaultNotificationsRequest::WithVaultName
SetVaultNotificationsRequest & WithVaultName(Aws::String &&value)
Definition: SetVaultNotificationsRequest.h:146
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::SetVaultNotificationsRequest::WithVaultName
SetVaultNotificationsRequest & WithVaultName(const Aws::String &value)
Definition: SetVaultNotificationsRequest.h:141
Aws::Glacier::Model::VaultNotificationConfig
Definition: VaultNotificationConfig.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::SetVaultNotificationsRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: SetVaultNotificationsRequest.h:47
Aws::Glacier::Model::SetVaultNotificationsRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: SetVaultNotificationsRequest.h:131
Aws::Glacier::Model::SetVaultNotificationsRequest::SetVaultNotificationsRequest
SetVaultNotificationsRequest()
Aws::Glacier::Model::SetVaultNotificationsRequest::SetAccountId
void SetAccountId(const char *value)
Definition: SetVaultNotificationsRequest.h:83
Glacier_EXPORTS.h