AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
InsightTimeRange.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace OpenSearchService {
17namespace Model {
18
26 public:
27 AWS_OPENSEARCHSERVICE_API InsightTimeRange() = default;
28 AWS_OPENSEARCHSERVICE_API InsightTimeRange(Aws::Utils::Json::JsonView jsonValue);
29 AWS_OPENSEARCHSERVICE_API InsightTimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline long long GetFrom() const { return m_from; }
37 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
38 inline void SetFrom(long long value) {
39 m_fromHasBeenSet = true;
40 m_from = value;
41 }
42 inline InsightTimeRange& WithFrom(long long value) {
43 SetFrom(value);
44 return *this;
45 }
47
49
52 inline long long GetTo() const { return m_to; }
53 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
54 inline void SetTo(long long value) {
55 m_toHasBeenSet = true;
56 m_to = value;
57 }
58 inline InsightTimeRange& WithTo(long long value) {
59 SetTo(value);
60 return *this;
61 }
63 private:
64 long long m_from{0};
65
66 long long m_to{0};
67 bool m_fromHasBeenSet = false;
68 bool m_toHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace OpenSearchService
73} // namespace Aws
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API InsightTimeRange()=default
AWS_OPENSEARCHSERVICE_API InsightTimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API InsightTimeRange(Aws::Utils::Json::JsonView jsonValue)
InsightTimeRange & WithTo(long long value)
InsightTimeRange & WithFrom(long long value)
Aws::Utils::Json::JsonValue JsonValue