AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/ExistCondition.h>
11#include <aws/glue/model/EnableHybridValues.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUE_API PutResourcePolicyRequest() = default;
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 "PutResourcePolicy"; }
33
34 AWS_GLUE_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetPolicyInJson() const { return m_policyInJson; }
44 inline bool PolicyInJsonHasBeenSet() const { return m_policyInJsonHasBeenSet; }
45 template<typename PolicyInJsonT = Aws::String>
46 void SetPolicyInJson(PolicyInJsonT&& value) { m_policyInJsonHasBeenSet = true; m_policyInJson = std::forward<PolicyInJsonT>(value); }
47 template<typename PolicyInJsonT = Aws::String>
48 PutResourcePolicyRequest& WithPolicyInJson(PolicyInJsonT&& value) { SetPolicyInJson(std::forward<PolicyInJsonT>(value)); return *this;}
50
52
55 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
56 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
57 template<typename ResourceArnT = Aws::String>
58 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
59 template<typename ResourceArnT = Aws::String>
60 PutResourcePolicyRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
62
64
70 inline const Aws::String& GetPolicyHashCondition() const { return m_policyHashCondition; }
71 inline bool PolicyHashConditionHasBeenSet() const { return m_policyHashConditionHasBeenSet; }
72 template<typename PolicyHashConditionT = Aws::String>
73 void SetPolicyHashCondition(PolicyHashConditionT&& value) { m_policyHashConditionHasBeenSet = true; m_policyHashCondition = std::forward<PolicyHashConditionT>(value); }
74 template<typename PolicyHashConditionT = Aws::String>
75 PutResourcePolicyRequest& WithPolicyHashCondition(PolicyHashConditionT&& value) { SetPolicyHashCondition(std::forward<PolicyHashConditionT>(value)); return *this;}
77
79
85 inline ExistCondition GetPolicyExistsCondition() const { return m_policyExistsCondition; }
86 inline bool PolicyExistsConditionHasBeenSet() const { return m_policyExistsConditionHasBeenSet; }
87 inline void SetPolicyExistsCondition(ExistCondition value) { m_policyExistsConditionHasBeenSet = true; m_policyExistsCondition = value; }
90
92
101 inline EnableHybridValues GetEnableHybrid() const { return m_enableHybrid; }
102 inline bool EnableHybridHasBeenSet() const { return m_enableHybridHasBeenSet; }
103 inline void SetEnableHybrid(EnableHybridValues value) { m_enableHybridHasBeenSet = true; m_enableHybrid = value; }
106 private:
107
108 Aws::String m_policyInJson;
109 bool m_policyInJsonHasBeenSet = false;
110
111 Aws::String m_resourceArn;
112 bool m_resourceArnHasBeenSet = false;
113
114 Aws::String m_policyHashCondition;
115 bool m_policyHashConditionHasBeenSet = false;
116
117 ExistCondition m_policyExistsCondition{ExistCondition::NOT_SET};
118 bool m_policyExistsConditionHasBeenSet = false;
119
121 bool m_enableHybridHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Glue
126} // 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