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/neptune/Neptune_EXPORTS.h>
8#include <aws/neptune/NeptuneRequest.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 Neptune
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_NEPTUNE_API ModifyEventSubscriptionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; }
32
33 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
45 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
46 template<typename SubscriptionNameT = Aws::String>
47 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
48 template<typename SubscriptionNameT = Aws::String>
49 ModifyEventSubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
51
53
58 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
59 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
60 template<typename SnsTopicArnT = Aws::String>
61 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
62 template<typename SnsTopicArnT = Aws::String>
63 ModifyEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
65
67
74 inline const Aws::String& GetSourceType() const { return m_sourceType; }
75 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
76 template<typename SourceTypeT = Aws::String>
77 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
78 template<typename SourceTypeT = Aws::String>
79 ModifyEventSubscriptionRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
81
83
88 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
89 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
90 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
91 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
92 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
93 ModifyEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
94 template<typename EventCategoriesT = Aws::String>
95 ModifyEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
97
99
102 inline bool GetEnabled() const { return m_enabled; }
103 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
104 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
105 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
107 private:
108
109 Aws::String m_subscriptionName;
110 bool m_subscriptionNameHasBeenSet = false;
111
112 Aws::String m_snsTopicArn;
113 bool m_snsTopicArnHasBeenSet = false;
114
115 Aws::String m_sourceType;
116 bool m_sourceTypeHasBeenSet = false;
117
118 Aws::Vector<Aws::String> m_eventCategories;
119 bool m_eventCategoriesHasBeenSet = false;
120
121 bool m_enabled{false};
122 bool m_enabledHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Neptune
127} // namespace Aws
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
ModifyEventSubscriptionRequest & WithEnabled(bool value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_NEPTUNE_API Aws::String SerializePayload() const override
AWS_NEPTUNE_API ModifyEventSubscriptionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector