AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TimeRange.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Shield
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SHIELD_API TimeRange() = default;
35 AWS_SHIELD_API TimeRange(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::Utils::DateTime& GetFromInclusive() const { return m_fromInclusive; }
45 inline bool FromInclusiveHasBeenSet() const { return m_fromInclusiveHasBeenSet; }
46 template<typename FromInclusiveT = Aws::Utils::DateTime>
47 void SetFromInclusive(FromInclusiveT&& value) { m_fromInclusiveHasBeenSet = true; m_fromInclusive = std::forward<FromInclusiveT>(value); }
48 template<typename FromInclusiveT = Aws::Utils::DateTime>
49 TimeRange& WithFromInclusive(FromInclusiveT&& value) { SetFromInclusive(std::forward<FromInclusiveT>(value)); return *this;}
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) { m_toExclusiveHasBeenSet = true; m_toExclusive = std::forward<ToExclusiveT>(value); }
60 template<typename ToExclusiveT = Aws::Utils::DateTime>
61 TimeRange& WithToExclusive(ToExclusiveT&& value) { SetToExclusive(std::forward<ToExclusiveT>(value)); return *this;}
63 private:
64
65 Aws::Utils::DateTime m_fromInclusive{};
66 bool m_fromInclusiveHasBeenSet = false;
67
68 Aws::Utils::DateTime m_toExclusive{};
69 bool m_toExclusiveHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Shield
74} // namespace Aws
const Aws::Utils::DateTime & GetFromInclusive() const
Definition TimeRange.h:44
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:47
AWS_SHIELD_API TimeRange()=default
TimeRange & WithToExclusive(ToExclusiveT &&value)
Definition TimeRange.h:61
AWS_SHIELD_API TimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeRange & WithFromInclusive(FromInclusiveT &&value)
Definition TimeRange.h:49
bool ToExclusiveHasBeenSet() const
Definition TimeRange.h:57
bool FromInclusiveHasBeenSet() const
Definition TimeRange.h:45
Aws::Utils::Json::JsonValue JsonValue