AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AccountPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/PolicyType.h>
10#include <aws/logs/model/Scope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs {
22namespace Model {
23
31 public:
32 AWS_CLOUDWATCHLOGS_API AccountPolicy() = default;
33 AWS_CLOUDWATCHLOGS_API AccountPolicy(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API AccountPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetPolicyName() const { return m_policyName; }
42 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
43 template <typename PolicyNameT = Aws::String>
44 void SetPolicyName(PolicyNameT&& value) {
45 m_policyNameHasBeenSet = true;
46 m_policyName = std::forward<PolicyNameT>(value);
47 }
48 template <typename PolicyNameT = Aws::String>
49 AccountPolicy& WithPolicyName(PolicyNameT&& value) {
50 SetPolicyName(std::forward<PolicyNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
61 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
62 template <typename PolicyDocumentT = Aws::String>
63 void SetPolicyDocument(PolicyDocumentT&& value) {
64 m_policyDocumentHasBeenSet = true;
65 m_policyDocument = std::forward<PolicyDocumentT>(value);
66 }
67 template <typename PolicyDocumentT = Aws::String>
68 AccountPolicy& WithPolicyDocument(PolicyDocumentT&& value) {
69 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
70 return *this;
71 }
73
75
78 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
79 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
80 inline void SetLastUpdatedTime(long long value) {
81 m_lastUpdatedTimeHasBeenSet = true;
82 m_lastUpdatedTime = value;
83 }
84 inline AccountPolicy& WithLastUpdatedTime(long long value) {
85 SetLastUpdatedTime(value);
86 return *this;
87 }
89
91
94 inline PolicyType GetPolicyType() const { return m_policyType; }
95 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
96 inline void SetPolicyType(PolicyType value) {
97 m_policyTypeHasBeenSet = true;
98 m_policyType = value;
99 }
101 SetPolicyType(value);
102 return *this;
103 }
105
107
110 inline Scope GetScope() const { return m_scope; }
111 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
112 inline void SetScope(Scope value) {
113 m_scopeHasBeenSet = true;
114 m_scope = value;
115 }
117 SetScope(value);
118 return *this;
119 }
121
123
126 inline const Aws::String& GetSelectionCriteria() const { return m_selectionCriteria; }
127 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
128 template <typename SelectionCriteriaT = Aws::String>
129 void SetSelectionCriteria(SelectionCriteriaT&& value) {
130 m_selectionCriteriaHasBeenSet = true;
131 m_selectionCriteria = std::forward<SelectionCriteriaT>(value);
132 }
133 template <typename SelectionCriteriaT = Aws::String>
134 AccountPolicy& WithSelectionCriteria(SelectionCriteriaT&& value) {
135 SetSelectionCriteria(std::forward<SelectionCriteriaT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetAccountId() const { return m_accountId; }
145 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
146 template <typename AccountIdT = Aws::String>
147 void SetAccountId(AccountIdT&& value) {
148 m_accountIdHasBeenSet = true;
149 m_accountId = std::forward<AccountIdT>(value);
150 }
151 template <typename AccountIdT = Aws::String>
152 AccountPolicy& WithAccountId(AccountIdT&& value) {
153 SetAccountId(std::forward<AccountIdT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_policyName;
159
160 Aws::String m_policyDocument;
161
162 long long m_lastUpdatedTime{0};
163
164 PolicyType m_policyType{PolicyType::NOT_SET};
165
166 Scope m_scope{Scope::NOT_SET};
167
168 Aws::String m_selectionCriteria;
169
170 Aws::String m_accountId;
171 bool m_policyNameHasBeenSet = false;
172 bool m_policyDocumentHasBeenSet = false;
173 bool m_lastUpdatedTimeHasBeenSet = false;
174 bool m_policyTypeHasBeenSet = false;
175 bool m_scopeHasBeenSet = false;
176 bool m_selectionCriteriaHasBeenSet = false;
177 bool m_accountIdHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace CloudWatchLogs
182} // namespace Aws
AccountPolicy & WithSelectionCriteria(SelectionCriteriaT &&value)
AccountPolicy & WithPolicyType(PolicyType value)
AWS_CLOUDWATCHLOGS_API AccountPolicy(Aws::Utils::Json::JsonView jsonValue)
AccountPolicy & WithPolicyDocument(PolicyDocumentT &&value)
const Aws::String & GetPolicyDocument() const
AccountPolicy & WithLastUpdatedTime(long long value)
const Aws::String & GetPolicyName() const
AWS_CLOUDWATCHLOGS_API AccountPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountPolicy & WithPolicyName(PolicyNameT &&value)
const Aws::String & GetAccountId() const
AccountPolicy & WithAccountId(AccountIdT &&value)
void SetSelectionCriteria(SelectionCriteriaT &&value)
void SetPolicyDocument(PolicyDocumentT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AccountPolicy & WithScope(Scope value)
void SetPolicyName(PolicyNameT &&value)
AWS_CLOUDWATCHLOGS_API AccountPolicy()=default
const Aws::String & GetSelectionCriteria() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue