AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPolicyInJson(const Aws::String& value) { m_policyInJsonHasBeenSet = true; m_policyInJson = value; }
46 inline void SetPolicyInJson(Aws::String&& value) { m_policyInJsonHasBeenSet = true; m_policyInJson = std::move(value); }
47 inline void SetPolicyInJson(const char* value) { m_policyInJsonHasBeenSet = true; m_policyInJson.assign(value); }
48 inline PutResourcePolicyRequest& WithPolicyInJson(const Aws::String& value) { SetPolicyInJson(value); return *this;}
49 inline PutResourcePolicyRequest& WithPolicyInJson(Aws::String&& value) { SetPolicyInJson(std::move(value)); return *this;}
50 inline PutResourcePolicyRequest& WithPolicyInJson(const char* value) { SetPolicyInJson(value); return *this;}
52
54
57 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
58 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
59 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
60 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
61 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
62 inline PutResourcePolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
63 inline PutResourcePolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
64 inline PutResourcePolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
66
68
74 inline const Aws::String& GetPolicyHashCondition() const{ return m_policyHashCondition; }
75 inline bool PolicyHashConditionHasBeenSet() const { return m_policyHashConditionHasBeenSet; }
76 inline void SetPolicyHashCondition(const Aws::String& value) { m_policyHashConditionHasBeenSet = true; m_policyHashCondition = value; }
77 inline void SetPolicyHashCondition(Aws::String&& value) { m_policyHashConditionHasBeenSet = true; m_policyHashCondition = std::move(value); }
78 inline void SetPolicyHashCondition(const char* value) { m_policyHashConditionHasBeenSet = true; m_policyHashCondition.assign(value); }
80 inline PutResourcePolicyRequest& WithPolicyHashCondition(Aws::String&& value) { SetPolicyHashCondition(std::move(value)); return *this;}
81 inline PutResourcePolicyRequest& WithPolicyHashCondition(const char* value) { SetPolicyHashCondition(value); return *this;}
83
85
91 inline const ExistCondition& GetPolicyExistsCondition() const{ return m_policyExistsCondition; }
92 inline bool PolicyExistsConditionHasBeenSet() const { return m_policyExistsConditionHasBeenSet; }
93 inline void SetPolicyExistsCondition(const ExistCondition& value) { m_policyExistsConditionHasBeenSet = true; m_policyExistsCondition = value; }
94 inline void SetPolicyExistsCondition(ExistCondition&& value) { m_policyExistsConditionHasBeenSet = true; m_policyExistsCondition = std::move(value); }
98
100
109 inline const EnableHybridValues& GetEnableHybrid() const{ return m_enableHybrid; }
110 inline bool EnableHybridHasBeenSet() const { return m_enableHybridHasBeenSet; }
111 inline void SetEnableHybrid(const EnableHybridValues& value) { m_enableHybridHasBeenSet = true; m_enableHybrid = value; }
112 inline void SetEnableHybrid(EnableHybridValues&& value) { m_enableHybridHasBeenSet = true; m_enableHybrid = std::move(value); }
114 inline PutResourcePolicyRequest& WithEnableHybrid(EnableHybridValues&& value) { SetEnableHybrid(std::move(value)); return *this;}
116 private:
117
118 Aws::String m_policyInJson;
119 bool m_policyInJsonHasBeenSet = false;
120
121 Aws::String m_resourceArn;
122 bool m_resourceArnHasBeenSet = false;
123
124 Aws::String m_policyHashCondition;
125 bool m_policyHashConditionHasBeenSet = false;
126
127 ExistCondition m_policyExistsCondition;
128 bool m_policyExistsConditionHasBeenSet = false;
129
130 EnableHybridValues m_enableHybrid;
131 bool m_enableHybridHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Glue
136} // namespace Aws
PutResourcePolicyRequest & WithResourceArn(Aws::String &&value)
PutResourcePolicyRequest & WithPolicyInJson(const char *value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutResourcePolicyRequest & WithResourceArn(const Aws::String &value)
PutResourcePolicyRequest & WithPolicyHashCondition(const char *value)
void SetPolicyHashCondition(const Aws::String &value)
PutResourcePolicyRequest & WithPolicyHashCondition(const Aws::String &value)
PutResourcePolicyRequest & WithPolicyInJson(const Aws::String &value)
PutResourcePolicyRequest & WithPolicyInJson(Aws::String &&value)
PutResourcePolicyRequest & WithPolicyExistsCondition(ExistCondition &&value)
const EnableHybridValues & GetEnableHybrid() const
void SetPolicyExistsCondition(const ExistCondition &value)
const ExistCondition & GetPolicyExistsCondition() const
PutResourcePolicyRequest & WithResourceArn(const char *value)
void SetEnableHybrid(const EnableHybridValues &value)
AWS_GLUE_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithPolicyHashCondition(Aws::String &&value)
PutResourcePolicyRequest & WithEnableHybrid(EnableHybridValues &&value)
PutResourcePolicyRequest & WithEnableHybrid(const EnableHybridValues &value)
PutResourcePolicyRequest & WithPolicyExistsCondition(const ExistCondition &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