AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
50 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
51 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
53 inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
54 inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
56
58
62 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
63 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
64 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
65 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
66 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
67 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
68 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
69 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
71
73
82 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
83 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
84 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
85 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
86 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
87 inline ModifyEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
88 inline ModifyEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
89 inline ModifyEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
91
93
101 inline const Aws::Vector<Aws::String>& GetSourceIds() const{ return m_sourceIds; }
102 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
103 inline void SetSourceIds(const Aws::Vector<Aws::String>& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = value; }
104 inline void SetSourceIds(Aws::Vector<Aws::String>&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::move(value); }
106 inline ModifyEventSubscriptionRequest& WithSourceIds(Aws::Vector<Aws::String>&& value) { SetSourceIds(std::move(value)); return *this;}
107 inline ModifyEventSubscriptionRequest& AddSourceIds(const Aws::String& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
108 inline ModifyEventSubscriptionRequest& AddSourceIds(Aws::String&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(std::move(value)); return *this; }
109 inline ModifyEventSubscriptionRequest& AddSourceIds(const char* value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
111
113
118 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
119 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
120 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
121 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
124 inline ModifyEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
125 inline ModifyEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
126 inline ModifyEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
128
130
134 inline const Aws::String& GetSeverity() const{ return m_severity; }
135 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
136 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
137 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
138 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
139 inline ModifyEventSubscriptionRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
140 inline ModifyEventSubscriptionRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
141 inline ModifyEventSubscriptionRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
143
145
149 inline bool GetEnabled() const{ return m_enabled; }
150 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
151 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
152 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
154 private:
155
156 Aws::String m_subscriptionName;
157 bool m_subscriptionNameHasBeenSet = false;
158
159 Aws::String m_snsTopicArn;
160 bool m_snsTopicArnHasBeenSet = false;
161
162 Aws::String m_sourceType;
163 bool m_sourceTypeHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_sourceIds;
166 bool m_sourceIdsHasBeenSet = false;
167
168 Aws::Vector<Aws::String> m_eventCategories;
169 bool m_eventCategoriesHasBeenSet = false;
170
171 Aws::String m_severity;
172 bool m_severityHasBeenSet = false;
173
174 bool m_enabled;
175 bool m_enabledHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace Redshift
180} // namespace Aws
ModifyEventSubscriptionRequest & WithSnsTopicArn(const char *value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & WithSeverity(Aws::String &&value)
ModifyEventSubscriptionRequest & AddSourceIds(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSeverity(const char *value)
ModifyEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const char *value)
ModifyEventSubscriptionRequest & AddEventCategories(const char *value)
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
ModifyEventSubscriptionRequest & AddSourceIds(const char *value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
void SetSourceIds(const Aws::Vector< Aws::String > &value)
ModifyEventSubscriptionRequest & WithSourceType(const char *value)
const Aws::Vector< Aws::String > & GetEventCategories() const
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
ModifyEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSeverity(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSourceType(Aws::String &&value)
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector