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/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.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 DocDB
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_DOCDB_API ModifyEventSubscriptionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; }
36
37 AWS_DOCDB_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
49 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
50 template<typename SubscriptionNameT = Aws::String>
51 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
52 template<typename SubscriptionNameT = Aws::String>
53 ModifyEventSubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
55
57
62 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
63 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
64 template<typename SnsTopicArnT = Aws::String>
65 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
66 template<typename SnsTopicArnT = Aws::String>
67 ModifyEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
69
71
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
91 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
92 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
93 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
94 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
95 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
96 ModifyEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
97 template<typename EventCategoriesT = Aws::String>
98 ModifyEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
100
102
105 inline bool GetEnabled() const { return m_enabled; }
106 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
107 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
108 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
110 private:
111
112 Aws::String m_subscriptionName;
113 bool m_subscriptionNameHasBeenSet = false;
114
115 Aws::String m_snsTopicArn;
116 bool m_snsTopicArnHasBeenSet = false;
117
118 Aws::String m_sourceType;
119 bool m_sourceTypeHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_eventCategories;
122 bool m_eventCategoriesHasBeenSet = false;
123
124 bool m_enabled{false};
125 bool m_enabledHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace DocDB
130} // namespace Aws
AWS_DOCDB_API ModifyEventSubscriptionRequest()=default
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & WithEnabled(bool value)
AWS_DOCDB_API Aws::String SerializePayload() const override
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