AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
46 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
47 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
48 inline PutAccountPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
49 inline PutAccountPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
50 inline PutAccountPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
52
54
107 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
108 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
109 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
110 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
111 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
112 inline PutAccountPolicyRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
113 inline PutAccountPolicyRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
114 inline PutAccountPolicyRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
116
118
121 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
122 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
123 inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
124 inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
125 inline PutAccountPolicyRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
126 inline PutAccountPolicyRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
128
130
136 inline const Scope& GetScope() const{ return m_scope; }
137 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
138 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
139 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
140 inline PutAccountPolicyRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
141 inline PutAccountPolicyRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
143
145
157 inline const Aws::String& GetSelectionCriteria() const{ return m_selectionCriteria; }
158 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
159 inline void SetSelectionCriteria(const Aws::String& value) { m_selectionCriteriaHasBeenSet = true; m_selectionCriteria = value; }
160 inline void SetSelectionCriteria(Aws::String&& value) { m_selectionCriteriaHasBeenSet = true; m_selectionCriteria = std::move(value); }
161 inline void SetSelectionCriteria(const char* value) { m_selectionCriteriaHasBeenSet = true; m_selectionCriteria.assign(value); }
163 inline PutAccountPolicyRequest& WithSelectionCriteria(Aws::String&& value) { SetSelectionCriteria(std::move(value)); return *this;}
164 inline PutAccountPolicyRequest& WithSelectionCriteria(const char* value) { SetSelectionCriteria(value); return *this;}
166 private:
167
168 Aws::String m_policyName;
169 bool m_policyNameHasBeenSet = false;
170
171 Aws::String m_policyDocument;
172 bool m_policyDocumentHasBeenSet = false;
173
174 PolicyType m_policyType;
175 bool m_policyTypeHasBeenSet = false;
176
177 Scope m_scope;
178 bool m_scopeHasBeenSet = false;
179
180 Aws::String m_selectionCriteria;
181 bool m_selectionCriteriaHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace CloudWatchLogs
186} // namespace Aws
PutAccountPolicyRequest & WithPolicyDocument(const Aws::String &value)
PutAccountPolicyRequest & WithSelectionCriteria(Aws::String &&value)
PutAccountPolicyRequest & WithPolicyName(Aws::String &&value)
PutAccountPolicyRequest & WithScope(const Scope &value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAccountPolicyRequest & WithPolicyType(PolicyType &&value)
PutAccountPolicyRequest & WithPolicyName(const char *value)
PutAccountPolicyRequest & WithPolicyName(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutAccountPolicyRequest & WithPolicyType(const PolicyType &value)
PutAccountPolicyRequest & WithPolicyDocument(Aws::String &&value)
PutAccountPolicyRequest & WithSelectionCriteria(const Aws::String &value)
PutAccountPolicyRequest & WithScope(Scope &&value)
PutAccountPolicyRequest & WithSelectionCriteria(const char *value)
PutAccountPolicyRequest & WithPolicyDocument(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String