AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
EmailChannelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
29 public:
30 AWS_PINPOINT_API EmailChannelRequest() = default;
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::String& GetConfigurationSet() const { return m_configurationSet; }
43 inline bool ConfigurationSetHasBeenSet() const { return m_configurationSetHasBeenSet; }
44 template <typename ConfigurationSetT = Aws::String>
45 void SetConfigurationSet(ConfigurationSetT&& value) {
46 m_configurationSetHasBeenSet = true;
47 m_configurationSet = std::forward<ConfigurationSetT>(value);
48 }
49 template <typename ConfigurationSetT = Aws::String>
50 EmailChannelRequest& WithConfigurationSet(ConfigurationSetT&& value) {
51 SetConfigurationSet(std::forward<ConfigurationSetT>(value));
52 return *this;
53 }
55
57
60 inline bool GetEnabled() const { return m_enabled; }
61 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
62 inline void SetEnabled(bool value) {
63 m_enabledHasBeenSet = true;
64 m_enabled = value;
65 }
66 inline EmailChannelRequest& WithEnabled(bool value) {
67 SetEnabled(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetFromAddress() const { return m_fromAddress; }
78 inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; }
79 template <typename FromAddressT = Aws::String>
80 void SetFromAddress(FromAddressT&& value) {
81 m_fromAddressHasBeenSet = true;
82 m_fromAddress = std::forward<FromAddressT>(value);
83 }
84 template <typename FromAddressT = Aws::String>
85 EmailChannelRequest& WithFromAddress(FromAddressT&& value) {
86 SetFromAddress(std::forward<FromAddressT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetIdentity() const { return m_identity; }
98 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
99 template <typename IdentityT = Aws::String>
100 void SetIdentity(IdentityT&& value) {
101 m_identityHasBeenSet = true;
102 m_identity = std::forward<IdentityT>(value);
103 }
104 template <typename IdentityT = Aws::String>
105 EmailChannelRequest& WithIdentity(IdentityT&& value) {
106 SetIdentity(std::forward<IdentityT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
118 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
119 template <typename RoleArnT = Aws::String>
120 void SetRoleArn(RoleArnT&& value) {
121 m_roleArnHasBeenSet = true;
122 m_roleArn = std::forward<RoleArnT>(value);
123 }
124 template <typename RoleArnT = Aws::String>
125 EmailChannelRequest& WithRoleArn(RoleArnT&& value) {
126 SetRoleArn(std::forward<RoleArnT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetOrchestrationSendingRoleArn() const { return m_orchestrationSendingRoleArn; }
137 inline bool OrchestrationSendingRoleArnHasBeenSet() const { return m_orchestrationSendingRoleArnHasBeenSet; }
138 template <typename OrchestrationSendingRoleArnT = Aws::String>
139 void SetOrchestrationSendingRoleArn(OrchestrationSendingRoleArnT&& value) {
140 m_orchestrationSendingRoleArnHasBeenSet = true;
141 m_orchestrationSendingRoleArn = std::forward<OrchestrationSendingRoleArnT>(value);
142 }
143 template <typename OrchestrationSendingRoleArnT = Aws::String>
144 EmailChannelRequest& WithOrchestrationSendingRoleArn(OrchestrationSendingRoleArnT&& value) {
145 SetOrchestrationSendingRoleArn(std::forward<OrchestrationSendingRoleArnT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_configurationSet;
151
152 bool m_enabled{false};
153
154 Aws::String m_fromAddress;
155
156 Aws::String m_identity;
157
158 Aws::String m_roleArn;
159
160 Aws::String m_orchestrationSendingRoleArn;
161 bool m_configurationSetHasBeenSet = false;
162 bool m_enabledHasBeenSet = false;
163 bool m_fromAddressHasBeenSet = false;
164 bool m_identityHasBeenSet = false;
165 bool m_roleArnHasBeenSet = false;
166 bool m_orchestrationSendingRoleArnHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Pinpoint
171} // namespace Aws
EmailChannelRequest & WithRoleArn(RoleArnT &&value)
AWS_PINPOINT_API EmailChannelRequest()=default
AWS_PINPOINT_API EmailChannelRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConfigurationSet(ConfigurationSetT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API EmailChannelRequest(Aws::Utils::Json::JsonView jsonValue)
EmailChannelRequest & WithConfigurationSet(ConfigurationSetT &&value)
void SetOrchestrationSendingRoleArn(OrchestrationSendingRoleArnT &&value)
const Aws::String & GetConfigurationSet() const
EmailChannelRequest & WithFromAddress(FromAddressT &&value)
EmailChannelRequest & WithIdentity(IdentityT &&value)
const Aws::String & GetOrchestrationSendingRoleArn() const
EmailChannelRequest & WithEnabled(bool value)
EmailChannelRequest & WithOrchestrationSendingRoleArn(OrchestrationSendingRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue