AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
PutClusterPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dsql/DSQLRequest.h>
10#include <aws/dsql/DSQL_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DSQL {
16namespace Model {
17
21 public:
22 AWS_DSQL_API PutClusterPolicyRequest() = 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 "PutClusterPolicy"; }
29
30 AWS_DSQL_API Aws::String SerializePayload() const override;
31
33
34 inline const Aws::String& GetIdentifier() const { return m_identifier; }
35 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
36 template <typename IdentifierT = Aws::String>
37 void SetIdentifier(IdentifierT&& value) {
38 m_identifierHasBeenSet = true;
39 m_identifier = std::forward<IdentifierT>(value);
40 }
41 template <typename IdentifierT = Aws::String>
43 SetIdentifier(std::forward<IdentifierT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetPolicy() const { return m_policy; }
54 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
55 template <typename PolicyT = Aws::String>
56 void SetPolicy(PolicyT&& value) {
57 m_policyHasBeenSet = true;
58 m_policy = std::forward<PolicyT>(value);
59 }
60 template <typename PolicyT = Aws::String>
62 SetPolicy(std::forward<PolicyT>(value));
63 return *this;
64 }
66
68
73 inline bool GetBypassPolicyLockoutSafetyCheck() const { return m_bypassPolicyLockoutSafetyCheck; }
74 inline bool BypassPolicyLockoutSafetyCheckHasBeenSet() const { return m_bypassPolicyLockoutSafetyCheckHasBeenSet; }
75 inline void SetBypassPolicyLockoutSafetyCheck(bool value) {
76 m_bypassPolicyLockoutSafetyCheckHasBeenSet = true;
77 m_bypassPolicyLockoutSafetyCheck = value;
78 }
84
86
91 inline const Aws::String& GetExpectedPolicyVersion() const { return m_expectedPolicyVersion; }
92 inline bool ExpectedPolicyVersionHasBeenSet() const { return m_expectedPolicyVersionHasBeenSet; }
93 template <typename ExpectedPolicyVersionT = Aws::String>
94 void SetExpectedPolicyVersion(ExpectedPolicyVersionT&& value) {
95 m_expectedPolicyVersionHasBeenSet = true;
96 m_expectedPolicyVersion = std::forward<ExpectedPolicyVersionT>(value);
97 }
98 template <typename ExpectedPolicyVersionT = Aws::String>
99 PutClusterPolicyRequest& WithExpectedPolicyVersion(ExpectedPolicyVersionT&& value) {
100 SetExpectedPolicyVersion(std::forward<ExpectedPolicyVersionT>(value));
101 return *this;
102 }
104
106
107 inline const Aws::String& GetClientToken() const { return m_clientToken; }
108 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
109 template <typename ClientTokenT = Aws::String>
110 void SetClientToken(ClientTokenT&& value) {
111 m_clientTokenHasBeenSet = true;
112 m_clientToken = std::forward<ClientTokenT>(value);
113 }
114 template <typename ClientTokenT = Aws::String>
116 SetClientToken(std::forward<ClientTokenT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_identifier;
122
123 Aws::String m_policy;
124
125 bool m_bypassPolicyLockoutSafetyCheck{false};
126
127 Aws::String m_expectedPolicyVersion;
128
130 bool m_identifierHasBeenSet = false;
131 bool m_policyHasBeenSet = false;
132 bool m_bypassPolicyLockoutSafetyCheckHasBeenSet = false;
133 bool m_expectedPolicyVersionHasBeenSet = false;
134 bool m_clientTokenHasBeenSet = true;
135};
136
137} // namespace Model
138} // namespace DSQL
139} // namespace Aws
AWS_DSQL_API Aws::String SerializePayload() const override
void SetExpectedPolicyVersion(ExpectedPolicyVersionT &&value)
virtual const char * GetServiceRequestName() const override
PutClusterPolicyRequest & WithClientToken(ClientTokenT &&value)
PutClusterPolicyRequest & WithExpectedPolicyVersion(ExpectedPolicyVersionT &&value)
PutClusterPolicyRequest & WithPolicy(PolicyT &&value)
AWS_DSQL_API PutClusterPolicyRequest()=default
PutClusterPolicyRequest & WithIdentifier(IdentifierT &&value)
PutClusterPolicyRequest & WithBypassPolicyLockoutSafetyCheck(bool value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String