AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateConfigurationSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint-email/PinpointEmailRequest.h>
10#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
11#include <aws/pinpoint-email/model/DeliveryOptions.h>
12#include <aws/pinpoint-email/model/ReputationOptions.h>
13#include <aws/pinpoint-email/model/SendingOptions.h>
14#include <aws/pinpoint-email/model/Tag.h>
15#include <aws/pinpoint-email/model/TrackingOptions.h>
16
17#include <utility>
18
19namespace Aws {
20namespace PinpointEmail {
21namespace Model {
22
29 public:
30 AWS_PINPOINTEMAIL_API CreateConfigurationSetRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateConfigurationSet"; }
37
38 AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
45 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
46 template <typename ConfigurationSetNameT = Aws::String>
47 void SetConfigurationSetName(ConfigurationSetNameT&& value) {
48 m_configurationSetNameHasBeenSet = true;
49 m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
50 }
51 template <typename ConfigurationSetNameT = Aws::String>
53 SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
54 return *this;
55 }
57
59
63 inline const TrackingOptions& GetTrackingOptions() const { return m_trackingOptions; }
64 inline bool TrackingOptionsHasBeenSet() const { return m_trackingOptionsHasBeenSet; }
65 template <typename TrackingOptionsT = TrackingOptions>
66 void SetTrackingOptions(TrackingOptionsT&& value) {
67 m_trackingOptionsHasBeenSet = true;
68 m_trackingOptions = std::forward<TrackingOptionsT>(value);
69 }
70 template <typename TrackingOptionsT = TrackingOptions>
72 SetTrackingOptions(std::forward<TrackingOptionsT>(value));
73 return *this;
74 }
76
78
82 inline const DeliveryOptions& GetDeliveryOptions() const { return m_deliveryOptions; }
83 inline bool DeliveryOptionsHasBeenSet() const { return m_deliveryOptionsHasBeenSet; }
84 template <typename DeliveryOptionsT = DeliveryOptions>
85 void SetDeliveryOptions(DeliveryOptionsT&& value) {
86 m_deliveryOptionsHasBeenSet = true;
87 m_deliveryOptions = std::forward<DeliveryOptionsT>(value);
88 }
89 template <typename DeliveryOptionsT = DeliveryOptions>
91 SetDeliveryOptions(std::forward<DeliveryOptionsT>(value));
92 return *this;
93 }
95
97
101 inline const ReputationOptions& GetReputationOptions() const { return m_reputationOptions; }
102 inline bool ReputationOptionsHasBeenSet() const { return m_reputationOptionsHasBeenSet; }
103 template <typename ReputationOptionsT = ReputationOptions>
104 void SetReputationOptions(ReputationOptionsT&& value) {
105 m_reputationOptionsHasBeenSet = true;
106 m_reputationOptions = std::forward<ReputationOptionsT>(value);
107 }
108 template <typename ReputationOptionsT = ReputationOptions>
110 SetReputationOptions(std::forward<ReputationOptionsT>(value));
111 return *this;
112 }
114
116
120 inline const SendingOptions& GetSendingOptions() const { return m_sendingOptions; }
121 inline bool SendingOptionsHasBeenSet() const { return m_sendingOptionsHasBeenSet; }
122 template <typename SendingOptionsT = SendingOptions>
123 void SetSendingOptions(SendingOptionsT&& value) {
124 m_sendingOptionsHasBeenSet = true;
125 m_sendingOptions = std::forward<SendingOptionsT>(value);
126 }
127 template <typename SendingOptionsT = SendingOptions>
129 SetSendingOptions(std::forward<SendingOptionsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template <typename TagsT = Aws::Vector<Tag>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Vector<Tag>>
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsT = Tag>
153 m_tagsHasBeenSet = true;
154 m_tags.emplace_back(std::forward<TagsT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_configurationSetName;
160
161 TrackingOptions m_trackingOptions;
162
163 DeliveryOptions m_deliveryOptions;
164
165 ReputationOptions m_reputationOptions;
166
167 SendingOptions m_sendingOptions;
168
169 Aws::Vector<Tag> m_tags;
170 bool m_configurationSetNameHasBeenSet = false;
171 bool m_trackingOptionsHasBeenSet = false;
172 bool m_deliveryOptionsHasBeenSet = false;
173 bool m_reputationOptionsHasBeenSet = false;
174 bool m_sendingOptionsHasBeenSet = false;
175 bool m_tagsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace PinpointEmail
180} // namespace Aws
AWS_PINPOINTEMAIL_API CreateConfigurationSetRequest()=default
CreateConfigurationSetRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
CreateConfigurationSetRequest & WithTrackingOptions(TrackingOptionsT &&value)
AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override
CreateConfigurationSetRequest & WithSendingOptions(SendingOptionsT &&value)
CreateConfigurationSetRequest & WithReputationOptions(ReputationOptionsT &&value)
CreateConfigurationSetRequest & WithDeliveryOptions(DeliveryOptionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector