AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/ssm-incidents/model/AttributeValueList.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSMIncidents
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_SSMINCIDENTS_API Condition() = default;
40 AWS_SSMINCIDENTS_API Condition(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMINCIDENTS_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetAfter() const { return m_after; }
50 inline bool AfterHasBeenSet() const { return m_afterHasBeenSet; }
51 template<typename AfterT = Aws::Utils::DateTime>
52 void SetAfter(AfterT&& value) { m_afterHasBeenSet = true; m_after = std::forward<AfterT>(value); }
53 template<typename AfterT = Aws::Utils::DateTime>
54 Condition& WithAfter(AfterT&& value) { SetAfter(std::forward<AfterT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetBefore() const { return m_before; }
62 inline bool BeforeHasBeenSet() const { return m_beforeHasBeenSet; }
63 template<typename BeforeT = Aws::Utils::DateTime>
64 void SetBefore(BeforeT&& value) { m_beforeHasBeenSet = true; m_before = std::forward<BeforeT>(value); }
65 template<typename BeforeT = Aws::Utils::DateTime>
66 Condition& WithBefore(BeforeT&& value) { SetBefore(std::forward<BeforeT>(value)); return *this;}
68
70
73 inline const AttributeValueList& GetEquals() const { return m_equals; }
74 inline bool EqualsHasBeenSet() const { return m_equalsHasBeenSet; }
75 template<typename EqualsT = AttributeValueList>
76 void SetEquals(EqualsT&& value) { m_equalsHasBeenSet = true; m_equals = std::forward<EqualsT>(value); }
77 template<typename EqualsT = AttributeValueList>
78 Condition& WithEquals(EqualsT&& value) { SetEquals(std::forward<EqualsT>(value)); return *this;}
80 private:
81
82 Aws::Utils::DateTime m_after{};
83 bool m_afterHasBeenSet = false;
84
85 Aws::Utils::DateTime m_before{};
86 bool m_beforeHasBeenSet = false;
87
88 AttributeValueList m_equals;
89 bool m_equalsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace SSMIncidents
94} // namespace Aws
AWS_SSMINCIDENTS_API Condition()=default
AWS_SSMINCIDENTS_API Condition(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetAfter() const
Definition Condition.h:49
void SetAfter(AfterT &&value)
Definition Condition.h:52
Condition & WithBefore(BeforeT &&value)
Definition Condition.h:66
const AttributeValueList & GetEquals() const
Definition Condition.h:73
void SetEquals(EqualsT &&value)
Definition Condition.h:76
Condition & WithEquals(EqualsT &&value)
Definition Condition.h:78
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBefore(BeforeT &&value)
Definition Condition.h:64
Condition & WithAfter(AfterT &&value)
Definition Condition.h:54
AWS_SSMINCIDENTS_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetBefore() const
Definition Condition.h:61
Aws::Utils::Json::JsonValue JsonValue