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/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() = default;
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 template<typename SubscriptionNameT = Aws::String>
48 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
49 template<typename SubscriptionNameT = Aws::String>
50 ModifyEventSubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
52
54
59 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
60 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
61 template<typename SnsTopicArnT = Aws::String>
62 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
63 template<typename SnsTopicArnT = Aws::String>
64 ModifyEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
66
68
72 inline const Aws::String& GetSourceType() const { return m_sourceType; }
73 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
74 template<typename SourceTypeT = Aws::String>
75 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
76 template<typename SourceTypeT = Aws::String>
77 ModifyEventSubscriptionRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
79
81
86 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
87 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
88 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
89 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
90 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
91 ModifyEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
92 template<typename EventCategoriesT = Aws::String>
93 ModifyEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
95
97
100 inline bool GetEnabled() const { return m_enabled; }
101 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
102 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
103 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
105 private:
106
107 Aws::String m_subscriptionName;
108 bool m_subscriptionNameHasBeenSet = false;
109
110 Aws::String m_snsTopicArn;
111 bool m_snsTopicArnHasBeenSet = false;
112
113 Aws::String m_sourceType;
114 bool m_sourceTypeHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_eventCategories;
117 bool m_eventCategoriesHasBeenSet = false;
118
119 bool m_enabled{false};
120 bool m_enabledHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace DatabaseMigrationService
125} // namespace Aws
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ModifyEventSubscriptionRequest()=default
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&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