AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEmailIdentityRequest.h
1
6#pragma once
7#include <aws/sesv2/SESV2_EXPORTS.h>
8#include <aws/sesv2/SESV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sesv2/model/DkimSigningAttributes.h>
12#include <aws/sesv2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SESV2
18{
19namespace Model
20{
21
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateEmailIdentity"; }
38
39 AWS_SESV2_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetEmailIdentity() const{ return m_emailIdentity; }
47 inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; }
48 inline void SetEmailIdentity(const Aws::String& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = value; }
49 inline void SetEmailIdentity(Aws::String&& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = std::move(value); }
50 inline void SetEmailIdentity(const char* value) { m_emailIdentityHasBeenSet = true; m_emailIdentity.assign(value); }
51 inline CreateEmailIdentityRequest& WithEmailIdentity(const Aws::String& value) { SetEmailIdentity(value); return *this;}
52 inline CreateEmailIdentityRequest& WithEmailIdentity(Aws::String&& value) { SetEmailIdentity(std::move(value)); return *this;}
53 inline CreateEmailIdentityRequest& WithEmailIdentity(const char* value) { SetEmailIdentity(value); return *this;}
55
57
61 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
64 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
65 inline CreateEmailIdentityRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
66 inline CreateEmailIdentityRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
67 inline CreateEmailIdentityRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
68 inline CreateEmailIdentityRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
70
72
80 inline const DkimSigningAttributes& GetDkimSigningAttributes() const{ return m_dkimSigningAttributes; }
81 inline bool DkimSigningAttributesHasBeenSet() const { return m_dkimSigningAttributesHasBeenSet; }
82 inline void SetDkimSigningAttributes(const DkimSigningAttributes& value) { m_dkimSigningAttributesHasBeenSet = true; m_dkimSigningAttributes = value; }
83 inline void SetDkimSigningAttributes(DkimSigningAttributes&& value) { m_dkimSigningAttributesHasBeenSet = true; m_dkimSigningAttributes = std::move(value); }
87
89
94 inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; }
95 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
96 inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; }
97 inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); }
98 inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); }
101 inline CreateEmailIdentityRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;}
103 private:
104
105 Aws::String m_emailIdentity;
106 bool m_emailIdentityHasBeenSet = false;
107
108 Aws::Vector<Tag> m_tags;
109 bool m_tagsHasBeenSet = false;
110
111 DkimSigningAttributes m_dkimSigningAttributes;
112 bool m_dkimSigningAttributesHasBeenSet = false;
113
114 Aws::String m_configurationSetName;
115 bool m_configurationSetNameHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace SESV2
120} // namespace Aws
AWS_SESV2_API Aws::String SerializePayload() const override
CreateEmailIdentityRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEmailIdentityRequest & AddTags(Tag &&value)
CreateEmailIdentityRequest & WithConfigurationSetName(Aws::String &&value)
CreateEmailIdentityRequest & WithDkimSigningAttributes(const DkimSigningAttributes &value)
CreateEmailIdentityRequest & WithEmailIdentity(Aws::String &&value)
CreateEmailIdentityRequest & WithEmailIdentity(const Aws::String &value)
void SetDkimSigningAttributes(DkimSigningAttributes &&value)
CreateEmailIdentityRequest & AddTags(const Tag &value)
CreateEmailIdentityRequest & WithDkimSigningAttributes(DkimSigningAttributes &&value)
virtual const char * GetServiceRequestName() const override
CreateEmailIdentityRequest & WithConfigurationSetName(const Aws::String &value)
void SetDkimSigningAttributes(const DkimSigningAttributes &value)
const DkimSigningAttributes & GetDkimSigningAttributes() const
CreateEmailIdentityRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEmailIdentityRequest & WithConfigurationSetName(const char *value)
CreateEmailIdentityRequest & WithEmailIdentity(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector