AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DynamoDB {
15namespace Model {
16
20 public:
21 AWS_DYNAMODB_API PutResourcePolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "PutResourcePolicy"; }
28
29 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
30
32
36 AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override;
37
39
49 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
50 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
51 template <typename ResourceArnT = Aws::String>
52 void SetResourceArn(ResourceArnT&& value) {
53 m_resourceArnHasBeenSet = true;
54 m_resourceArn = std::forward<ResourceArnT>(value);
55 }
56 template <typename ResourceArnT = Aws::String>
58 SetResourceArn(std::forward<ResourceArnT>(value));
59 return *this;
60 }
62
64
76 inline const Aws::String& GetPolicy() const { return m_policy; }
77 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
78 template <typename PolicyT = Aws::String>
79 void SetPolicy(PolicyT&& value) {
80 m_policyHasBeenSet = true;
81 m_policy = std::forward<PolicyT>(value);
82 }
83 template <typename PolicyT = Aws::String>
85 SetPolicy(std::forward<PolicyT>(value));
86 return *this;
87 }
89
91
101 inline const Aws::String& GetExpectedRevisionId() const { return m_expectedRevisionId; }
102 inline bool ExpectedRevisionIdHasBeenSet() const { return m_expectedRevisionIdHasBeenSet; }
103 template <typename ExpectedRevisionIdT = Aws::String>
104 void SetExpectedRevisionId(ExpectedRevisionIdT&& value) {
105 m_expectedRevisionIdHasBeenSet = true;
106 m_expectedRevisionId = std::forward<ExpectedRevisionIdT>(value);
107 }
108 template <typename ExpectedRevisionIdT = Aws::String>
109 PutResourcePolicyRequest& WithExpectedRevisionId(ExpectedRevisionIdT&& value) {
110 SetExpectedRevisionId(std::forward<ExpectedRevisionIdT>(value));
111 return *this;
112 }
114
116
120 inline bool GetConfirmRemoveSelfResourceAccess() const { return m_confirmRemoveSelfResourceAccess; }
121 inline bool ConfirmRemoveSelfResourceAccessHasBeenSet() const { return m_confirmRemoveSelfResourceAccessHasBeenSet; }
122 inline void SetConfirmRemoveSelfResourceAccess(bool value) {
123 m_confirmRemoveSelfResourceAccessHasBeenSet = true;
124 m_confirmRemoveSelfResourceAccess = value;
125 }
128 return *this;
129 }
131 private:
132 Aws::String m_resourceArn;
133
134 Aws::String m_policy;
135
136 Aws::String m_expectedRevisionId;
137
138 bool m_confirmRemoveSelfResourceAccess{false};
139 bool m_resourceArnHasBeenSet = false;
140 bool m_policyHasBeenSet = false;
141 bool m_expectedRevisionIdHasBeenSet = false;
142 bool m_confirmRemoveSelfResourceAccessHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace DynamoDB
147} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
AWS_DYNAMODB_API PutResourcePolicyRequest()=default
PutResourcePolicyRequest & WithExpectedRevisionId(ExpectedRevisionIdT &&value)
virtual const char * GetServiceRequestName() const override
void SetExpectedRevisionId(ExpectedRevisionIdT &&value)
PutResourcePolicyRequest & WithConfirmRemoveSelfResourceAccess(bool value)
PutResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
PutResourcePolicyRequest & WithPolicy(PolicyT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String