AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateTenantRequest.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/Tag.h>
12#include <aws/sesv2/model/TenantSuppressionAttributes.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SESV2 {
18namespace Model {
19
31 public:
32 AWS_SESV2_API CreateTenantRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateTenant"; }
39
40 AWS_SESV2_API Aws::String SerializePayload() const override;
41
43
48 inline const Aws::String& GetTenantName() const { return m_tenantName; }
49 inline bool TenantNameHasBeenSet() const { return m_tenantNameHasBeenSet; }
50 template <typename TenantNameT = Aws::String>
51 void SetTenantName(TenantNameT&& value) {
52 m_tenantNameHasBeenSet = true;
53 m_tenantName = std::forward<TenantNameT>(value);
54 }
55 template <typename TenantNameT = Aws::String>
56 CreateTenantRequest& WithTenantName(TenantNameT&& value) {
57 SetTenantName(std::forward<TenantNameT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 template <typename TagsT = Aws::Vector<Tag>>
70 void SetTags(TagsT&& value) {
71 m_tagsHasBeenSet = true;
72 m_tags = std::forward<TagsT>(value);
73 }
74 template <typename TagsT = Aws::Vector<Tag>>
75 CreateTenantRequest& WithTags(TagsT&& value) {
76 SetTags(std::forward<TagsT>(value));
77 return *this;
78 }
79 template <typename TagsT = Tag>
80 CreateTenantRequest& AddTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags.emplace_back(std::forward<TagsT>(value));
83 return *this;
84 }
86
88
93 inline const TenantSuppressionAttributes& GetSuppressionAttributes() const { return m_suppressionAttributes; }
94 inline bool SuppressionAttributesHasBeenSet() const { return m_suppressionAttributesHasBeenSet; }
95 template <typename SuppressionAttributesT = TenantSuppressionAttributes>
96 void SetSuppressionAttributes(SuppressionAttributesT&& value) {
97 m_suppressionAttributesHasBeenSet = true;
98 m_suppressionAttributes = std::forward<SuppressionAttributesT>(value);
99 }
100 template <typename SuppressionAttributesT = TenantSuppressionAttributes>
101 CreateTenantRequest& WithSuppressionAttributes(SuppressionAttributesT&& value) {
102 SetSuppressionAttributes(std::forward<SuppressionAttributesT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_tenantName;
108
109 Aws::Vector<Tag> m_tags;
110
111 TenantSuppressionAttributes m_suppressionAttributes;
112 bool m_tenantNameHasBeenSet = false;
113 bool m_tagsHasBeenSet = false;
114 bool m_suppressionAttributesHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace SESV2
119} // namespace Aws
CreateTenantRequest & WithTenantName(TenantNameT &&value)
const Aws::Vector< Tag > & GetTags() const
virtual const char * GetServiceRequestName() const override
AWS_SESV2_API CreateTenantRequest()=default
CreateTenantRequest & AddTags(TagsT &&value)
CreateTenantRequest & WithTags(TagsT &&value)
CreateTenantRequest & WithSuppressionAttributes(SuppressionAttributesT &&value)
const Aws::String & GetTenantName() const
void SetSuppressionAttributes(SuppressionAttributesT &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
const TenantSuppressionAttributes & GetSuppressionAttributes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector