AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
68 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
69 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
70 template <typename PolicyStoreIdT = Aws::String>
71 void SetPolicyStoreId(PolicyStoreIdT&& value) {
72 m_policyStoreIdHasBeenSet = true;
73 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
74 }
75 template <typename PolicyStoreIdT = Aws::String>
77 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetStatement() const { return m_statement; }
106 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
107 template <typename StatementT = Aws::String>
108 void SetStatement(StatementT&& value) {
109 m_statementHasBeenSet = true;
110 m_statement = std::forward<StatementT>(value);
111 }
112 template <typename StatementT = Aws::String>
114 SetStatement(std::forward<StatementT>(value));
115 return *this;
116 }
118 private:
120
121 Aws::String m_policyStoreId;
122
123 Aws::String m_description;
124
125 Aws::String m_statement;
126 bool m_clientTokenHasBeenSet = true;
127 bool m_policyStoreIdHasBeenSet = false;
128 bool m_descriptionHasBeenSet = false;
129 bool m_statementHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace VerifiedPermissions
134} // 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