AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TimeRange.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/shield/Shield_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Shield {
20namespace Model {
21
27class TimeRange {
28 public:
29 AWS_SHIELD_API TimeRange() = default;
30 AWS_SHIELD_API TimeRange(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::Utils::DateTime& GetFromInclusive() const { return m_fromInclusive; }
39 inline bool FromInclusiveHasBeenSet() const { return m_fromInclusiveHasBeenSet; }
40 template <typename FromInclusiveT = Aws::Utils::DateTime>
41 void SetFromInclusive(FromInclusiveT&& value) {
42 m_fromInclusiveHasBeenSet = true;
43 m_fromInclusive = std::forward<FromInclusiveT>(value);
44 }
45 template <typename FromInclusiveT = Aws::Utils::DateTime>
46 TimeRange& WithFromInclusive(FromInclusiveT&& value) {
47 SetFromInclusive(std::forward<FromInclusiveT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetToExclusive() const { return m_toExclusive; }
57 inline bool ToExclusiveHasBeenSet() const { return m_toExclusiveHasBeenSet; }
58 template <typename ToExclusiveT = Aws::Utils::DateTime>
59 void SetToExclusive(ToExclusiveT&& value) {
60 m_toExclusiveHasBeenSet = true;
61 m_toExclusive = std::forward<ToExclusiveT>(value);
62 }
63 template <typename ToExclusiveT = Aws::Utils::DateTime>
64 TimeRange& WithToExclusive(ToExclusiveT&& value) {
65 SetToExclusive(std::forward<ToExclusiveT>(value));
66 return *this;
67 }
69 private:
70 Aws::Utils::DateTime m_fromInclusive{};
71
72 Aws::Utils::DateTime m_toExclusive{};
73 bool m_fromInclusiveHasBeenSet = false;
74 bool m_toExclusiveHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Shield
79} // namespace Aws
const Aws::Utils::DateTime & GetFromInclusive() const
Definition TimeRange.h:38
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetToExclusive() const
Definition TimeRange.h:56
AWS_SHIELD_API TimeRange(Aws::Utils::Json::JsonView jsonValue)
void SetToExclusive(ToExclusiveT &&value)
Definition TimeRange.h:59
void SetFromInclusive(FromInclusiveT &&value)
Definition TimeRange.h:41
AWS_SHIELD_API TimeRange()=default
TimeRange & WithToExclusive(ToExclusiveT &&value)
Definition TimeRange.h:64
AWS_SHIELD_API TimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeRange & WithFromInclusive(FromInclusiveT &&value)
Definition TimeRange.h:46
bool ToExclusiveHasBeenSet() const
Definition TimeRange.h:57
bool FromInclusiveHasBeenSet() const
Definition TimeRange.h:39
Aws::Utils::Json::JsonValue JsonValue