7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
22namespace CloudWatchLogs
53 inline void SetDynamicTokenPosition(
int value) { m_dynamicTokenPositionHasBeenSet =
true; m_dynamicTokenPosition = value; }
63 inline void SetIsDynamic(
bool value) { m_isDynamicHasBeenSet =
true; m_isDynamic = value; }
76 inline void SetTokenString(
const char* value) { m_tokenStringHasBeenSet =
true; m_tokenString.assign(value); }
95 inline PatternToken&
AddEnumerations(
const char* key,
long long value) { m_enumerationsHasBeenSet =
true; m_enumerations.emplace(key, value);
return *
this; }
114 inline void SetInferredTokenName(
const char* value) { m_inferredTokenNameHasBeenSet =
true; m_inferredTokenName.assign(value); }
121 int m_dynamicTokenPosition;
122 bool m_dynamicTokenPositionHasBeenSet =
false;
125 bool m_isDynamicHasBeenSet =
false;
128 bool m_tokenStringHasBeenSet =
false;
131 bool m_enumerationsHasBeenSet =
false;
134 bool m_inferredTokenNameHasBeenSet =
false;
AWS_CLOUDWATCHLOGS_API PatternToken(Aws::Utils::Json::JsonView jsonValue)
PatternToken & WithDynamicTokenPosition(int value)
void SetEnumerations(Aws::Map< Aws::String, long long > &&value)
const Aws::String & GetInferredTokenName() const
bool InferredTokenNameHasBeenSet() const
PatternToken & WithEnumerations(Aws::Map< Aws::String, long long > &&value)
PatternToken & WithInferredTokenName(Aws::String &&value)
bool TokenStringHasBeenSet() const
bool GetIsDynamic() const
void SetDynamicTokenPosition(int value)
bool EnumerationsHasBeenSet() const
PatternToken & WithInferredTokenName(const char *value)
const Aws::String & GetTokenString() const
PatternToken & WithTokenString(Aws::String &&value)
bool DynamicTokenPositionHasBeenSet() const
PatternToken & WithTokenString(const char *value)
void SetEnumerations(const Aws::Map< Aws::String, long long > &value)
PatternToken & AddEnumerations(const Aws::String &key, long long value)
void SetInferredTokenName(const char *value)
void SetTokenString(const Aws::String &value)
const Aws::Map< Aws::String, long long > & GetEnumerations() const
AWS_CLOUDWATCHLOGS_API PatternToken & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API PatternToken()
PatternToken & AddEnumerations(const char *key, long long value)
PatternToken & WithInferredTokenName(const Aws::String &value)
PatternToken & AddEnumerations(Aws::String &&key, long long value)
PatternToken & WithEnumerations(const Aws::Map< Aws::String, long long > &value)
PatternToken & WithIsDynamic(bool value)
bool IsDynamicHasBeenSet() const
int GetDynamicTokenPosition() const
void SetIsDynamic(bool value)
void SetTokenString(Aws::String &&value)
PatternToken & WithTokenString(const Aws::String &value)
void SetInferredTokenName(Aws::String &&value)
void SetTokenString(const char *value)
void SetInferredTokenName(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue