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>
16namespace CloudWatchLogs
47 inline void SetPolicyName(
const char* value) { m_policyNameHasBeenSet =
true; m_policyName.assign(value); }
111 inline void SetPolicyDocument(
const char* value) { m_policyDocumentHasBeenSet =
true; m_policyDocument.assign(value); }
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); }
161 inline void SetSelectionCriteria(
const char* value) { m_selectionCriteriaHasBeenSet =
true; m_selectionCriteria.assign(value); }
169 bool m_policyNameHasBeenSet =
false;
172 bool m_policyDocumentHasBeenSet =
false;
175 bool m_policyTypeHasBeenSet =
false;
178 bool m_scopeHasBeenSet =
false;
181 bool m_selectionCriteriaHasBeenSet =
false;
PutAccountPolicyRequest & WithPolicyDocument(const Aws::String &value)
const Aws::String & GetPolicyName() const
PutAccountPolicyRequest & WithSelectionCriteria(Aws::String &&value)
void SetPolicyName(const Aws::String &value)
const Aws::String & GetPolicyDocument() const
void SetScope(Scope &&value)
bool PolicyDocumentHasBeenSet() const
bool ScopeHasBeenSet() const
void SetPolicyName(Aws::String &&value)
PutAccountPolicyRequest & WithPolicyName(Aws::String &&value)
const Aws::String & GetSelectionCriteria() const
PutAccountPolicyRequest & WithScope(const Scope &value)
virtual const char * GetServiceRequestName() const override
void SetSelectionCriteria(Aws::String &&value)
void SetPolicyType(const PolicyType &value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API PutAccountPolicyRequest()
void SetSelectionCriteria(const char *value)
void SetPolicyDocument(const char *value)
PutAccountPolicyRequest & WithPolicyType(PolicyType &&value)
bool SelectionCriteriaHasBeenSet() const
bool PolicyNameHasBeenSet() const
PutAccountPolicyRequest & WithPolicyName(const char *value)
PutAccountPolicyRequest & WithPolicyName(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutAccountPolicyRequest & WithPolicyType(const PolicyType &value)
void SetPolicyType(PolicyType &&value)
void SetPolicyDocument(Aws::String &&value)
PutAccountPolicyRequest & WithPolicyDocument(Aws::String &&value)
void SetScope(const Scope &value)
bool PolicyTypeHasBeenSet() const
PutAccountPolicyRequest & WithSelectionCriteria(const Aws::String &value)
PutAccountPolicyRequest & WithScope(Scope &&value)
void SetPolicyName(const char *value)
const Scope & GetScope() const
PutAccountPolicyRequest & WithSelectionCriteria(const char *value)
PutAccountPolicyRequest & WithPolicyDocument(const char *value)
const PolicyType & GetPolicyType() const
void SetSelectionCriteria(const Aws::String &value)
void SetPolicyDocument(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String