AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreatePolicyTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/verifiedpermissions/VerifiedPermissionsRequest.h>
10#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace VerifiedPermissions {
16namespace Model {
17
21 public:
22 AWS_VERIFIEDPERMISSIONS_API CreatePolicyTemplateRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreatePolicyTemplate"; }
29
30 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
31
32 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
50 inline const Aws::String& GetClientToken() const { return m_clientToken; }
51 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
52 template <typename ClientTokenT = Aws::String>
53 void SetClientToken(ClientTokenT&& value) {
54 m_clientTokenHasBeenSet = true;
55 m_clientToken = std::forward<ClientTokenT>(value);
56 }
57 template <typename ClientTokenT = Aws::String>
59 SetClientToken(std::forward<ClientTokenT>(value));
60 return *this;
61 }
63
65
74 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
75 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
76 template <typename PolicyStoreIdT = Aws::String>
77 void SetPolicyStoreId(PolicyStoreIdT&& value) {
78 m_policyStoreIdHasBeenSet = true;
79 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
80 }
81 template <typename PolicyStoreIdT = Aws::String>
83 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetStatement() const { return m_statement; }
112 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
113 template <typename StatementT = Aws::String>
114 void SetStatement(StatementT&& value) {
115 m_statementHasBeenSet = true;
116 m_statement = std::forward<StatementT>(value);
117 }
118 template <typename StatementT = Aws::String>
120 SetStatement(std::forward<StatementT>(value));
121 return *this;
122 }
124
126
134 inline const Aws::String& GetName() const { return m_name; }
135 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
136 template <typename NameT = Aws::String>
137 void SetName(NameT&& value) {
138 m_nameHasBeenSet = true;
139 m_name = std::forward<NameT>(value);
140 }
141 template <typename NameT = Aws::String>
143 SetName(std::forward<NameT>(value));
144 return *this;
145 }
147 private:
149
150 Aws::String m_policyStoreId;
151
152 Aws::String m_description;
153
154 Aws::String m_statement;
155
156 Aws::String m_name;
157 bool m_clientTokenHasBeenSet = true;
158 bool m_policyStoreIdHasBeenSet = false;
159 bool m_descriptionHasBeenSet = false;
160 bool m_statementHasBeenSet = false;
161 bool m_nameHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace VerifiedPermissions
166} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
AWS_VERIFIEDPERMISSIONS_API CreatePolicyTemplateRequest()=default
CreatePolicyTemplateRequest & WithPolicyStoreId(PolicyStoreIdT &&value)
CreatePolicyTemplateRequest & WithClientToken(ClientTokenT &&value)
CreatePolicyTemplateRequest & WithDescription(DescriptionT &&value)
CreatePolicyTemplateRequest & WithStatement(StatementT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String