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>
21namespace CloudWatchLogs {
43 template <
typename PolicyNameT = Aws::String>
45 m_policyNameHasBeenSet =
true;
46 m_policyName = std::forward<PolicyNameT>(value);
48 template <
typename PolicyNameT = Aws::String>
62 template <
typename PolicyDocumentT = Aws::String>
64 m_policyDocumentHasBeenSet =
true;
65 m_policyDocument = std::forward<PolicyDocumentT>(value);
67 template <
typename PolicyDocumentT = Aws::String>
81 m_lastUpdatedTimeHasBeenSet =
true;
82 m_lastUpdatedTime = value;
97 m_policyTypeHasBeenSet =
true;
113 m_scopeHasBeenSet =
true;
128 template <
typename SelectionCriteriaT = Aws::String>
130 m_selectionCriteriaHasBeenSet =
true;
131 m_selectionCriteria = std::forward<SelectionCriteriaT>(value);
133 template <
typename SelectionCriteriaT = Aws::String>
146 template <
typename AccountIdT = Aws::String>
148 m_accountIdHasBeenSet =
true;
149 m_accountId = std::forward<AccountIdT>(value);
151 template <
typename AccountIdT = Aws::String>
162 long long m_lastUpdatedTime{0};
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;
AccountPolicy & WithSelectionCriteria(SelectionCriteriaT &&value)
AccountPolicy & WithPolicyType(PolicyType value)
bool ScopeHasBeenSet() const
bool PolicyDocumentHasBeenSet() const
AWS_CLOUDWATCHLOGS_API AccountPolicy(Aws::Utils::Json::JsonView jsonValue)
AccountPolicy & WithPolicyDocument(PolicyDocumentT &&value)
const Aws::String & GetPolicyDocument() const
AccountPolicy & WithLastUpdatedTime(long long value)
bool LastUpdatedTimeHasBeenSet() const
bool SelectionCriteriaHasBeenSet() const
const Aws::String & GetPolicyName() const
AWS_CLOUDWATCHLOGS_API AccountPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyType(PolicyType value)
PolicyType GetPolicyType() const
AccountPolicy & WithPolicyName(PolicyNameT &&value)
const Aws::String & GetAccountId() const
AccountPolicy & WithAccountId(AccountIdT &&value)
void SetSelectionCriteria(SelectionCriteriaT &&value)
bool AccountIdHasBeenSet() const
long long GetLastUpdatedTime() const
void SetScope(Scope value)
void SetLastUpdatedTime(long long value)
void SetPolicyDocument(PolicyDocumentT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
bool PolicyTypeHasBeenSet() const
void SetAccountId(AccountIdT &&value)
AccountPolicy & WithScope(Scope value)
bool PolicyNameHasBeenSet() const
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