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/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:
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 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
47 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
48 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
50 inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
51 inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
53
55
60 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
61 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
62 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
63 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
64 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
65 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
66 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
67 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
69
71
78 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
79 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
80 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
81 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
82 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
83 inline ModifyEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
84 inline ModifyEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
85 inline ModifyEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
87
89
94 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
95 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
96 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
97 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
100 inline ModifyEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
101 inline ModifyEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
102 inline ModifyEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
104
106
109 inline bool GetEnabled() const{ return m_enabled; }
110 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
111 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
112 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
114 private:
115
116 Aws::String m_subscriptionName;
117 bool m_subscriptionNameHasBeenSet = false;
118
119 Aws::String m_snsTopicArn;
120 bool m_snsTopicArnHasBeenSet = false;
121
122 Aws::String m_sourceType;
123 bool m_sourceTypeHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_eventCategories;
126 bool m_eventCategoriesHasBeenSet = false;
127
128 bool m_enabled;
129 bool m_enabledHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Neptune
134} // namespace Aws
ModifyEventSubscriptionRequest & AddEventCategories(const char *value)
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
ModifyEventSubscriptionRequest & WithSourceType(Aws::String &&value)
ModifyEventSubscriptionRequest & WithEnabled(bool value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(const char *value)
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const char *value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & WithSourceType(const char *value)
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
void SetEventCategories(const Aws::Vector< Aws::String > &value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector