AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutKeyPolicyRequest.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace KMS
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_KMS_API PutKeyPolicyRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutKeyPolicy"; }
31
32 AWS_KMS_API Aws::String SerializePayload() const override;
33
35
36
38
46 inline const Aws::String& GetKeyId() const{ return m_keyId; }
47 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
48 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
49 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
50 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
51 inline PutKeyPolicyRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
52 inline PutKeyPolicyRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
53 inline PutKeyPolicyRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
55
57
61 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
62 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
63 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
64 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
65 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
66 inline PutKeyPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
67 inline PutKeyPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
68 inline PutKeyPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
70
72
103 inline const Aws::String& GetPolicy() const{ return m_policy; }
104 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
105 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
106 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
107 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
108 inline PutKeyPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
109 inline PutKeyPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
110 inline PutKeyPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
112
114
126 inline bool GetBypassPolicyLockoutSafetyCheck() const{ return m_bypassPolicyLockoutSafetyCheck; }
127 inline bool BypassPolicyLockoutSafetyCheckHasBeenSet() const { return m_bypassPolicyLockoutSafetyCheckHasBeenSet; }
128 inline void SetBypassPolicyLockoutSafetyCheck(bool value) { m_bypassPolicyLockoutSafetyCheckHasBeenSet = true; m_bypassPolicyLockoutSafetyCheck = value; }
131 private:
132
133 Aws::String m_keyId;
134 bool m_keyIdHasBeenSet = false;
135
136 Aws::String m_policyName;
137 bool m_policyNameHasBeenSet = false;
138
139 Aws::String m_policy;
140 bool m_policyHasBeenSet = false;
141
142 bool m_bypassPolicyLockoutSafetyCheck;
143 bool m_bypassPolicyLockoutSafetyCheckHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace KMS
148} // namespace Aws
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutKeyPolicyRequest & WithKeyId(const char *value)
PutKeyPolicyRequest & WithPolicyName(Aws::String &&value)
PutKeyPolicyRequest & WithKeyId(Aws::String &&value)
PutKeyPolicyRequest & WithPolicyName(const Aws::String &value)
const Aws::String & GetPolicy() const
PutKeyPolicyRequest & WithPolicy(const char *value)
PutKeyPolicyRequest & WithPolicy(const Aws::String &value)
const Aws::String & GetKeyId() const
void SetPolicyName(Aws::String &&value)
PutKeyPolicyRequest & WithPolicy(Aws::String &&value)
const Aws::String & GetPolicyName() const
AWS_KMS_API Aws::String SerializePayload() const override
void SetPolicy(const Aws::String &value)
void SetPolicyName(const Aws::String &value)
void SetKeyId(const Aws::String &value)
PutKeyPolicyRequest & WithPolicyName(const char *value)
PutKeyPolicyRequest & WithKeyId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
PutKeyPolicyRequest & WithBypassPolicyLockoutSafetyCheck(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String