AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/IndexType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHLOGS_API FieldIndex() = default;
32 AWS_CLOUDWATCHLOGS_API FieldIndex(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API FieldIndex& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
42 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
43 template <typename LogGroupIdentifierT = Aws::String>
44 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) {
45 m_logGroupIdentifierHasBeenSet = true;
46 m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value);
47 }
48 template <typename LogGroupIdentifierT = Aws::String>
49 FieldIndex& WithLogGroupIdentifier(LogGroupIdentifierT&& value) {
50 SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFieldIndexName() const { return m_fieldIndexName; }
60 inline bool FieldIndexNameHasBeenSet() const { return m_fieldIndexNameHasBeenSet; }
61 template <typename FieldIndexNameT = Aws::String>
62 void SetFieldIndexName(FieldIndexNameT&& value) {
63 m_fieldIndexNameHasBeenSet = true;
64 m_fieldIndexName = std::forward<FieldIndexNameT>(value);
65 }
66 template <typename FieldIndexNameT = Aws::String>
67 FieldIndex& WithFieldIndexName(FieldIndexNameT&& value) {
68 SetFieldIndexName(std::forward<FieldIndexNameT>(value));
69 return *this;
70 }
72
74
79 inline long long GetLastScanTime() const { return m_lastScanTime; }
80 inline bool LastScanTimeHasBeenSet() const { return m_lastScanTimeHasBeenSet; }
81 inline void SetLastScanTime(long long value) {
82 m_lastScanTimeHasBeenSet = true;
83 m_lastScanTime = value;
84 }
85 inline FieldIndex& WithLastScanTime(long long value) {
86 SetLastScanTime(value);
87 return *this;
88 }
90
92
96 inline long long GetFirstEventTime() const { return m_firstEventTime; }
97 inline bool FirstEventTimeHasBeenSet() const { return m_firstEventTimeHasBeenSet; }
98 inline void SetFirstEventTime(long long value) {
99 m_firstEventTimeHasBeenSet = true;
100 m_firstEventTime = value;
101 }
102 inline FieldIndex& WithFirstEventTime(long long value) {
103 SetFirstEventTime(value);
104 return *this;
105 }
107
109
113 inline long long GetLastEventTime() const { return m_lastEventTime; }
114 inline bool LastEventTimeHasBeenSet() const { return m_lastEventTimeHasBeenSet; }
115 inline void SetLastEventTime(long long value) {
116 m_lastEventTimeHasBeenSet = true;
117 m_lastEventTime = value;
118 }
119 inline FieldIndex& WithLastEventTime(long long value) {
120 SetLastEventTime(value);
121 return *this;
122 }
124
126
131 inline IndexType GetType() const { return m_type; }
132 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
133 inline void SetType(IndexType value) {
134 m_typeHasBeenSet = true;
135 m_type = value;
136 }
138 SetType(value);
139 return *this;
140 }
142 private:
143 Aws::String m_logGroupIdentifier;
144
145 Aws::String m_fieldIndexName;
146
147 long long m_lastScanTime{0};
148
149 long long m_firstEventTime{0};
150
151 long long m_lastEventTime{0};
152
154 bool m_logGroupIdentifierHasBeenSet = false;
155 bool m_fieldIndexNameHasBeenSet = false;
156 bool m_lastScanTimeHasBeenSet = false;
157 bool m_firstEventTimeHasBeenSet = false;
158 bool m_lastEventTimeHasBeenSet = false;
159 bool m_typeHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace CloudWatchLogs
164} // namespace Aws
FieldIndex & WithFirstEventTime(long long value)
Definition FieldIndex.h:102
AWS_CLOUDWATCHLOGS_API FieldIndex(Aws::Utils::Json::JsonView jsonValue)
void SetFieldIndexName(FieldIndexNameT &&value)
Definition FieldIndex.h:62
FieldIndex & WithType(IndexType value)
Definition FieldIndex.h:137
const Aws::String & GetFieldIndexName() const
Definition FieldIndex.h:59
const Aws::String & GetLogGroupIdentifier() const
Definition FieldIndex.h:41
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogGroupIdentifier(LogGroupIdentifierT &&value)
Definition FieldIndex.h:44
AWS_CLOUDWATCHLOGS_API FieldIndex & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldIndex & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
Definition FieldIndex.h:49
FieldIndex & WithLastScanTime(long long value)
Definition FieldIndex.h:85
void SetFirstEventTime(long long value)
Definition FieldIndex.h:98
FieldIndex & WithLastEventTime(long long value)
Definition FieldIndex.h:119
void SetLastScanTime(long long value)
Definition FieldIndex.h:81
AWS_CLOUDWATCHLOGS_API FieldIndex()=default
FieldIndex & WithFieldIndexName(FieldIndexNameT &&value)
Definition FieldIndex.h:67
void SetLastEventTime(long long value)
Definition FieldIndex.h:115
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue