7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/PolicyType.h>
10#include <aws/logs/model/Scope.h>
23namespace CloudWatchLogs
51 inline void SetPolicyName(
const char* value) { m_policyNameHasBeenSet =
true; m_policyName.assign(value); }
66 inline void SetPolicyDocument(
const char* value) { m_policyDocumentHasBeenSet =
true; m_policyDocument.assign(value); }
78 inline void SetLastUpdatedTime(
long long value) { m_lastUpdatedTimeHasBeenSet =
true; m_lastUpdatedTime = value; }
100 inline void SetScope(
const Scope& value) { m_scopeHasBeenSet =
true; m_scope = value; }
101 inline void SetScope(
Scope&& value) { m_scopeHasBeenSet =
true; m_scope = std::move(value); }
114 inline void SetSelectionCriteria(
const char* value) { m_selectionCriteriaHasBeenSet =
true; m_selectionCriteria.assign(value); }
128 inline void SetAccountId(
const char* value) { m_accountIdHasBeenSet =
true; m_accountId.assign(value); }
136 bool m_policyNameHasBeenSet =
false;
139 bool m_policyDocumentHasBeenSet =
false;
141 long long m_lastUpdatedTime;
142 bool m_lastUpdatedTimeHasBeenSet =
false;
145 bool m_policyTypeHasBeenSet =
false;
148 bool m_scopeHasBeenSet =
false;
151 bool m_selectionCriteriaHasBeenSet =
false;
154 bool m_accountIdHasBeenSet =
false;
AccountPolicy & WithScope(Scope &&value)
bool ScopeHasBeenSet() const
bool PolicyDocumentHasBeenSet() const
AWS_CLOUDWATCHLOGS_API AccountPolicy(Aws::Utils::Json::JsonView jsonValue)
AccountPolicy & WithAccountId(Aws::String &&value)
void SetSelectionCriteria(Aws::String &&value)
const Aws::String & GetPolicyDocument() const
void SetAccountId(Aws::String &&value)
void SetPolicyDocument(const char *value)
AccountPolicy & WithPolicyDocument(Aws::String &&value)
AccountPolicy & WithLastUpdatedTime(long long value)
AccountPolicy & WithSelectionCriteria(Aws::String &&value)
AccountPolicy & WithPolicyType(const PolicyType &value)
void SetPolicyName(const Aws::String &value)
void SetPolicyName(Aws::String &&value)
bool LastUpdatedTimeHasBeenSet() const
bool SelectionCriteriaHasBeenSet() const
AccountPolicy & WithPolicyName(Aws::String &&value)
void SetPolicyType(PolicyType &&value)
AWS_CLOUDWATCHLOGS_API AccountPolicy()
AccountPolicy & WithPolicyDocument(const Aws::String &value)
const Aws::String & GetPolicyName() const
AWS_CLOUDWATCHLOGS_API AccountPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountPolicy & WithPolicyType(PolicyType &&value)
void SetScope(Scope &&value)
AccountPolicy & WithPolicyDocument(const char *value)
const Scope & GetScope() const
void SetSelectionCriteria(const char *value)
void SetScope(const Scope &value)
void SetPolicyDocument(Aws::String &&value)
const PolicyType & GetPolicyType() const
const Aws::String & GetAccountId() const
void SetPolicyType(const PolicyType &value)
void SetSelectionCriteria(const Aws::String &value)
bool AccountIdHasBeenSet() const
void SetPolicyName(const char *value)
AccountPolicy & WithPolicyName(const Aws::String &value)
long long GetLastUpdatedTime() const
AccountPolicy & WithAccountId(const Aws::String &value)
void SetAccountId(const char *value)
void SetLastUpdatedTime(long long value)
void SetAccountId(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
bool PolicyTypeHasBeenSet() const
AccountPolicy & WithScope(const Scope &value)
void SetPolicyDocument(const Aws::String &value)
AccountPolicy & WithSelectionCriteria(const Aws::String &value)
AccountPolicy & WithAccountId(const char *value)
AccountPolicy & WithSelectionCriteria(const char *value)
bool PolicyNameHasBeenSet() const
const Aws::String & GetSelectionCriteria() const
AccountPolicy & WithPolicyName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue