AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/EnableHybridValues.h>
11#include <aws/glue/model/ExistCondition.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API PutResourcePolicyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutResourcePolicy"; }
30
31 AWS_GLUE_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetPolicyInJson() const { return m_policyInJson; }
40 inline bool PolicyInJsonHasBeenSet() const { return m_policyInJsonHasBeenSet; }
41 template <typename PolicyInJsonT = Aws::String>
42 void SetPolicyInJson(PolicyInJsonT&& value) {
43 m_policyInJsonHasBeenSet = true;
44 m_policyInJson = std::forward<PolicyInJsonT>(value);
45 }
46 template <typename PolicyInJsonT = Aws::String>
48 SetPolicyInJson(std::forward<PolicyInJsonT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
58 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
59 template <typename ResourceArnT = Aws::String>
60 void SetResourceArn(ResourceArnT&& value) {
61 m_resourceArnHasBeenSet = true;
62 m_resourceArn = std::forward<ResourceArnT>(value);
63 }
64 template <typename ResourceArnT = Aws::String>
66 SetResourceArn(std::forward<ResourceArnT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetPolicyHashCondition() const { return m_policyHashCondition; }
79 inline bool PolicyHashConditionHasBeenSet() const { return m_policyHashConditionHasBeenSet; }
80 template <typename PolicyHashConditionT = Aws::String>
81 void SetPolicyHashCondition(PolicyHashConditionT&& value) {
82 m_policyHashConditionHasBeenSet = true;
83 m_policyHashCondition = std::forward<PolicyHashConditionT>(value);
84 }
85 template <typename PolicyHashConditionT = Aws::String>
86 PutResourcePolicyRequest& WithPolicyHashCondition(PolicyHashConditionT&& value) {
87 SetPolicyHashCondition(std::forward<PolicyHashConditionT>(value));
88 return *this;
89 }
91
93
99 inline ExistCondition GetPolicyExistsCondition() const { return m_policyExistsCondition; }
100 inline bool PolicyExistsConditionHasBeenSet() const { return m_policyExistsConditionHasBeenSet; }
102 m_policyExistsConditionHasBeenSet = true;
103 m_policyExistsCondition = value;
104 }
107 return *this;
108 }
110
112
121 inline EnableHybridValues GetEnableHybrid() const { return m_enableHybrid; }
122 inline bool EnableHybridHasBeenSet() const { return m_enableHybridHasBeenSet; }
124 m_enableHybridHasBeenSet = true;
125 m_enableHybrid = value;
126 }
128 SetEnableHybrid(value);
129 return *this;
130 }
132 private:
133 Aws::String m_policyInJson;
134 bool m_policyInJsonHasBeenSet = false;
135
136 Aws::String m_resourceArn;
137 bool m_resourceArnHasBeenSet = false;
138
139 Aws::String m_policyHashCondition;
140 bool m_policyHashConditionHasBeenSet = false;
141
142 ExistCondition m_policyExistsCondition{ExistCondition::NOT_SET};
143 bool m_policyExistsConditionHasBeenSet = false;
144
146 bool m_enableHybridHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace Glue
151} // namespace Aws
void SetPolicyHashCondition(PolicyHashConditionT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutResourcePolicyRequest & WithPolicyHashCondition(PolicyHashConditionT &&value)
PutResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
AWS_GLUE_API PutResourcePolicyRequest()=default
PutResourcePolicyRequest & WithPolicyInJson(PolicyInJsonT &&value)
PutResourcePolicyRequest & WithPolicyExistsCondition(ExistCondition value)
PutResourcePolicyRequest & WithEnableHybrid(EnableHybridValues value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String