AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutAccountPolicyRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/logs/model/PolicyType.h>
11#include <aws/logs/model/Scope.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API PutAccountPolicyRequest() = 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 "PutAccountPolicy"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetPolicyName() const { return m_policyName; }
44 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
45 template<typename PolicyNameT = Aws::String>
46 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
47 template<typename PolicyNameT = Aws::String>
48 PutAccountPolicyRequest& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
50
52
117 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
118 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
119 template<typename PolicyDocumentT = Aws::String>
120 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
121 template<typename PolicyDocumentT = Aws::String>
122 PutAccountPolicyRequest& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
124
126
129 inline PolicyType GetPolicyType() const { return m_policyType; }
130 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
131 inline void SetPolicyType(PolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
132 inline PutAccountPolicyRequest& WithPolicyType(PolicyType value) { SetPolicyType(value); return *this;}
134
136
142 inline Scope GetScope() const { return m_scope; }
143 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
144 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
145 inline PutAccountPolicyRequest& WithScope(Scope value) { SetScope(value); return *this;}
147
149
167 inline const Aws::String& GetSelectionCriteria() const { return m_selectionCriteria; }
168 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
169 template<typename SelectionCriteriaT = Aws::String>
170 void SetSelectionCriteria(SelectionCriteriaT&& value) { m_selectionCriteriaHasBeenSet = true; m_selectionCriteria = std::forward<SelectionCriteriaT>(value); }
171 template<typename SelectionCriteriaT = Aws::String>
172 PutAccountPolicyRequest& WithSelectionCriteria(SelectionCriteriaT&& value) { SetSelectionCriteria(std::forward<SelectionCriteriaT>(value)); return *this;}
174 private:
175
176 Aws::String m_policyName;
177 bool m_policyNameHasBeenSet = false;
178
179 Aws::String m_policyDocument;
180 bool m_policyDocumentHasBeenSet = false;
181
182 PolicyType m_policyType{PolicyType::NOT_SET};
183 bool m_policyTypeHasBeenSet = false;
184
185 Scope m_scope{Scope::NOT_SET};
186 bool m_scopeHasBeenSet = false;
187
188 Aws::String m_selectionCriteria;
189 bool m_selectionCriteriaHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace CloudWatchLogs
194} // 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