AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConfigurationSetRequest.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/pinpoint-email/PinpointEmailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint-email/model/TrackingOptions.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/core/utils/memory/stl/AWSVector.h>
15#include <aws/pinpoint-email/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace PinpointEmail
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_PINPOINTEMAIL_API CreateConfigurationSetRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateConfigurationSet"; }
40
41 AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override;
42
43
45
48 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
49 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
50 template<typename ConfigurationSetNameT = Aws::String>
51 void SetConfigurationSetName(ConfigurationSetNameT&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::forward<ConfigurationSetNameT>(value); }
52 template<typename ConfigurationSetNameT = Aws::String>
53 CreateConfigurationSetRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) { SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value)); return *this;}
55
57
61 inline const TrackingOptions& GetTrackingOptions() const { return m_trackingOptions; }
62 inline bool TrackingOptionsHasBeenSet() const { return m_trackingOptionsHasBeenSet; }
63 template<typename TrackingOptionsT = TrackingOptions>
64 void SetTrackingOptions(TrackingOptionsT&& value) { m_trackingOptionsHasBeenSet = true; m_trackingOptions = std::forward<TrackingOptionsT>(value); }
65 template<typename TrackingOptionsT = TrackingOptions>
66 CreateConfigurationSetRequest& WithTrackingOptions(TrackingOptionsT&& value) { SetTrackingOptions(std::forward<TrackingOptionsT>(value)); return *this;}
68
70
74 inline const DeliveryOptions& GetDeliveryOptions() const { return m_deliveryOptions; }
75 inline bool DeliveryOptionsHasBeenSet() const { return m_deliveryOptionsHasBeenSet; }
76 template<typename DeliveryOptionsT = DeliveryOptions>
77 void SetDeliveryOptions(DeliveryOptionsT&& value) { m_deliveryOptionsHasBeenSet = true; m_deliveryOptions = std::forward<DeliveryOptionsT>(value); }
78 template<typename DeliveryOptionsT = DeliveryOptions>
79 CreateConfigurationSetRequest& WithDeliveryOptions(DeliveryOptionsT&& value) { SetDeliveryOptions(std::forward<DeliveryOptionsT>(value)); return *this;}
81
83
87 inline const ReputationOptions& GetReputationOptions() const { return m_reputationOptions; }
88 inline bool ReputationOptionsHasBeenSet() const { return m_reputationOptionsHasBeenSet; }
89 template<typename ReputationOptionsT = ReputationOptions>
90 void SetReputationOptions(ReputationOptionsT&& value) { m_reputationOptionsHasBeenSet = true; m_reputationOptions = std::forward<ReputationOptionsT>(value); }
91 template<typename ReputationOptionsT = ReputationOptions>
92 CreateConfigurationSetRequest& WithReputationOptions(ReputationOptionsT&& value) { SetReputationOptions(std::forward<ReputationOptionsT>(value)); return *this;}
94
96
100 inline const SendingOptions& GetSendingOptions() const { return m_sendingOptions; }
101 inline bool SendingOptionsHasBeenSet() const { return m_sendingOptionsHasBeenSet; }
102 template<typename SendingOptionsT = SendingOptions>
103 void SetSendingOptions(SendingOptionsT&& value) { m_sendingOptionsHasBeenSet = true; m_sendingOptions = std::forward<SendingOptionsT>(value); }
104 template<typename SendingOptionsT = SendingOptions>
105 CreateConfigurationSetRequest& WithSendingOptions(SendingOptionsT&& value) { SetSendingOptions(std::forward<SendingOptionsT>(value)); return *this;}
107
109
113 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template<typename TagsT = Aws::Vector<Tag>>
116 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
117 template<typename TagsT = Aws::Vector<Tag>>
118 CreateConfigurationSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
119 template<typename TagsT = Tag>
120 CreateConfigurationSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
122 private:
123
124 Aws::String m_configurationSetName;
125 bool m_configurationSetNameHasBeenSet = false;
126
127 TrackingOptions m_trackingOptions;
128 bool m_trackingOptionsHasBeenSet = false;
129
130 DeliveryOptions m_deliveryOptions;
131 bool m_deliveryOptionsHasBeenSet = false;
132
133 ReputationOptions m_reputationOptions;
134 bool m_reputationOptionsHasBeenSet = false;
135
136 SendingOptions m_sendingOptions;
137 bool m_sendingOptionsHasBeenSet = false;
138
139 Aws::Vector<Tag> m_tags;
140 bool m_tagsHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace PinpointEmail
145} // 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