AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutAccountPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/PolicyType.h>
11#include <aws/logs/model/Scope.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchLogs {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCHLOGS_API PutAccountPolicyRequest() = 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 "PutAccountPolicy"; }
30
31 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetPolicyName() const { return m_policyName; }
41 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
42 template <typename PolicyNameT = Aws::String>
43 void SetPolicyName(PolicyNameT&& value) {
44 m_policyNameHasBeenSet = true;
45 m_policyName = std::forward<PolicyNameT>(value);
46 }
47 template <typename PolicyNameT = Aws::String>
49 SetPolicyName(std::forward<PolicyNameT>(value));
50 return *this;
51 }
53
55
125 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
126 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
127 template <typename PolicyDocumentT = Aws::String>
128 void SetPolicyDocument(PolicyDocumentT&& value) {
129 m_policyDocumentHasBeenSet = true;
130 m_policyDocument = std::forward<PolicyDocumentT>(value);
131 }
132 template <typename PolicyDocumentT = Aws::String>
133 PutAccountPolicyRequest& WithPolicyDocument(PolicyDocumentT&& value) {
134 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
135 return *this;
136 }
138
140
143 inline PolicyType GetPolicyType() const { return m_policyType; }
144 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
145 inline void SetPolicyType(PolicyType value) {
146 m_policyTypeHasBeenSet = true;
147 m_policyType = value;
148 }
150 SetPolicyType(value);
151 return *this;
152 }
154
156
162 inline Scope GetScope() const { return m_scope; }
163 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
164 inline void SetScope(Scope value) {
165 m_scopeHasBeenSet = true;
166 m_scope = value;
167 }
169 SetScope(value);
170 return *this;
171 }
173
175
201 inline const Aws::String& GetSelectionCriteria() const { return m_selectionCriteria; }
202 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
203 template <typename SelectionCriteriaT = Aws::String>
204 void SetSelectionCriteria(SelectionCriteriaT&& value) {
205 m_selectionCriteriaHasBeenSet = true;
206 m_selectionCriteria = std::forward<SelectionCriteriaT>(value);
207 }
208 template <typename SelectionCriteriaT = Aws::String>
209 PutAccountPolicyRequest& WithSelectionCriteria(SelectionCriteriaT&& value) {
210 SetSelectionCriteria(std::forward<SelectionCriteriaT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_policyName;
216
217 Aws::String m_policyDocument;
218
219 PolicyType m_policyType{PolicyType::NOT_SET};
220
221 Scope m_scope{Scope::NOT_SET};
222
223 Aws::String m_selectionCriteria;
224 bool m_policyNameHasBeenSet = false;
225 bool m_policyDocumentHasBeenSet = false;
226 bool m_policyTypeHasBeenSet = false;
227 bool m_scopeHasBeenSet = false;
228 bool m_selectionCriteriaHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace CloudWatchLogs
233} // namespace Aws
PutAccountPolicyRequest & WithPolicyDocument(PolicyDocumentT &&value)
PutAccountPolicyRequest & WithPolicyType(PolicyType value)
PutAccountPolicyRequest & WithPolicyName(PolicyNameT &&value)
AWS_CLOUDWATCHLOGS_API PutAccountPolicyRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutAccountPolicyRequest & WithSelectionCriteria(SelectionCriteriaT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String