AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace FSx {
20namespace Model {
21
31 public:
32 AWS_FSX_API DurationSinceLastAccess() = default;
36
38
43 inline Unit GetUnit() const { return m_unit; }
44 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
45 inline void SetUnit(Unit value) {
46 m_unitHasBeenSet = true;
47 m_unit = value;
48 }
50 SetUnit(value);
51 return *this;
52 }
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) {
70 m_valueHasBeenSet = true;
71 m_value = value;
72 }
73 inline DurationSinceLastAccess& WithValue(long long value) {
74 SetValue(value);
75 return *this;
76 }
78 private:
79 Unit m_unit{Unit::NOT_SET};
80
81 long long m_value{0};
82 bool m_unitHasBeenSet = false;
83 bool m_valueHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace FSx
88} // 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