AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutBackupVaultNotificationsRequest.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/backup/model/BackupVaultEvent.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Backup
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUP_API PutBackupVaultNotificationsRequest() = 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 "PutBackupVaultNotifications"; }
33
34 AWS_BACKUP_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
44 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
45 template<typename BackupVaultNameT = Aws::String>
46 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
47 template<typename BackupVaultNameT = Aws::String>
48 PutBackupVaultNotificationsRequest& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
50
52
57 inline const Aws::String& GetSNSTopicArn() const { return m_sNSTopicArn; }
58 inline bool SNSTopicArnHasBeenSet() const { return m_sNSTopicArnHasBeenSet; }
59 template<typename SNSTopicArnT = Aws::String>
60 void SetSNSTopicArn(SNSTopicArnT&& value) { m_sNSTopicArnHasBeenSet = true; m_sNSTopicArn = std::forward<SNSTopicArnT>(value); }
61 template<typename SNSTopicArnT = Aws::String>
62 PutBackupVaultNotificationsRequest& WithSNSTopicArn(SNSTopicArnT&& value) { SetSNSTopicArn(std::forward<SNSTopicArnT>(value)); return *this;}
64
66
73 inline const Aws::Vector<BackupVaultEvent>& GetBackupVaultEvents() const { return m_backupVaultEvents; }
74 inline bool BackupVaultEventsHasBeenSet() const { return m_backupVaultEventsHasBeenSet; }
75 template<typename BackupVaultEventsT = Aws::Vector<BackupVaultEvent>>
76 void SetBackupVaultEvents(BackupVaultEventsT&& value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents = std::forward<BackupVaultEventsT>(value); }
77 template<typename BackupVaultEventsT = Aws::Vector<BackupVaultEvent>>
78 PutBackupVaultNotificationsRequest& WithBackupVaultEvents(BackupVaultEventsT&& value) { SetBackupVaultEvents(std::forward<BackupVaultEventsT>(value)); return *this;}
79 inline PutBackupVaultNotificationsRequest& AddBackupVaultEvents(BackupVaultEvent value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents.push_back(value); return *this; }
81 private:
82
83 Aws::String m_backupVaultName;
84 bool m_backupVaultNameHasBeenSet = false;
85
86 Aws::String m_sNSTopicArn;
87 bool m_sNSTopicArnHasBeenSet = false;
88
89 Aws::Vector<BackupVaultEvent> m_backupVaultEvents;
90 bool m_backupVaultEventsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Backup
95} // 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