AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreatedAt.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
30class CreatedAt {
31 public:
32 AWS_ECS_API CreatedAt() = default;
33 AWS_ECS_API CreatedAt(Aws::Utils::Json::JsonView jsonValue);
36
38
42 inline const Aws::Utils::DateTime& GetBefore() const { return m_before; }
43 inline bool BeforeHasBeenSet() const { return m_beforeHasBeenSet; }
44 template <typename BeforeT = Aws::Utils::DateTime>
45 void SetBefore(BeforeT&& value) {
46 m_beforeHasBeenSet = true;
47 m_before = std::forward<BeforeT>(value);
48 }
49 template <typename BeforeT = Aws::Utils::DateTime>
50 CreatedAt& WithBefore(BeforeT&& value) {
51 SetBefore(std::forward<BeforeT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Utils::DateTime& GetAfter() const { return m_after; }
62 inline bool AfterHasBeenSet() const { return m_afterHasBeenSet; }
63 template <typename AfterT = Aws::Utils::DateTime>
64 void SetAfter(AfterT&& value) {
65 m_afterHasBeenSet = true;
66 m_after = std::forward<AfterT>(value);
67 }
68 template <typename AfterT = Aws::Utils::DateTime>
69 CreatedAt& WithAfter(AfterT&& value) {
70 SetAfter(std::forward<AfterT>(value));
71 return *this;
72 }
74 private:
75 Aws::Utils::DateTime m_before{};
76
77 Aws::Utils::DateTime m_after{};
78 bool m_beforeHasBeenSet = false;
79 bool m_afterHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ECS
84} // namespace Aws
AWS_ECS_API CreatedAt(Aws::Utils::Json::JsonView jsonValue)
void SetAfter(AfterT &&value)
Definition CreatedAt.h:64
AWS_ECS_API CreatedAt & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API CreatedAt()=default
CreatedAt & WithAfter(AfterT &&value)
Definition CreatedAt.h:69
bool AfterHasBeenSet() const
Definition CreatedAt.h:62
CreatedAt & WithBefore(BeforeT &&value)
Definition CreatedAt.h:50
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
bool BeforeHasBeenSet() const
Definition CreatedAt.h:43
const Aws::Utils::DateTime & GetBefore() const
Definition CreatedAt.h:42
void SetBefore(BeforeT &&value)
Definition CreatedAt.h:45
const Aws::Utils::DateTime & GetAfter() const
Definition CreatedAt.h:61
Aws::Utils::Json::JsonValue JsonValue