AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
FieldIndex.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/IndexCategory.h>
10#include <aws/logs/model/IndexType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs {
22namespace Model {
23
31 public:
32 AWS_CLOUDWATCHLOGS_API FieldIndex() = default;
33 AWS_CLOUDWATCHLOGS_API FieldIndex(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API FieldIndex& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
43 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
44 template <typename LogGroupIdentifierT = Aws::String>
45 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) {
46 m_logGroupIdentifierHasBeenSet = true;
47 m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value);
48 }
49 template <typename LogGroupIdentifierT = Aws::String>
50 FieldIndex& WithLogGroupIdentifier(LogGroupIdentifierT&& value) {
51 SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetFieldIndexName() const { return m_fieldIndexName; }
61 inline bool FieldIndexNameHasBeenSet() const { return m_fieldIndexNameHasBeenSet; }
62 template <typename FieldIndexNameT = Aws::String>
63 void SetFieldIndexName(FieldIndexNameT&& value) {
64 m_fieldIndexNameHasBeenSet = true;
65 m_fieldIndexName = std::forward<FieldIndexNameT>(value);
66 }
67 template <typename FieldIndexNameT = Aws::String>
68 FieldIndex& WithFieldIndexName(FieldIndexNameT&& value) {
69 SetFieldIndexName(std::forward<FieldIndexNameT>(value));
70 return *this;
71 }
73
75
80 inline long long GetLastScanTime() const { return m_lastScanTime; }
81 inline bool LastScanTimeHasBeenSet() const { return m_lastScanTimeHasBeenSet; }
82 inline void SetLastScanTime(long long value) {
83 m_lastScanTimeHasBeenSet = true;
84 m_lastScanTime = value;
85 }
86 inline FieldIndex& WithLastScanTime(long long value) {
87 SetLastScanTime(value);
88 return *this;
89 }
91
93
97 inline long long GetFirstEventTime() const { return m_firstEventTime; }
98 inline bool FirstEventTimeHasBeenSet() const { return m_firstEventTimeHasBeenSet; }
99 inline void SetFirstEventTime(long long value) {
100 m_firstEventTimeHasBeenSet = true;
101 m_firstEventTime = value;
102 }
103 inline FieldIndex& WithFirstEventTime(long long value) {
104 SetFirstEventTime(value);
105 return *this;
106 }
108
110
114 inline long long GetLastEventTime() const { return m_lastEventTime; }
115 inline bool LastEventTimeHasBeenSet() const { return m_lastEventTimeHasBeenSet; }
116 inline void SetLastEventTime(long long value) {
117 m_lastEventTimeHasBeenSet = true;
118 m_lastEventTime = value;
119 }
120 inline FieldIndex& WithLastEventTime(long long value) {
121 SetLastEventTime(value);
122 return *this;
123 }
125
127
132 inline IndexType GetType() const { return m_type; }
133 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
134 inline void SetType(IndexType value) {
135 m_typeHasBeenSet = true;
136 m_type = value;
137 }
139 SetType(value);
140 return *this;
141 }
143
145
164 inline IndexCategory GetIndexCategory() const { return m_indexCategory; }
165 inline bool IndexCategoryHasBeenSet() const { return m_indexCategoryHasBeenSet; }
166 inline void SetIndexCategory(IndexCategory value) {
167 m_indexCategoryHasBeenSet = true;
168 m_indexCategory = value;
169 }
171 SetIndexCategory(value);
172 return *this;
173 }
175 private:
176 Aws::String m_logGroupIdentifier;
177
178 Aws::String m_fieldIndexName;
179
180 long long m_lastScanTime{0};
181
182 long long m_firstEventTime{0};
183
184 long long m_lastEventTime{0};
185
187
188 IndexCategory m_indexCategory{IndexCategory::NOT_SET};
189 bool m_logGroupIdentifierHasBeenSet = false;
190 bool m_fieldIndexNameHasBeenSet = false;
191 bool m_lastScanTimeHasBeenSet = false;
192 bool m_firstEventTimeHasBeenSet = false;
193 bool m_lastEventTimeHasBeenSet = false;
194 bool m_typeHasBeenSet = false;
195 bool m_indexCategoryHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace CloudWatchLogs
200} // namespace Aws
IndexCategory GetIndexCategory() const
Definition FieldIndex.h:164
FieldIndex & WithFirstEventTime(long long value)
Definition FieldIndex.h:103
AWS_CLOUDWATCHLOGS_API FieldIndex(Aws::Utils::Json::JsonView jsonValue)
void SetFieldIndexName(FieldIndexNameT &&value)
Definition FieldIndex.h:63
FieldIndex & WithType(IndexType value)
Definition FieldIndex.h:138
const Aws::String & GetFieldIndexName() const
Definition FieldIndex.h:60
const Aws::String & GetLogGroupIdentifier() const
Definition FieldIndex.h:42
void SetIndexCategory(IndexCategory value)
Definition FieldIndex.h:166
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogGroupIdentifier(LogGroupIdentifierT &&value)
Definition FieldIndex.h:45
AWS_CLOUDWATCHLOGS_API FieldIndex & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldIndex & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
Definition FieldIndex.h:50
FieldIndex & WithLastScanTime(long long value)
Definition FieldIndex.h:86
void SetFirstEventTime(long long value)
Definition FieldIndex.h:99
FieldIndex & WithLastEventTime(long long value)
Definition FieldIndex.h:120
void SetLastScanTime(long long value)
Definition FieldIndex.h:82
AWS_CLOUDWATCHLOGS_API FieldIndex()=default
FieldIndex & WithFieldIndexName(FieldIndexNameT &&value)
Definition FieldIndex.h:68
void SetLastEventTime(long long value)
Definition FieldIndex.h:116
FieldIndex & WithIndexCategory(IndexCategory value)
Definition FieldIndex.h:170
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue