AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
PutBackupVaultNotificationsRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/backup/model/BackupVaultEvent.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Backup {
17namespace Model {
18
22 public:
23 AWS_BACKUP_API PutBackupVaultNotificationsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutBackupVaultNotifications"; }
30
31 AWS_BACKUP_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
40 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
41 template <typename BackupVaultNameT = Aws::String>
42 void SetBackupVaultName(BackupVaultNameT&& value) {
43 m_backupVaultNameHasBeenSet = true;
44 m_backupVaultName = std::forward<BackupVaultNameT>(value);
45 }
46 template <typename BackupVaultNameT = Aws::String>
48 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetSNSTopicArn() const { return m_sNSTopicArn; }
60 inline bool SNSTopicArnHasBeenSet() const { return m_sNSTopicArnHasBeenSet; }
61 template <typename SNSTopicArnT = Aws::String>
62 void SetSNSTopicArn(SNSTopicArnT&& value) {
63 m_sNSTopicArnHasBeenSet = true;
64 m_sNSTopicArn = std::forward<SNSTopicArnT>(value);
65 }
66 template <typename SNSTopicArnT = Aws::String>
68 SetSNSTopicArn(std::forward<SNSTopicArnT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::Vector<BackupVaultEvent>& GetBackupVaultEvents() const { return m_backupVaultEvents; }
82 inline bool BackupVaultEventsHasBeenSet() const { return m_backupVaultEventsHasBeenSet; }
83 template <typename BackupVaultEventsT = Aws::Vector<BackupVaultEvent>>
84 void SetBackupVaultEvents(BackupVaultEventsT&& value) {
85 m_backupVaultEventsHasBeenSet = true;
86 m_backupVaultEvents = std::forward<BackupVaultEventsT>(value);
87 }
88 template <typename BackupVaultEventsT = Aws::Vector<BackupVaultEvent>>
90 SetBackupVaultEvents(std::forward<BackupVaultEventsT>(value));
91 return *this;
92 }
94 m_backupVaultEventsHasBeenSet = true;
95 m_backupVaultEvents.push_back(value);
96 return *this;
97 }
99 private:
100 Aws::String m_backupVaultName;
101
102 Aws::String m_sNSTopicArn;
103
104 Aws::Vector<BackupVaultEvent> m_backupVaultEvents;
105 bool m_backupVaultNameHasBeenSet = false;
106 bool m_sNSTopicArnHasBeenSet = false;
107 bool m_backupVaultEventsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Backup
112} // namespace Aws
PutBackupVaultNotificationsRequest & WithBackupVaultName(BackupVaultNameT &&value)
PutBackupVaultNotificationsRequest & WithSNSTopicArn(SNSTopicArnT &&value)
PutBackupVaultNotificationsRequest & WithBackupVaultEvents(BackupVaultEventsT &&value)
const Aws::Vector< BackupVaultEvent > & GetBackupVaultEvents() const
PutBackupVaultNotificationsRequest & AddBackupVaultEvents(BackupVaultEvent value)
AWS_BACKUP_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector