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/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();
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 inline void SetEmailIdentity(const Aws::String& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = value; }
48 inline void SetEmailIdentity(Aws::String&& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = std::move(value); }
49 inline void SetEmailIdentity(const char* value) { m_emailIdentityHasBeenSet = true; m_emailIdentity.assign(value); }
50 inline CreateEmailIdentityRequest& WithEmailIdentity(const Aws::String& value) { SetEmailIdentity(value); return *this;}
51 inline CreateEmailIdentityRequest& WithEmailIdentity(Aws::String&& value) { SetEmailIdentity(std::move(value)); return *this;}
52 inline CreateEmailIdentityRequest& WithEmailIdentity(const char* value) { SetEmailIdentity(value); return *this;}
54
56
60 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
63 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
64 inline CreateEmailIdentityRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
65 inline CreateEmailIdentityRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
66 inline CreateEmailIdentityRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
67 inline CreateEmailIdentityRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_emailIdentity;
72 bool m_emailIdentityHasBeenSet = false;
73
74 Aws::Vector<Tag> m_tags;
75 bool m_tagsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace PinpointEmail
80} // namespace Aws
CreateEmailIdentityRequest & WithEmailIdentity(const Aws::String &value)
AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override
CreateEmailIdentityRequest & WithEmailIdentity(Aws::String &&value)
CreateEmailIdentityRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEmailIdentityRequest & WithEmailIdentity(const char *value)
CreateEmailIdentityRequest & AddTags(const Tag &value)
CreateEmailIdentityRequest & WithTags(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector