AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetBackupVaultNotificationsResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/BackupVaultEvent.h>
9#include <aws/core/http/HttpResponse.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 {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Backup {
25namespace Model {
27 public:
28 AWS_BACKUP_API GetBackupVaultNotificationsResult() = default;
31
33
38 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
39 template <typename BackupVaultNameT = Aws::String>
40 void SetBackupVaultName(BackupVaultNameT&& value) {
41 m_backupVaultNameHasBeenSet = true;
42 m_backupVaultName = std::forward<BackupVaultNameT>(value);
43 }
44 template <typename BackupVaultNameT = Aws::String>
46 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetBackupVaultArn() const { return m_backupVaultArn; }
58 template <typename BackupVaultArnT = Aws::String>
59 void SetBackupVaultArn(BackupVaultArnT&& value) {
60 m_backupVaultArnHasBeenSet = true;
61 m_backupVaultArn = std::forward<BackupVaultArnT>(value);
62 }
63 template <typename BackupVaultArnT = Aws::String>
65 SetBackupVaultArn(std::forward<BackupVaultArnT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetSNSTopicArn() const { return m_sNSTopicArn; }
77 template <typename SNSTopicArnT = Aws::String>
78 void SetSNSTopicArn(SNSTopicArnT&& value) {
79 m_sNSTopicArnHasBeenSet = true;
80 m_sNSTopicArn = std::forward<SNSTopicArnT>(value);
81 }
82 template <typename SNSTopicArnT = Aws::String>
84 SetSNSTopicArn(std::forward<SNSTopicArnT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::Vector<BackupVaultEvent>& GetBackupVaultEvents() const { return m_backupVaultEvents; }
95 template <typename BackupVaultEventsT = Aws::Vector<BackupVaultEvent>>
96 void SetBackupVaultEvents(BackupVaultEventsT&& value) {
97 m_backupVaultEventsHasBeenSet = true;
98 m_backupVaultEvents = std::forward<BackupVaultEventsT>(value);
99 }
100 template <typename BackupVaultEventsT = Aws::Vector<BackupVaultEvent>>
102 SetBackupVaultEvents(std::forward<BackupVaultEventsT>(value));
103 return *this;
104 }
106 m_backupVaultEventsHasBeenSet = true;
107 m_backupVaultEvents.push_back(value);
108 return *this;
109 }
111
113
114 inline const Aws::String& GetRequestId() const { return m_requestId; }
115 template <typename RequestIdT = Aws::String>
116 void SetRequestId(RequestIdT&& value) {
117 m_requestIdHasBeenSet = true;
118 m_requestId = std::forward<RequestIdT>(value);
119 }
120 template <typename RequestIdT = Aws::String>
122 SetRequestId(std::forward<RequestIdT>(value));
123 return *this;
124 }
126 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
127
128 private:
129 Aws::String m_backupVaultName;
130
131 Aws::String m_backupVaultArn;
132
133 Aws::String m_sNSTopicArn;
134
135 Aws::Vector<BackupVaultEvent> m_backupVaultEvents;
136
137 Aws::String m_requestId;
138 Aws::Http::HttpResponseCode m_HttpResponseCode;
139 bool m_backupVaultNameHasBeenSet = false;
140 bool m_backupVaultArnHasBeenSet = false;
141 bool m_sNSTopicArnHasBeenSet = false;
142 bool m_backupVaultEventsHasBeenSet = false;
143 bool m_requestIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Backup
148} // namespace Aws
AWS_BACKUP_API GetBackupVaultNotificationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBackupVaultNotificationsResult & AddBackupVaultEvents(BackupVaultEvent value)
GetBackupVaultNotificationsResult & WithBackupVaultArn(BackupVaultArnT &&value)
GetBackupVaultNotificationsResult & WithRequestId(RequestIdT &&value)
AWS_BACKUP_API GetBackupVaultNotificationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBackupVaultNotificationsResult & WithBackupVaultName(BackupVaultNameT &&value)
GetBackupVaultNotificationsResult & WithBackupVaultEvents(BackupVaultEventsT &&value)
const Aws::Vector< BackupVaultEvent > & GetBackupVaultEvents() const
GetBackupVaultNotificationsResult & WithSNSTopicArn(SNSTopicArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue