AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EmailChannelRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PINPOINT_API EmailChannelRequest() = default;
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::String& GetConfigurationSet() const { return m_configurationSet; }
49 inline bool ConfigurationSetHasBeenSet() const { return m_configurationSetHasBeenSet; }
50 template<typename ConfigurationSetT = Aws::String>
51 void SetConfigurationSet(ConfigurationSetT&& value) { m_configurationSetHasBeenSet = true; m_configurationSet = std::forward<ConfigurationSetT>(value); }
52 template<typename ConfigurationSetT = Aws::String>
53 EmailChannelRequest& WithConfigurationSet(ConfigurationSetT&& value) { SetConfigurationSet(std::forward<ConfigurationSetT>(value)); return *this;}
55
57
60 inline bool GetEnabled() const { return m_enabled; }
61 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
62 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
63 inline EmailChannelRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
65
67
71 inline const Aws::String& GetFromAddress() const { return m_fromAddress; }
72 inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; }
73 template<typename FromAddressT = Aws::String>
74 void SetFromAddress(FromAddressT&& value) { m_fromAddressHasBeenSet = true; m_fromAddress = std::forward<FromAddressT>(value); }
75 template<typename FromAddressT = Aws::String>
76 EmailChannelRequest& WithFromAddress(FromAddressT&& value) { SetFromAddress(std::forward<FromAddressT>(value)); return *this;}
78
80
85 inline const Aws::String& GetIdentity() const { return m_identity; }
86 inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; }
87 template<typename IdentityT = Aws::String>
88 void SetIdentity(IdentityT&& value) { m_identityHasBeenSet = true; m_identity = std::forward<IdentityT>(value); }
89 template<typename IdentityT = Aws::String>
90 EmailChannelRequest& WithIdentity(IdentityT&& value) { SetIdentity(std::forward<IdentityT>(value)); return *this;}
92
94
99 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
100 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
101 template<typename RoleArnT = Aws::String>
102 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
103 template<typename RoleArnT = Aws::String>
104 EmailChannelRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
106
108
112 inline const Aws::String& GetOrchestrationSendingRoleArn() const { return m_orchestrationSendingRoleArn; }
113 inline bool OrchestrationSendingRoleArnHasBeenSet() const { return m_orchestrationSendingRoleArnHasBeenSet; }
114 template<typename OrchestrationSendingRoleArnT = Aws::String>
115 void SetOrchestrationSendingRoleArn(OrchestrationSendingRoleArnT&& value) { m_orchestrationSendingRoleArnHasBeenSet = true; m_orchestrationSendingRoleArn = std::forward<OrchestrationSendingRoleArnT>(value); }
116 template<typename OrchestrationSendingRoleArnT = Aws::String>
117 EmailChannelRequest& WithOrchestrationSendingRoleArn(OrchestrationSendingRoleArnT&& value) { SetOrchestrationSendingRoleArn(std::forward<OrchestrationSendingRoleArnT>(value)); return *this;}
119 private:
120
121 Aws::String m_configurationSet;
122 bool m_configurationSetHasBeenSet = false;
123
124 bool m_enabled{false};
125 bool m_enabledHasBeenSet = false;
126
127 Aws::String m_fromAddress;
128 bool m_fromAddressHasBeenSet = false;
129
130 Aws::String m_identity;
131 bool m_identityHasBeenSet = false;
132
133 Aws::String m_roleArn;
134 bool m_roleArnHasBeenSet = false;
135
136 Aws::String m_orchestrationSendingRoleArn;
137 bool m_orchestrationSendingRoleArnHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace Pinpoint
142} // 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