AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TieringPolicy.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/model/TieringPolicyName.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
39 public:
40 AWS_FSX_API TieringPolicy() = default;
44
46
53 inline int GetCoolingPeriod() const { return m_coolingPeriod; }
54 inline bool CoolingPeriodHasBeenSet() const { return m_coolingPeriodHasBeenSet; }
55 inline void SetCoolingPeriod(int value) {
56 m_coolingPeriodHasBeenSet = true;
57 m_coolingPeriod = value;
58 }
59 inline TieringPolicy& WithCoolingPeriod(int value) {
60 SetCoolingPeriod(value);
61 return *this;
62 }
64
66
77 inline TieringPolicyName GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(TieringPolicyName value) {
80 m_nameHasBeenSet = true;
81 m_name = value;
82 }
84 SetName(value);
85 return *this;
86 }
88 private:
89 int m_coolingPeriod{0};
90
92 bool m_coolingPeriodHasBeenSet = false;
93 bool m_nameHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace FSx
98} // namespace Aws
AWS_FSX_API TieringPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
TieringPolicyName GetName() const
TieringPolicy & WithCoolingPeriod(int value)
AWS_FSX_API TieringPolicy(Aws::Utils::Json::JsonView jsonValue)
TieringPolicy & WithName(TieringPolicyName value)
AWS_FSX_API TieringPolicy()=default
void SetName(TieringPolicyName value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue