AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/pinpoint-email/PinpointEmailRequest.h>
10#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
11#include <aws/pinpoint-email/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PinpointEmail {
17namespace Model {
18
26 public:
27 AWS_PINPOINTEMAIL_API CreateEmailIdentityRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateEmailIdentity"; }
34
35 AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetEmailIdentity() const { return m_emailIdentity; }
42 inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; }
43 template <typename EmailIdentityT = Aws::String>
44 void SetEmailIdentity(EmailIdentityT&& value) {
45 m_emailIdentityHasBeenSet = true;
46 m_emailIdentity = std::forward<EmailIdentityT>(value);
47 }
48 template <typename EmailIdentityT = Aws::String>
50 SetEmailIdentity(std::forward<EmailIdentityT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template <typename TagsT = Aws::Vector<Tag>>
63 void SetTags(TagsT&& value) {
64 m_tagsHasBeenSet = true;
65 m_tags = std::forward<TagsT>(value);
66 }
67 template <typename TagsT = Aws::Vector<Tag>>
69 SetTags(std::forward<TagsT>(value));
70 return *this;
71 }
72 template <typename TagsT = Tag>
74 m_tagsHasBeenSet = true;
75 m_tags.emplace_back(std::forward<TagsT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_emailIdentity;
81
82 Aws::Vector<Tag> m_tags;
83 bool m_emailIdentityHasBeenSet = false;
84 bool m_tagsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace PinpointEmail
89} // namespace Aws
CreateEmailIdentityRequest & AddTags(TagsT &&value)
AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override
AWS_PINPOINTEMAIL_API CreateEmailIdentityRequest()=default
CreateEmailIdentityRequest & WithTags(TagsT &&value)
CreateEmailIdentityRequest & WithEmailIdentity(EmailIdentityT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector