AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePolicyRequest.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/UpdatePolicyDefinition.h>
11#include <utility>
12
13namespace Aws
14{
15namespace VerifiedPermissions
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_VERIFIEDPERMISSIONS_API UpdatePolicyRequest();
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 "UpdatePolicy"; }
32
33 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
34
35 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; }
44 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
45 inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; }
46 inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); }
47 inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); }
48 inline UpdatePolicyRequest& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
49 inline UpdatePolicyRequest& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
50 inline UpdatePolicyRequest& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;}
52
54
59 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
60 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
61 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
62 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
63 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
64 inline UpdatePolicyRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
65 inline UpdatePolicyRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
66 inline UpdatePolicyRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
68
70
83 inline const UpdatePolicyDefinition& GetDefinition() const{ return m_definition; }
84 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
85 inline void SetDefinition(const UpdatePolicyDefinition& value) { m_definitionHasBeenSet = true; m_definition = value; }
86 inline void SetDefinition(UpdatePolicyDefinition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
87 inline UpdatePolicyRequest& WithDefinition(const UpdatePolicyDefinition& value) { SetDefinition(value); return *this;}
88 inline UpdatePolicyRequest& WithDefinition(UpdatePolicyDefinition&& value) { SetDefinition(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_policyStoreId;
93 bool m_policyStoreIdHasBeenSet = false;
94
95 Aws::String m_policyId;
96 bool m_policyIdHasBeenSet = false;
97
98 UpdatePolicyDefinition m_definition;
99 bool m_definitionHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace VerifiedPermissions
104} // namespace Aws
UpdatePolicyRequest & WithPolicyId(Aws::String &&value)
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyRequest()
UpdatePolicyRequest & WithPolicyStoreId(const Aws::String &value)
void SetDefinition(UpdatePolicyDefinition &&value)
UpdatePolicyRequest & WithPolicyStoreId(Aws::String &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdatePolicyRequest & WithPolicyId(const char *value)
const UpdatePolicyDefinition & GetDefinition() const
void SetDefinition(const UpdatePolicyDefinition &value)
UpdatePolicyRequest & WithPolicyStoreId(const char *value)
UpdatePolicyRequest & WithDefinition(const UpdatePolicyDefinition &value)
UpdatePolicyRequest & WithDefinition(UpdatePolicyDefinition &&value)
UpdatePolicyRequest & WithPolicyId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String