AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TimeRange.h
1
6#pragma once
7#include <aws/rum/CloudWatchRUM_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace CloudWatchRUM {
17namespace Model {
18
25class TimeRange {
26 public:
27 AWS_CLOUDWATCHRUM_API TimeRange() = default;
28 AWS_CLOUDWATCHRUM_API TimeRange(Aws::Utils::Json::JsonView jsonValue);
29 AWS_CLOUDWATCHRUM_API TimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline long long GetAfter() const { return m_after; }
37 inline bool AfterHasBeenSet() const { return m_afterHasBeenSet; }
38 inline void SetAfter(long long value) {
39 m_afterHasBeenSet = true;
40 m_after = value;
41 }
42 inline TimeRange& WithAfter(long long value) {
43 SetAfter(value);
44 return *this;
45 }
47
49
53 inline long long GetBefore() const { return m_before; }
54 inline bool BeforeHasBeenSet() const { return m_beforeHasBeenSet; }
55 inline void SetBefore(long long value) {
56 m_beforeHasBeenSet = true;
57 m_before = value;
58 }
59 inline TimeRange& WithBefore(long long value) {
60 SetBefore(value);
61 return *this;
62 }
64 private:
65 long long m_after{0};
66
67 long long m_before{0};
68 bool m_afterHasBeenSet = false;
69 bool m_beforeHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace CloudWatchRUM
74} // namespace Aws
TimeRange & WithBefore(long long value)
Definition TimeRange.h:59
void SetBefore(long long value)
Definition TimeRange.h:55
AWS_CLOUDWATCHRUM_API TimeRange()=default
AWS_CLOUDWATCHRUM_API TimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAfter(long long value)
Definition TimeRange.h:38
TimeRange & WithAfter(long long value)
Definition TimeRange.h:42
AWS_CLOUDWATCHRUM_API TimeRange(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue