AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
TimeCondition.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/backupsearch/model/TimeConditionOperator.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 BackupSearch
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BACKUPSEARCH_API TimeCondition() = default;
37 AWS_BACKUPSEARCH_API TimeCondition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BACKUPSEARCH_API TimeCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Utils::DateTime& GetValue() const { return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 template<typename ValueT = Aws::Utils::DateTime>
49 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
50 template<typename ValueT = Aws::Utils::DateTime>
51 TimeCondition& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
53
55
62 inline TimeConditionOperator GetOperator() const { return m_operator; }
63 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
64 inline void SetOperator(TimeConditionOperator value) { m_operatorHasBeenSet = true; m_operator = value; }
65 inline TimeCondition& WithOperator(TimeConditionOperator value) { SetOperator(value); return *this;}
67 private:
68
69 Aws::Utils::DateTime m_value{};
70 bool m_valueHasBeenSet = false;
71
73 bool m_operatorHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace BackupSearch
78} // namespace Aws
AWS_BACKUPSEARCH_API TimeCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeConditionOperator GetOperator() const
void SetOperator(TimeConditionOperator value)
TimeCondition & WithOperator(TimeConditionOperator value)
const Aws::Utils::DateTime & GetValue() const
AWS_BACKUPSEARCH_API TimeCondition(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUPSEARCH_API TimeCondition()=default
TimeCondition & WithValue(ValueT &&value)
AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue