AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyEventSubscriptionRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_REDSHIFT_API ModifyEventSubscriptionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; }
35
36 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
48 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
49 template<typename SubscriptionNameT = Aws::String>
50 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
51 template<typename SubscriptionNameT = Aws::String>
52 ModifyEventSubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
61 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
62 template<typename SnsTopicArnT = Aws::String>
63 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
64 template<typename SnsTopicArnT = Aws::String>
65 ModifyEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
67
69
78 inline const Aws::String& GetSourceType() const { return m_sourceType; }
79 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
80 template<typename SourceTypeT = Aws::String>
81 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
82 template<typename SourceTypeT = Aws::String>
83 ModifyEventSubscriptionRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
85
87
95 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
96 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
97 template<typename SourceIdsT = Aws::Vector<Aws::String>>
98 void SetSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::forward<SourceIdsT>(value); }
99 template<typename SourceIdsT = Aws::Vector<Aws::String>>
100 ModifyEventSubscriptionRequest& WithSourceIds(SourceIdsT&& value) { SetSourceIds(std::forward<SourceIdsT>(value)); return *this;}
101 template<typename SourceIdsT = Aws::String>
102 ModifyEventSubscriptionRequest& AddSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.emplace_back(std::forward<SourceIdsT>(value)); return *this; }
104
106
111 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
112 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
113 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
114 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
115 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
116 ModifyEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
117 template<typename EventCategoriesT = Aws::String>
118 ModifyEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
120
122
126 inline const Aws::String& GetSeverity() const { return m_severity; }
127 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
128 template<typename SeverityT = Aws::String>
129 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
130 template<typename SeverityT = Aws::String>
131 ModifyEventSubscriptionRequest& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
133
135
139 inline bool GetEnabled() const { return m_enabled; }
140 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
141 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
142 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
144 private:
145
146 Aws::String m_subscriptionName;
147 bool m_subscriptionNameHasBeenSet = false;
148
149 Aws::String m_snsTopicArn;
150 bool m_snsTopicArnHasBeenSet = false;
151
152 Aws::String m_sourceType;
153 bool m_sourceTypeHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_sourceIds;
156 bool m_sourceIdsHasBeenSet = false;
157
158 Aws::Vector<Aws::String> m_eventCategories;
159 bool m_eventCategoriesHasBeenSet = false;
160
161 Aws::String m_severity;
162 bool m_severityHasBeenSet = false;
163
164 bool m_enabled{false};
165 bool m_enabledHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Redshift
170} // namespace Aws
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
AWS_REDSHIFT_API ModifyEventSubscriptionRequest()=default
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
ModifyEventSubscriptionRequest & WithSourceIds(SourceIdsT &&value)
ModifyEventSubscriptionRequest & WithSeverity(SeverityT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
ModifyEventSubscriptionRequest & AddSourceIds(SourceIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector