AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
41
42
44
49 inline const Unit& GetUnit() const{ return m_unit; }
50 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
51 inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
52 inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
53 inline DurationSinceLastAccess& WithUnit(const Unit& value) { SetUnit(value); return *this;}
54 inline DurationSinceLastAccess& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
56
58
69 inline long long GetValue() const{ return m_value; }
70 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
71 inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; }
72 inline DurationSinceLastAccess& WithValue(long long value) { SetValue(value); return *this;}
74 private:
75
76 Unit m_unit;
77 bool m_unitHasBeenSet = false;
78
79 long long m_value;
80 bool m_valueHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace FSx
85} // namespace Aws
DurationSinceLastAccess & WithUnit(const Unit &value)
DurationSinceLastAccess & WithValue(long long value)
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