AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
TimeCondition.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/backupsearch/model/TimeConditionOperator.h>
9#include <aws/core/utils/DateTime.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BackupSearch {
21namespace Model {
22
30 public:
31 AWS_BACKUPSEARCH_API TimeCondition() = default;
32 AWS_BACKUPSEARCH_API TimeCondition(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BACKUPSEARCH_API TimeCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Utils::DateTime& GetValue() const { return m_value; }
41 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
42 template <typename ValueT = Aws::Utils::DateTime>
43 void SetValue(ValueT&& value) {
44 m_valueHasBeenSet = true;
45 m_value = std::forward<ValueT>(value);
46 }
47 template <typename ValueT = Aws::Utils::DateTime>
48 TimeCondition& WithValue(ValueT&& value) {
49 SetValue(std::forward<ValueT>(value));
50 return *this;
51 }
53
55
62 inline TimeConditionOperator GetOperator() const { return m_operator; }
63 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
65 m_operatorHasBeenSet = true;
66 m_operator = value;
67 }
69 SetOperator(value);
70 return *this;
71 }
73 private:
74 Aws::Utils::DateTime m_value{};
75
77 bool m_valueHasBeenSet = false;
78 bool m_operatorHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace BackupSearch
83} // 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