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/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/dms/DatabaseMigrationServiceRequest.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 DatabaseMigrationService
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_DATABASEMIGRATIONSERVICE_API ModifyEventSubscriptionRequest();
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_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
46 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
47 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
48 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
49 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
51 inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
52 inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
54
56
61 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
62 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
63 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
64 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
65 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
66 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
67 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
68 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
70
72
76 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
77 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
78 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
79 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
80 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
81 inline ModifyEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
82 inline ModifyEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
83 inline ModifyEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
85
87
92 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
93 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
94 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
95 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
98 inline ModifyEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
99 inline ModifyEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
100 inline ModifyEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
102
104
107 inline bool GetEnabled() const{ return m_enabled; }
108 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
109 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
110 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
112 private:
113
114 Aws::String m_subscriptionName;
115 bool m_subscriptionNameHasBeenSet = false;
116
117 Aws::String m_snsTopicArn;
118 bool m_snsTopicArnHasBeenSet = false;
119
120 Aws::String m_sourceType;
121 bool m_sourceTypeHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_eventCategories;
124 bool m_eventCategoriesHasBeenSet = false;
125
126 bool m_enabled;
127 bool m_enabledHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace DatabaseMigrationService
132} // namespace Aws
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector