AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateImpersonationRoleRequest.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/workmail/WorkMailRequest.h>
10#include <aws/workmail/WorkMail_EXPORTS.h>
11#include <aws/workmail/model/ImpersonationRoleType.h>
12#include <aws/workmail/model/ImpersonationRule.h>
13
14#include <utility>
15
16namespace Aws {
17namespace WorkMail {
18namespace Model {
19
23 public:
24 AWS_WORKMAIL_API UpdateImpersonationRoleRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateImpersonationRole"; }
31
32 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
41 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
42 template <typename OrganizationIdT = Aws::String>
43 void SetOrganizationId(OrganizationIdT&& value) {
44 m_organizationIdHasBeenSet = true;
45 m_organizationId = std::forward<OrganizationIdT>(value);
46 }
47 template <typename OrganizationIdT = Aws::String>
49 SetOrganizationId(std::forward<OrganizationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetImpersonationRoleId() const { return m_impersonationRoleId; }
59 inline bool ImpersonationRoleIdHasBeenSet() const { return m_impersonationRoleIdHasBeenSet; }
60 template <typename ImpersonationRoleIdT = Aws::String>
61 void SetImpersonationRoleId(ImpersonationRoleIdT&& value) {
62 m_impersonationRoleIdHasBeenSet = true;
63 m_impersonationRoleId = std::forward<ImpersonationRoleIdT>(value);
64 }
65 template <typename ImpersonationRoleIdT = Aws::String>
67 SetImpersonationRoleId(std::forward<ImpersonationRoleIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline ImpersonationRoleType GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(ImpersonationRoleType value) {
97 m_typeHasBeenSet = true;
98 m_type = value;
99 }
101 SetType(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 template <typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) {
114 m_descriptionHasBeenSet = true;
115 m_description = std::forward<DescriptionT>(value);
116 }
117 template <typename DescriptionT = Aws::String>
119 SetDescription(std::forward<DescriptionT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Vector<ImpersonationRule>& GetRules() const { return m_rules; }
129 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
130 template <typename RulesT = Aws::Vector<ImpersonationRule>>
131 void SetRules(RulesT&& value) {
132 m_rulesHasBeenSet = true;
133 m_rules = std::forward<RulesT>(value);
134 }
135 template <typename RulesT = Aws::Vector<ImpersonationRule>>
137 SetRules(std::forward<RulesT>(value));
138 return *this;
139 }
140 template <typename RulesT = ImpersonationRule>
142 m_rulesHasBeenSet = true;
143 m_rules.emplace_back(std::forward<RulesT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_organizationId;
149
150 Aws::String m_impersonationRoleId;
151
152 Aws::String m_name;
153
155
156 Aws::String m_description;
157
159 bool m_organizationIdHasBeenSet = false;
160 bool m_impersonationRoleIdHasBeenSet = false;
161 bool m_nameHasBeenSet = false;
162 bool m_typeHasBeenSet = false;
163 bool m_descriptionHasBeenSet = false;
164 bool m_rulesHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace WorkMail
169} // namespace Aws
UpdateImpersonationRoleRequest & WithDescription(DescriptionT &&value)
UpdateImpersonationRoleRequest & WithType(ImpersonationRoleType value)
UpdateImpersonationRoleRequest & WithRules(RulesT &&value)
const Aws::Vector< ImpersonationRule > & GetRules() const
UpdateImpersonationRoleRequest & WithName(NameT &&value)
UpdateImpersonationRoleRequest & WithImpersonationRoleId(ImpersonationRoleIdT &&value)
AWS_WORKMAIL_API UpdateImpersonationRoleRequest()=default
AWS_WORKMAIL_API Aws::String SerializePayload() const override
UpdateImpersonationRoleRequest & WithOrganizationId(OrganizationIdT &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateImpersonationRoleRequest & AddRules(RulesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector