AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PatternToken.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CLOUDWATCHLOGS_API PatternToken();
39 AWS_CLOUDWATCHLOGS_API PatternToken(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API PatternToken& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline int GetDynamicTokenPosition() const{ return m_dynamicTokenPosition; }
52 inline bool DynamicTokenPositionHasBeenSet() const { return m_dynamicTokenPositionHasBeenSet; }
53 inline void SetDynamicTokenPosition(int value) { m_dynamicTokenPositionHasBeenSet = true; m_dynamicTokenPosition = value; }
54 inline PatternToken& WithDynamicTokenPosition(int value) { SetDynamicTokenPosition(value); return *this;}
56
58
61 inline bool GetIsDynamic() const{ return m_isDynamic; }
62 inline bool IsDynamicHasBeenSet() const { return m_isDynamicHasBeenSet; }
63 inline void SetIsDynamic(bool value) { m_isDynamicHasBeenSet = true; m_isDynamic = value; }
64 inline PatternToken& WithIsDynamic(bool value) { SetIsDynamic(value); return *this;}
66
68
72 inline const Aws::String& GetTokenString() const{ return m_tokenString; }
73 inline bool TokenStringHasBeenSet() const { return m_tokenStringHasBeenSet; }
74 inline void SetTokenString(const Aws::String& value) { m_tokenStringHasBeenSet = true; m_tokenString = value; }
75 inline void SetTokenString(Aws::String&& value) { m_tokenStringHasBeenSet = true; m_tokenString = std::move(value); }
76 inline void SetTokenString(const char* value) { m_tokenStringHasBeenSet = true; m_tokenString.assign(value); }
77 inline PatternToken& WithTokenString(const Aws::String& value) { SetTokenString(value); return *this;}
78 inline PatternToken& WithTokenString(Aws::String&& value) { SetTokenString(std::move(value)); return *this;}
79 inline PatternToken& WithTokenString(const char* value) { SetTokenString(value); return *this;}
81
83
87 inline const Aws::Map<Aws::String, long long>& GetEnumerations() const{ return m_enumerations; }
88 inline bool EnumerationsHasBeenSet() const { return m_enumerationsHasBeenSet; }
89 inline void SetEnumerations(const Aws::Map<Aws::String, long long>& value) { m_enumerationsHasBeenSet = true; m_enumerations = value; }
90 inline void SetEnumerations(Aws::Map<Aws::String, long long>&& value) { m_enumerationsHasBeenSet = true; m_enumerations = std::move(value); }
92 inline PatternToken& WithEnumerations(Aws::Map<Aws::String, long long>&& value) { SetEnumerations(std::move(value)); return *this;}
93 inline PatternToken& AddEnumerations(const Aws::String& key, long long value) { m_enumerationsHasBeenSet = true; m_enumerations.emplace(key, value); return *this; }
94 inline PatternToken& AddEnumerations(Aws::String&& key, long long value) { m_enumerationsHasBeenSet = true; m_enumerations.emplace(std::move(key), value); return *this; }
95 inline PatternToken& AddEnumerations(const char* key, long long value) { m_enumerationsHasBeenSet = true; m_enumerations.emplace(key, value); return *this; }
97
99
110 inline const Aws::String& GetInferredTokenName() const{ return m_inferredTokenName; }
111 inline bool InferredTokenNameHasBeenSet() const { return m_inferredTokenNameHasBeenSet; }
112 inline void SetInferredTokenName(const Aws::String& value) { m_inferredTokenNameHasBeenSet = true; m_inferredTokenName = value; }
113 inline void SetInferredTokenName(Aws::String&& value) { m_inferredTokenNameHasBeenSet = true; m_inferredTokenName = std::move(value); }
114 inline void SetInferredTokenName(const char* value) { m_inferredTokenNameHasBeenSet = true; m_inferredTokenName.assign(value); }
115 inline PatternToken& WithInferredTokenName(const Aws::String& value) { SetInferredTokenName(value); return *this;}
116 inline PatternToken& WithInferredTokenName(Aws::String&& value) { SetInferredTokenName(std::move(value)); return *this;}
117 inline PatternToken& WithInferredTokenName(const char* value) { SetInferredTokenName(value); return *this;}
119 private:
120
121 int m_dynamicTokenPosition;
122 bool m_dynamicTokenPositionHasBeenSet = false;
123
124 bool m_isDynamic;
125 bool m_isDynamicHasBeenSet = false;
126
127 Aws::String m_tokenString;
128 bool m_tokenStringHasBeenSet = false;
129
131 bool m_enumerationsHasBeenSet = false;
132
133 Aws::String m_inferredTokenName;
134 bool m_inferredTokenNameHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CloudWatchLogs
139} // namespace Aws
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
PatternToken & WithEnumerations(Aws::Map< Aws::String, long long > &&value)
PatternToken & WithInferredTokenName(Aws::String &&value)
PatternToken & WithInferredTokenName(const char *value)
const Aws::String & GetTokenString() const
PatternToken & WithTokenString(Aws::String &&value)
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)
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