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/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/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 OpenSearchService
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API Duration();
37 AWS_OPENSEARCHSERVICE_API Duration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Duration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline long long GetValue() const{ return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; }
49 inline Duration& WithValue(long long value) { SetValue(value); return *this;}
51
53
56 inline const TimeUnit& GetUnit() const{ return m_unit; }
57 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
58 inline void SetUnit(const TimeUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
59 inline void SetUnit(TimeUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
60 inline Duration& WithUnit(const TimeUnit& value) { SetUnit(value); return *this;}
61 inline Duration& WithUnit(TimeUnit&& value) { SetUnit(std::move(value)); return *this;}
63 private:
64
65 long long m_value;
66 bool m_valueHasBeenSet = false;
67
68 TimeUnit m_unit;
69 bool m_unitHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace OpenSearchService
74} // namespace Aws
const TimeUnit & GetUnit() const
Definition Duration.h:56
AWS_OPENSEARCHSERVICE_API Duration()
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Duration & WithUnit(const TimeUnit &value)
Definition Duration.h:60
Duration & WithUnit(TimeUnit &&value)
Definition Duration.h:61
AWS_OPENSEARCHSERVICE_API Duration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(TimeUnit &&value)
Definition Duration.h:59
Duration & WithValue(long long value)
Definition Duration.h:49
void SetUnit(const TimeUnit &value)
Definition Duration.h:58
AWS_OPENSEARCHSERVICE_API Duration(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue