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