7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/IndexSource.h>
22namespace CloudWatchLogs
48 template<
typename LogGroupIdentifierT = Aws::String>
49 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) { m_logGroupIdentifierHasBeenSet =
true; m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value); }
50 template<
typename LogGroupIdentifierT = Aws::String>
60 inline void SetLastUpdateTime(
long long value) { m_lastUpdateTimeHasBeenSet =
true; m_lastUpdateTime = value; }
70 template<
typename PolicyDocumentT = Aws::String>
71 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet =
true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
72 template<
typename PolicyDocumentT = Aws::String>
83 template<
typename PolicyNameT = Aws::String>
84 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet =
true; m_policyName = std::forward<PolicyNameT>(value); }
85 template<
typename PolicyNameT = Aws::String>
102 bool m_logGroupIdentifierHasBeenSet =
false;
104 long long m_lastUpdateTime{0};
105 bool m_lastUpdateTimeHasBeenSet =
false;
108 bool m_policyDocumentHasBeenSet =
false;
111 bool m_policyNameHasBeenSet =
false;
114 bool m_sourceHasBeenSet =
false;
bool PolicyDocumentHasBeenSet() const
void SetLogGroupIdentifier(LogGroupIdentifierT &&value)
bool LogGroupIdentifierHasBeenSet() const
void SetPolicyDocument(PolicyDocumentT &&value)
AWS_CLOUDWATCHLOGS_API IndexPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdateTime(long long value)
IndexPolicy & WithLastUpdateTime(long long value)
IndexPolicy & WithSource(IndexSource value)
void SetPolicyName(PolicyNameT &&value)
const Aws::String & GetLogGroupIdentifier() const
AWS_CLOUDWATCHLOGS_API IndexPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
IndexSource GetSource() const
bool PolicyNameHasBeenSet() const
const Aws::String & GetPolicyDocument() const
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
IndexPolicy & WithPolicyName(PolicyNameT &&value)
const Aws::String & GetPolicyName() const
bool LastUpdateTimeHasBeenSet() const
bool SourceHasBeenSet() const
long long GetLastUpdateTime() const
IndexPolicy & WithPolicyDocument(PolicyDocumentT &&value)
void SetSource(IndexSource value)
IndexPolicy & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
AWS_CLOUDWATCHLOGS_API IndexPolicy()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue