AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEmailIdentityRequest.h
1
6#pragma once
7#include <aws/pinpoint-email/PinpointEmail_EXPORTS.h>
8#include <aws/pinpoint-email/PinpointEmailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/pinpoint-email/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace PinpointEmail
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_PINPOINTEMAIL_API CreateEmailIdentityRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateEmailIdentity"; }
37
38 AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetEmailIdentity() const { return m_emailIdentity; }
46 inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; }
47 template<typename EmailIdentityT = Aws::String>
48 void SetEmailIdentity(EmailIdentityT&& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = std::forward<EmailIdentityT>(value); }
49 template<typename EmailIdentityT = Aws::String>
50 CreateEmailIdentityRequest& WithEmailIdentity(EmailIdentityT&& value) { SetEmailIdentity(std::forward<EmailIdentityT>(value)); return *this;}
52
54
58 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
59 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
60 template<typename TagsT = Aws::Vector<Tag>>
61 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
62 template<typename TagsT = Aws::Vector<Tag>>
63 CreateEmailIdentityRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
64 template<typename TagsT = Tag>
65 CreateEmailIdentityRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
67 private:
68
69 Aws::String m_emailIdentity;
70 bool m_emailIdentityHasBeenSet = false;
71
72 Aws::Vector<Tag> m_tags;
73 bool m_tagsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace PinpointEmail
78} // 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