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/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:
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 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
51 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
52 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
54 inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
55 inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
57
59
64 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
65 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
66 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
67 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
68 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
69 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
70 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
71 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
73
75
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
97 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
98 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
99 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
100 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
103 inline ModifyEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
104 inline ModifyEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
105 inline ModifyEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
107
109
112 inline bool GetEnabled() const{ return m_enabled; }
113 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
114 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
115 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
117 private:
118
119 Aws::String m_subscriptionName;
120 bool m_subscriptionNameHasBeenSet = false;
121
122 Aws::String m_snsTopicArn;
123 bool m_snsTopicArnHasBeenSet = false;
124
125 Aws::String m_sourceType;
126 bool m_sourceTypeHasBeenSet = false;
127
128 Aws::Vector<Aws::String> m_eventCategories;
129 bool m_eventCategoriesHasBeenSet = false;
130
131 bool m_enabled;
132 bool m_enabledHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace DocDB
137} // namespace Aws
ModifyEventSubscriptionRequest & AddEventCategories(const char *value)
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
void SetEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSourceType(const char *value)
ModifyEventSubscriptionRequest & WithSourceType(Aws::String &&value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & WithEnabled(bool value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(const char *value)
AWS_DOCDB_API Aws::String SerializePayload() const override
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const char *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