AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Duration.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/TimeUnit.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 ElasticsearchService
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_ELASTICSEARCHSERVICE_API Duration();
39 AWS_ELASTICSEARCHSERVICE_API Duration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API Duration& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline long long GetValue() const{ return m_value; }
51 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
52 inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; }
53 inline Duration& WithValue(long long value) { SetValue(value); return *this;}
55
57
63 inline const TimeUnit& GetUnit() const{ return m_unit; }
64 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
65 inline void SetUnit(const TimeUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
66 inline void SetUnit(TimeUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
67 inline Duration& WithUnit(const TimeUnit& value) { SetUnit(value); return *this;}
68 inline Duration& WithUnit(TimeUnit&& value) { SetUnit(std::move(value)); return *this;}
70 private:
71
72 long long m_value;
73 bool m_valueHasBeenSet = false;
74
75 TimeUnit m_unit;
76 bool m_unitHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace ElasticsearchService
81} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API Duration()
const TimeUnit & GetUnit() const
Definition Duration.h:63
AWS_ELASTICSEARCHSERVICE_API Duration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(const TimeUnit &value)
Definition Duration.h:65
AWS_ELASTICSEARCHSERVICE_API Duration(Aws::Utils::Json::JsonView jsonValue)
Duration & WithUnit(const TimeUnit &value)
Definition Duration.h:67
Duration & WithValue(long long value)
Definition Duration.h:53
Duration & WithUnit(TimeUnit &&value)
Definition Duration.h:68
Aws::Utils::Json::JsonValue JsonValue