AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatedAt.h
1
6#pragma once
7#include <aws/ecs/ECS_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 ECS
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_ECS_API CreatedAt() = default;
38 AWS_ECS_API CreatedAt(Aws::Utils::Json::JsonView jsonValue);
41
42
44
48 inline const Aws::Utils::DateTime& GetBefore() const { return m_before; }
49 inline bool BeforeHasBeenSet() const { return m_beforeHasBeenSet; }
50 template<typename BeforeT = Aws::Utils::DateTime>
51 void SetBefore(BeforeT&& value) { m_beforeHasBeenSet = true; m_before = std::forward<BeforeT>(value); }
52 template<typename BeforeT = Aws::Utils::DateTime>
53 CreatedAt& WithBefore(BeforeT&& value) { SetBefore(std::forward<BeforeT>(value)); return *this;}
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) { m_afterHasBeenSet = true; m_after = std::forward<AfterT>(value); }
65 template<typename AfterT = Aws::Utils::DateTime>
66 CreatedAt& WithAfter(AfterT&& value) { SetAfter(std::forward<AfterT>(value)); return *this;}
68 private:
69
70 Aws::Utils::DateTime m_before{};
71 bool m_beforeHasBeenSet = false;
72
73 Aws::Utils::DateTime m_after{};
74 bool m_afterHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ECS
79} // 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:66
bool AfterHasBeenSet() const
Definition CreatedAt.h:62
CreatedAt & WithBefore(BeforeT &&value)
Definition CreatedAt.h:53
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
bool BeforeHasBeenSet() const
Definition CreatedAt.h:49
const Aws::Utils::DateTime & GetBefore() const
Definition CreatedAt.h:48
void SetBefore(BeforeT &&value)
Definition CreatedAt.h:51
const Aws::Utils::DateTime & GetAfter() const
Definition CreatedAt.h:61
Aws::Utils::Json::JsonValue JsonValue