AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateEmailIdentityRequest.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/sesv2/SESV2Request.h>
10#include <aws/sesv2/SESV2_EXPORTS.h>
11#include <aws/sesv2/model/DkimSigningAttributes.h>
12#include <aws/sesv2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SESV2 {
18namespace Model {
19
27 public:
28 AWS_SESV2_API CreateEmailIdentityRequest() = 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 "CreateEmailIdentity"; }
35
36 AWS_SESV2_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetEmailIdentity() const { return m_emailIdentity; }
43 inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; }
44 template <typename EmailIdentityT = Aws::String>
45 void SetEmailIdentity(EmailIdentityT&& value) {
46 m_emailIdentityHasBeenSet = true;
47 m_emailIdentity = std::forward<EmailIdentityT>(value);
48 }
49 template <typename EmailIdentityT = Aws::String>
51 SetEmailIdentity(std::forward<EmailIdentityT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 template <typename TagsT = Aws::Vector<Tag>>
64 void SetTags(TagsT&& value) {
65 m_tagsHasBeenSet = true;
66 m_tags = std::forward<TagsT>(value);
67 }
68 template <typename TagsT = Aws::Vector<Tag>>
70 SetTags(std::forward<TagsT>(value));
71 return *this;
72 }
73 template <typename TagsT = Tag>
75 m_tagsHasBeenSet = true;
76 m_tags.emplace_back(std::forward<TagsT>(value));
77 return *this;
78 }
80
82
90 inline const DkimSigningAttributes& GetDkimSigningAttributes() const { return m_dkimSigningAttributes; }
91 inline bool DkimSigningAttributesHasBeenSet() const { return m_dkimSigningAttributesHasBeenSet; }
92 template <typename DkimSigningAttributesT = DkimSigningAttributes>
93 void SetDkimSigningAttributes(DkimSigningAttributesT&& value) {
94 m_dkimSigningAttributesHasBeenSet = true;
95 m_dkimSigningAttributes = std::forward<DkimSigningAttributesT>(value);
96 }
97 template <typename DkimSigningAttributesT = DkimSigningAttributes>
98 CreateEmailIdentityRequest& WithDkimSigningAttributes(DkimSigningAttributesT&& value) {
99 SetDkimSigningAttributes(std::forward<DkimSigningAttributesT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
111 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
112 template <typename ConfigurationSetNameT = Aws::String>
113 void SetConfigurationSetName(ConfigurationSetNameT&& value) {
114 m_configurationSetNameHasBeenSet = true;
115 m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
116 }
117 template <typename ConfigurationSetNameT = Aws::String>
118 CreateEmailIdentityRequest& WithConfigurationSetName(ConfigurationSetNameT&& value) {
119 SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_emailIdentity;
125
126 Aws::Vector<Tag> m_tags;
127
128 DkimSigningAttributes m_dkimSigningAttributes;
129
130 Aws::String m_configurationSetName;
131 bool m_emailIdentityHasBeenSet = false;
132 bool m_tagsHasBeenSet = false;
133 bool m_dkimSigningAttributesHasBeenSet = false;
134 bool m_configurationSetNameHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace SESV2
139} // namespace Aws
AWS_SESV2_API Aws::String SerializePayload() const override
CreateEmailIdentityRequest & AddTags(TagsT &&value)
CreateEmailIdentityRequest & WithEmailIdentity(EmailIdentityT &&value)
CreateEmailIdentityRequest & WithDkimSigningAttributes(DkimSigningAttributesT &&value)
CreateEmailIdentityRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
void SetDkimSigningAttributes(DkimSigningAttributesT &&value)
void SetConfigurationSetName(ConfigurationSetNameT &&value)
virtual const char * GetServiceRequestName() const override
const DkimSigningAttributes & GetDkimSigningAttributes() const
CreateEmailIdentityRequest & WithTags(TagsT &&value)
AWS_SESV2_API CreateEmailIdentityRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector