AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePolicyTemplateRequest.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/VerifiedPermissionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace VerifiedPermissions
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_VERIFIEDPERMISSIONS_API CreatePolicyTemplateRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreatePolicyTemplate"; }
32
33 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
34
35 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
54 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
55 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
56 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
57 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
58 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
59 inline CreatePolicyTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
60 inline CreatePolicyTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
61 inline CreatePolicyTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
63
65
68 inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; }
69 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
70 inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; }
71 inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); }
72 inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); }
73 inline CreatePolicyTemplateRequest& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
74 inline CreatePolicyTemplateRequest& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
75 inline CreatePolicyTemplateRequest& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;}
77
79
82 inline const Aws::String& GetDescription() const{ return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
85 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
86 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
87 inline CreatePolicyTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
88 inline CreatePolicyTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
89 inline CreatePolicyTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
91
93
97 inline const Aws::String& GetStatement() const{ return m_statement; }
98 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
99 inline void SetStatement(const Aws::String& value) { m_statementHasBeenSet = true; m_statement = value; }
100 inline void SetStatement(Aws::String&& value) { m_statementHasBeenSet = true; m_statement = std::move(value); }
101 inline void SetStatement(const char* value) { m_statementHasBeenSet = true; m_statement.assign(value); }
102 inline CreatePolicyTemplateRequest& WithStatement(const Aws::String& value) { SetStatement(value); return *this;}
103 inline CreatePolicyTemplateRequest& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;}
104 inline CreatePolicyTemplateRequest& WithStatement(const char* value) { SetStatement(value); return *this;}
106 private:
107
108 Aws::String m_clientToken;
109 bool m_clientTokenHasBeenSet = false;
110
111 Aws::String m_policyStoreId;
112 bool m_policyStoreIdHasBeenSet = false;
113
114 Aws::String m_description;
115 bool m_descriptionHasBeenSet = false;
116
117 Aws::String m_statement;
118 bool m_statementHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace VerifiedPermissions
123} // namespace Aws
CreatePolicyTemplateRequest & WithStatement(const char *value)
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
CreatePolicyTemplateRequest & WithClientToken(Aws::String &&value)
CreatePolicyTemplateRequest & WithClientToken(const Aws::String &value)
CreatePolicyTemplateRequest & WithDescription(const Aws::String &value)
CreatePolicyTemplateRequest & WithDescription(const char *value)
CreatePolicyTemplateRequest & WithStatement(const Aws::String &value)
CreatePolicyTemplateRequest & WithStatement(Aws::String &&value)
CreatePolicyTemplateRequest & WithPolicyStoreId(const Aws::String &value)
CreatePolicyTemplateRequest & WithClientToken(const char *value)
CreatePolicyTemplateRequest & WithDescription(Aws::String &&value)
CreatePolicyTemplateRequest & WithPolicyStoreId(const char *value)
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePolicyTemplateRequest & WithPolicyStoreId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String