AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SetVaultNotificationsRequest.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#include <aws/glacier/model/VaultNotificationConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glacier {
16namespace Model {
17
25 public:
26 AWS_GLACIER_API SetVaultNotificationsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SetVaultNotifications"; }
33
34 AWS_GLACIER_API Aws::String SerializePayload() const override;
35
37
44 inline const Aws::String& GetAccountId() const { return m_accountId; }
45 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
46 template <typename AccountIdT = Aws::String>
47 void SetAccountId(AccountIdT&& value) {
48 m_accountIdHasBeenSet = true;
49 m_accountId = std::forward<AccountIdT>(value);
50 }
51 template <typename AccountIdT = Aws::String>
53 SetAccountId(std::forward<AccountIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetVaultName() const { return m_vaultName; }
63 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
64 template <typename VaultNameT = Aws::String>
65 void SetVaultName(VaultNameT&& value) {
66 m_vaultNameHasBeenSet = true;
67 m_vaultName = std::forward<VaultNameT>(value);
68 }
69 template <typename VaultNameT = Aws::String>
71 SetVaultName(std::forward<VaultNameT>(value));
72 return *this;
73 }
75
77
80 inline const VaultNotificationConfig& GetVaultNotificationConfig() const { return m_vaultNotificationConfig; }
81 inline bool VaultNotificationConfigHasBeenSet() const { return m_vaultNotificationConfigHasBeenSet; }
82 template <typename VaultNotificationConfigT = VaultNotificationConfig>
83 void SetVaultNotificationConfig(VaultNotificationConfigT&& value) {
84 m_vaultNotificationConfigHasBeenSet = true;
85 m_vaultNotificationConfig = std::forward<VaultNotificationConfigT>(value);
86 }
87 template <typename VaultNotificationConfigT = VaultNotificationConfig>
88 SetVaultNotificationsRequest& WithVaultNotificationConfig(VaultNotificationConfigT&& value) {
89 SetVaultNotificationConfig(std::forward<VaultNotificationConfigT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_accountId;
95 bool m_accountIdHasBeenSet = false;
96
97 Aws::String m_vaultName;
98 bool m_vaultNameHasBeenSet = false;
99
100 VaultNotificationConfig m_vaultNotificationConfig;
101 bool m_vaultNotificationConfigHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Glacier
106} // namespace Aws
SetVaultNotificationsRequest & WithVaultNotificationConfig(VaultNotificationConfigT &&value)
const VaultNotificationConfig & GetVaultNotificationConfig() const
SetVaultNotificationsRequest & WithAccountId(AccountIdT &&value)
AWS_GLACIER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_GLACIER_API SetVaultNotificationsRequest()=default
void SetVaultNotificationConfig(VaultNotificationConfigT &&value)
SetVaultNotificationsRequest & WithVaultName(VaultNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String