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/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.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 RDS
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_RDS_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_RDS_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_RDS_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
61 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
62 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
63 template<typename SnsTopicArnT = Aws::String>
64 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
65 template<typename SnsTopicArnT = Aws::String>
66 ModifyEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
68
70
79 inline const Aws::String& GetSourceType() const { return m_sourceType; }
80 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
81 template<typename SourceTypeT = Aws::String>
82 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
83 template<typename SourceTypeT = Aws::String>
84 ModifyEventSubscriptionRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
86
88
96 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
97 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
98 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
99 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
100 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
101 ModifyEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
102 template<typename EventCategoriesT = Aws::String>
103 ModifyEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
105
107
110 inline bool GetEnabled() const { return m_enabled; }
111 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
112 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
113 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
115 private:
116
117 Aws::String m_subscriptionName;
118 bool m_subscriptionNameHasBeenSet = false;
119
120 Aws::String m_snsTopicArn;
121 bool m_snsTopicArnHasBeenSet = false;
122
123 Aws::String m_sourceType;
124 bool m_sourceTypeHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_eventCategories;
127 bool m_eventCategoriesHasBeenSet = false;
128
129 bool m_enabled{false};
130 bool m_enabledHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace RDS
135} // namespace Aws
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
ModifyEventSubscriptionRequest & WithEnabled(bool value)
virtual const char * GetServiceRequestName() const override
AWS_RDS_API Aws::String SerializePayload() const override
ModifyEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector