AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePolicyRequest.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 <aws/verifiedpermissions/model/PolicyDefinition.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace VerifiedPermissions
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_VERIFIEDPERMISSIONS_API CreatePolicyRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePolicy"; }
33
34 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
35
36 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
55 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
56 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
57 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
58 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
59 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
60 inline CreatePolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
61 inline CreatePolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
62 inline CreatePolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
64
66
70 inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; }
71 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
72 inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; }
73 inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); }
74 inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); }
75 inline CreatePolicyRequest& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
76 inline CreatePolicyRequest& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
77 inline CreatePolicyRequest& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;}
79
81
86 inline const PolicyDefinition& GetDefinition() const{ return m_definition; }
87 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
88 inline void SetDefinition(const PolicyDefinition& value) { m_definitionHasBeenSet = true; m_definition = value; }
89 inline void SetDefinition(PolicyDefinition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
90 inline CreatePolicyRequest& WithDefinition(const PolicyDefinition& value) { SetDefinition(value); return *this;}
91 inline CreatePolicyRequest& WithDefinition(PolicyDefinition&& value) { SetDefinition(std::move(value)); return *this;}
93 private:
94
95 Aws::String m_clientToken;
96 bool m_clientTokenHasBeenSet = false;
97
98 Aws::String m_policyStoreId;
99 bool m_policyStoreIdHasBeenSet = false;
100
101 PolicyDefinition m_definition;
102 bool m_definitionHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace VerifiedPermissions
107} // namespace Aws
CreatePolicyRequest & WithDefinition(const PolicyDefinition &value)
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePolicyRequest & WithClientToken(const char *value)
CreatePolicyRequest & WithDefinition(PolicyDefinition &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
CreatePolicyRequest & WithPolicyStoreId(const char *value)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyRequest()
CreatePolicyRequest & WithPolicyStoreId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreatePolicyRequest & WithPolicyStoreId(Aws::String &&value)
CreatePolicyRequest & WithClientToken(const Aws::String &value)
CreatePolicyRequest & WithClientToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String