AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DurationSinceLastAccess.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/model/Unit.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 FSx
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_FSX_API DurationSinceLastAccess() = default;
41
42
44
49 inline Unit GetUnit() const { return m_unit; }
50 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
51 inline void SetUnit(Unit value) { m_unitHasBeenSet = true; m_unit = value; }
52 inline DurationSinceLastAccess& WithUnit(Unit value) { SetUnit(value); return *this;}
54
56
67 inline long long GetValue() const { return m_value; }
68 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
69 inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; }
70 inline DurationSinceLastAccess& WithValue(long long value) { SetValue(value); return *this;}
72 private:
73
74 Unit m_unit{Unit::NOT_SET};
75 bool m_unitHasBeenSet = false;
76
77 long long m_value{0};
78 bool m_valueHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace FSx
83} // namespace Aws
DurationSinceLastAccess & WithValue(long long value)
AWS_FSX_API DurationSinceLastAccess()=default
AWS_FSX_API DurationSinceLastAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API DurationSinceLastAccess(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
DurationSinceLastAccess & WithUnit(Unit value)
Aws::Utils::Json::JsonValue JsonValue