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
49 template<
typename PolicyNameT = Aws::String>
50 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet =
true; m_policyName = std::forward<PolicyNameT>(value); }
51 template<
typename PolicyNameT = Aws::String>
62 template<
typename PolicyDocumentT = Aws::String>
63 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet =
true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
64 template<
typename PolicyDocumentT = Aws::String>
74 inline void SetLastUpdatedTime(
long long value) { m_lastUpdatedTimeHasBeenSet =
true; m_lastUpdatedTime = value; }
94 inline void SetScope(
Scope value) { m_scopeHasBeenSet =
true; m_scope = value; }
104 template<
typename SelectionCriteriaT = Aws::String>
105 void SetSelectionCriteria(SelectionCriteriaT&& value) { m_selectionCriteriaHasBeenSet =
true; m_selectionCriteria = std::forward<SelectionCriteriaT>(value); }
106 template<
typename SelectionCriteriaT = Aws::String>
116 template<
typename AccountIdT = Aws::String>
117 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet =
true; m_accountId = std::forward<AccountIdT>(value); }
118 template<
typename AccountIdT = Aws::String>
124 bool m_policyNameHasBeenSet =
false;
127 bool m_policyDocumentHasBeenSet =
false;
129 long long m_lastUpdatedTime{0};
130 bool m_lastUpdatedTimeHasBeenSet =
false;
133 bool m_policyTypeHasBeenSet =
false;
136 bool m_scopeHasBeenSet =
false;
139 bool m_selectionCriteriaHasBeenSet =
false;
142 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