AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SetVaultNotificationsRequest.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/glacier/GlacierRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glacier/model/VaultNotificationConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Glacier
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_GLACIER_API SetVaultNotificationsRequest() = default;
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_GLACIER_API Aws::String SerializePayload() const override;
38
39
41
48 inline const Aws::String& GetAccountId() const { return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 template<typename AccountIdT = Aws::String>
51 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
52 template<typename AccountIdT = Aws::String>
53 SetVaultNotificationsRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetVaultName() const { return m_vaultName; }
61 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
62 template<typename VaultNameT = Aws::String>
63 void SetVaultName(VaultNameT&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::forward<VaultNameT>(value); }
64 template<typename VaultNameT = Aws::String>
65 SetVaultNotificationsRequest& WithVaultName(VaultNameT&& value) { SetVaultName(std::forward<VaultNameT>(value)); return *this;}
67
69
72 inline const VaultNotificationConfig& GetVaultNotificationConfig() const { return m_vaultNotificationConfig; }
73 inline bool VaultNotificationConfigHasBeenSet() const { return m_vaultNotificationConfigHasBeenSet; }
74 template<typename VaultNotificationConfigT = VaultNotificationConfig>
75 void SetVaultNotificationConfig(VaultNotificationConfigT&& value) { m_vaultNotificationConfigHasBeenSet = true; m_vaultNotificationConfig = std::forward<VaultNotificationConfigT>(value); }
76 template<typename VaultNotificationConfigT = VaultNotificationConfig>
77 SetVaultNotificationsRequest& WithVaultNotificationConfig(VaultNotificationConfigT&& value) { SetVaultNotificationConfig(std::forward<VaultNotificationConfigT>(value)); return *this;}
79 private:
80
81 Aws::String m_accountId;
82 bool m_accountIdHasBeenSet = false;
83
84 Aws::String m_vaultName;
85 bool m_vaultNameHasBeenSet = false;
86
87 VaultNotificationConfig m_vaultNotificationConfig;
88 bool m_vaultNotificationConfigHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Glacier
93} // 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