AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
InventoryTimeRange.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ACM {
20namespace Model {
21
29 public:
30 AWS_ACM_API InventoryTimeRange() = default;
34
36
39 inline const Aws::Utils::DateTime& GetAfter() const { return m_after; }
40 inline bool AfterHasBeenSet() const { return m_afterHasBeenSet; }
41 template <typename AfterT = Aws::Utils::DateTime>
42 void SetAfter(AfterT&& value) {
43 m_afterHasBeenSet = true;
44 m_after = std::forward<AfterT>(value);
45 }
46 template <typename AfterT = Aws::Utils::DateTime>
47 InventoryTimeRange& WithAfter(AfterT&& value) {
48 SetAfter(std::forward<AfterT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetBefore() const { return m_before; }
58 inline bool BeforeHasBeenSet() const { return m_beforeHasBeenSet; }
59 template <typename BeforeT = Aws::Utils::DateTime>
60 void SetBefore(BeforeT&& value) {
61 m_beforeHasBeenSet = true;
62 m_before = std::forward<BeforeT>(value);
63 }
64 template <typename BeforeT = Aws::Utils::DateTime>
65 InventoryTimeRange& WithBefore(BeforeT&& value) {
66 SetBefore(std::forward<BeforeT>(value));
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_after{};
72
73 Aws::Utils::DateTime m_before{};
74 bool m_afterHasBeenSet = false;
75 bool m_beforeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ACM
80} // namespace Aws
const Aws::Utils::DateTime & GetBefore() const
const Aws::Utils::DateTime & GetAfter() const
AWS_ACM_API InventoryTimeRange(Aws::Utils::Json::JsonView jsonValue)
InventoryTimeRange & WithAfter(AfterT &&value)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACM_API InventoryTimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACM_API InventoryTimeRange()=default
InventoryTimeRange & WithBefore(BeforeT &&value)
Aws::Utils::Json::JsonValue JsonValue