AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = value; }
46 inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::move(value); }
47 inline void SetBackupVaultName(const char* value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName.assign(value); }
49 inline PutBackupVaultNotificationsRequest& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;}
50 inline PutBackupVaultNotificationsRequest& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;}
52
54
59 inline const Aws::String& GetSNSTopicArn() const{ return m_sNSTopicArn; }
60 inline bool SNSTopicArnHasBeenSet() const { return m_sNSTopicArnHasBeenSet; }
61 inline void SetSNSTopicArn(const Aws::String& value) { m_sNSTopicArnHasBeenSet = true; m_sNSTopicArn = value; }
62 inline void SetSNSTopicArn(Aws::String&& value) { m_sNSTopicArnHasBeenSet = true; m_sNSTopicArn = std::move(value); }
63 inline void SetSNSTopicArn(const char* value) { m_sNSTopicArnHasBeenSet = true; m_sNSTopicArn.assign(value); }
65 inline PutBackupVaultNotificationsRequest& WithSNSTopicArn(Aws::String&& value) { SetSNSTopicArn(std::move(value)); return *this;}
66 inline PutBackupVaultNotificationsRequest& WithSNSTopicArn(const char* value) { SetSNSTopicArn(value); return *this;}
68
70
87 inline const Aws::Vector<BackupVaultEvent>& GetBackupVaultEvents() const{ return m_backupVaultEvents; }
88 inline bool BackupVaultEventsHasBeenSet() const { return m_backupVaultEventsHasBeenSet; }
89 inline void SetBackupVaultEvents(const Aws::Vector<BackupVaultEvent>& value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents = value; }
90 inline void SetBackupVaultEvents(Aws::Vector<BackupVaultEvent>&& value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents = std::move(value); }
93 inline PutBackupVaultNotificationsRequest& AddBackupVaultEvents(const BackupVaultEvent& value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents.push_back(value); return *this; }
94 inline PutBackupVaultNotificationsRequest& AddBackupVaultEvents(BackupVaultEvent&& value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents.push_back(std::move(value)); return *this; }
96 private:
97
98 Aws::String m_backupVaultName;
99 bool m_backupVaultNameHasBeenSet = false;
100
101 Aws::String m_sNSTopicArn;
102 bool m_sNSTopicArnHasBeenSet = false;
103
104 Aws::Vector<BackupVaultEvent> m_backupVaultEvents;
105 bool m_backupVaultEventsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Backup
110} // namespace Aws
PutBackupVaultNotificationsRequest & WithBackupVaultName(const char *value)
PutBackupVaultNotificationsRequest & WithBackupVaultName(Aws::String &&value)
const Aws::Vector< BackupVaultEvent > & GetBackupVaultEvents() const
PutBackupVaultNotificationsRequest & WithBackupVaultEvents(Aws::Vector< BackupVaultEvent > &&value)
void SetBackupVaultEvents(Aws::Vector< BackupVaultEvent > &&value)
PutBackupVaultNotificationsRequest & WithSNSTopicArn(const Aws::String &value)
PutBackupVaultNotificationsRequest & WithSNSTopicArn(const char *value)
PutBackupVaultNotificationsRequest & AddBackupVaultEvents(BackupVaultEvent &&value)
PutBackupVaultNotificationsRequest & WithSNSTopicArn(Aws::String &&value)
PutBackupVaultNotificationsRequest & WithBackupVaultEvents(const Aws::Vector< BackupVaultEvent > &value)
AWS_BACKUP_API Aws::String SerializePayload() const override
PutBackupVaultNotificationsRequest & WithBackupVaultName(const Aws::String &value)
void SetBackupVaultEvents(const Aws::Vector< BackupVaultEvent > &value)
PutBackupVaultNotificationsRequest & AddBackupVaultEvents(const BackupVaultEvent &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector