AWS SDK for C++  1.9.1
AWS SDK for C++
PutBackupVaultNotificationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Backup
17 {
18 namespace 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::String SerializePayload() const override;
35 
36 
43  inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; }
44 
51  inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
52 
59  inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = value; }
60 
67  inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::move(value); }
68 
75  inline void SetBackupVaultName(const char* value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName.assign(value); }
76 
83  inline PutBackupVaultNotificationsRequest& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;}
84 
91  inline PutBackupVaultNotificationsRequest& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;}
92 
99  inline PutBackupVaultNotificationsRequest& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;}
100 
101 
107  inline const Aws::String& GetSNSTopicArn() const{ return m_sNSTopicArn; }
108 
114  inline bool SNSTopicArnHasBeenSet() const { return m_sNSTopicArnHasBeenSet; }
115 
121  inline void SetSNSTopicArn(const Aws::String& value) { m_sNSTopicArnHasBeenSet = true; m_sNSTopicArn = value; }
122 
128  inline void SetSNSTopicArn(Aws::String&& value) { m_sNSTopicArnHasBeenSet = true; m_sNSTopicArn = std::move(value); }
129 
135  inline void SetSNSTopicArn(const char* value) { m_sNSTopicArnHasBeenSet = true; m_sNSTopicArn.assign(value); }
136 
142  inline PutBackupVaultNotificationsRequest& WithSNSTopicArn(const Aws::String& value) { SetSNSTopicArn(value); return *this;}
143 
149  inline PutBackupVaultNotificationsRequest& WithSNSTopicArn(Aws::String&& value) { SetSNSTopicArn(std::move(value)); return *this;}
150 
156  inline PutBackupVaultNotificationsRequest& WithSNSTopicArn(const char* value) { SetSNSTopicArn(value); return *this;}
157 
158 
163  inline const Aws::Vector<BackupVaultEvent>& GetBackupVaultEvents() const{ return m_backupVaultEvents; }
164 
169  inline bool BackupVaultEventsHasBeenSet() const { return m_backupVaultEventsHasBeenSet; }
170 
175  inline void SetBackupVaultEvents(const Aws::Vector<BackupVaultEvent>& value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents = value; }
176 
181  inline void SetBackupVaultEvents(Aws::Vector<BackupVaultEvent>&& value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents = std::move(value); }
182 
187  inline PutBackupVaultNotificationsRequest& WithBackupVaultEvents(const Aws::Vector<BackupVaultEvent>& value) { SetBackupVaultEvents(value); return *this;}
188 
193  inline PutBackupVaultNotificationsRequest& WithBackupVaultEvents(Aws::Vector<BackupVaultEvent>&& value) { SetBackupVaultEvents(std::move(value)); return *this;}
194 
199  inline PutBackupVaultNotificationsRequest& AddBackupVaultEvents(const BackupVaultEvent& value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents.push_back(value); return *this; }
200 
205  inline PutBackupVaultNotificationsRequest& AddBackupVaultEvents(BackupVaultEvent&& value) { m_backupVaultEventsHasBeenSet = true; m_backupVaultEvents.push_back(std::move(value)); return *this; }
206 
207  private:
208 
209  Aws::String m_backupVaultName;
210  bool m_backupVaultNameHasBeenSet;
211 
212  Aws::String m_sNSTopicArn;
213  bool m_sNSTopicArnHasBeenSet;
214 
215  Aws::Vector<BackupVaultEvent> m_backupVaultEvents;
216  bool m_backupVaultEventsHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace Backup
221 } // namespace Aws
Aws::Backup::Model::PutBackupVaultNotificationsRequest::BackupVaultEventsHasBeenSet
bool BackupVaultEventsHasBeenSet() const
Definition: PutBackupVaultNotificationsRequest.h:169
Aws::Backup::Model::PutBackupVaultNotificationsRequest::BackupVaultNameHasBeenSet
bool BackupVaultNameHasBeenSet() const
Definition: PutBackupVaultNotificationsRequest.h:51
Aws::Backup::Model::PutBackupVaultNotificationsRequest::WithBackupVaultEvents
PutBackupVaultNotificationsRequest & WithBackupVaultEvents(Aws::Vector< BackupVaultEvent > &&value)
Definition: PutBackupVaultNotificationsRequest.h:193
Aws::Backup::Model::PutBackupVaultNotificationsRequest::AddBackupVaultEvents
PutBackupVaultNotificationsRequest & AddBackupVaultEvents(BackupVaultEvent &&value)
Definition: PutBackupVaultNotificationsRequest.h:205
Aws::Backup::Model::PutBackupVaultNotificationsRequest::PutBackupVaultNotificationsRequest
PutBackupVaultNotificationsRequest()
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SetSNSTopicArn
void SetSNSTopicArn(const Aws::String &value)
Definition: PutBackupVaultNotificationsRequest.h:121
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
BackupRequest.h
BackupVaultEvent.h
Aws::Backup::Model::PutBackupVaultNotificationsRequest::WithBackupVaultEvents
PutBackupVaultNotificationsRequest & WithBackupVaultEvents(const Aws::Vector< BackupVaultEvent > &value)
Definition: PutBackupVaultNotificationsRequest.h:187
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SetBackupVaultName
void SetBackupVaultName(Aws::String &&value)
Definition: PutBackupVaultNotificationsRequest.h:67
Aws::Backup::Model::PutBackupVaultNotificationsRequest::WithSNSTopicArn
PutBackupVaultNotificationsRequest & WithSNSTopicArn(const char *value)
Definition: PutBackupVaultNotificationsRequest.h:156
Aws::Backup::Model::PutBackupVaultNotificationsRequest::GetBackupVaultName
const Aws::String & GetBackupVaultName() const
Definition: PutBackupVaultNotificationsRequest.h:43
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SetBackupVaultName
void SetBackupVaultName(const Aws::String &value)
Definition: PutBackupVaultNotificationsRequest.h:59
Aws::Backup::Model::PutBackupVaultNotificationsRequest::WithSNSTopicArn
PutBackupVaultNotificationsRequest & WithSNSTopicArn(const Aws::String &value)
Definition: PutBackupVaultNotificationsRequest.h:142
Aws::Backup::Model::PutBackupVaultNotificationsRequest::GetBackupVaultEvents
const Aws::Vector< BackupVaultEvent > & GetBackupVaultEvents() const
Definition: PutBackupVaultNotificationsRequest.h:163
Aws::Backup::Model::PutBackupVaultNotificationsRequest::WithBackupVaultName
PutBackupVaultNotificationsRequest & WithBackupVaultName(Aws::String &&value)
Definition: PutBackupVaultNotificationsRequest.h:91
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SetSNSTopicArn
void SetSNSTopicArn(const char *value)
Definition: PutBackupVaultNotificationsRequest.h:135
Aws::Backup::Model::PutBackupVaultNotificationsRequest::GetSNSTopicArn
const Aws::String & GetSNSTopicArn() const
Definition: PutBackupVaultNotificationsRequest.h:107
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SetBackupVaultName
void SetBackupVaultName(const char *value)
Definition: PutBackupVaultNotificationsRequest.h:75
AWSString.h
Aws::Backup::Model::PutBackupVaultNotificationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBackupVaultNotificationsRequest.h:32
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SetBackupVaultEvents
void SetBackupVaultEvents(Aws::Vector< BackupVaultEvent > &&value)
Definition: PutBackupVaultNotificationsRequest.h:181
Aws::Backup::Model::PutBackupVaultNotificationsRequest::WithSNSTopicArn
PutBackupVaultNotificationsRequest & WithSNSTopicArn(Aws::String &&value)
Definition: PutBackupVaultNotificationsRequest.h:149
Backup_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::BackupVaultEvent
BackupVaultEvent
Definition: BackupVaultEvent.h:17
Aws::Backup::Model::PutBackupVaultNotificationsRequest::WithBackupVaultName
PutBackupVaultNotificationsRequest & WithBackupVaultName(const Aws::String &value)
Definition: PutBackupVaultNotificationsRequest.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SNSTopicArnHasBeenSet
bool SNSTopicArnHasBeenSet() const
Definition: PutBackupVaultNotificationsRequest.h:114
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SetBackupVaultEvents
void SetBackupVaultEvents(const Aws::Vector< BackupVaultEvent > &value)
Definition: PutBackupVaultNotificationsRequest.h:175
Aws::Backup::Model::PutBackupVaultNotificationsRequest::WithBackupVaultName
PutBackupVaultNotificationsRequest & WithBackupVaultName(const char *value)
Definition: PutBackupVaultNotificationsRequest.h:99
Aws::Backup::Model::PutBackupVaultNotificationsRequest
Definition: PutBackupVaultNotificationsRequest.h:24
Aws::Backup::Model::PutBackupVaultNotificationsRequest::SetSNSTopicArn
void SetSNSTopicArn(Aws::String &&value)
Definition: PutBackupVaultNotificationsRequest.h:128
Aws::Backup::Model::PutBackupVaultNotificationsRequest::AddBackupVaultEvents
PutBackupVaultNotificationsRequest & AddBackupVaultEvents(const BackupVaultEvent &value)
Definition: PutBackupVaultNotificationsRequest.h:199