AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RetentionPeriod.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/model/RetentionPeriodType.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
36 {
37 public:
38 AWS_FSX_API RetentionPeriod();
42
43
45
52 inline const RetentionPeriodType& GetType() const{ return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(const RetentionPeriodType& value) { m_typeHasBeenSet = true; m_type = value; }
55 inline void SetType(RetentionPeriodType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
56 inline RetentionPeriod& WithType(const RetentionPeriodType& value) { SetType(value); return *this;}
57 inline RetentionPeriod& WithType(RetentionPeriodType&& value) { SetType(std::move(value)); return *this;}
59
61
71 inline int GetValue() const{ return m_value; }
72 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
73 inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
74 inline RetentionPeriod& WithValue(int value) { SetValue(value); return *this;}
76 private:
77
79 bool m_typeHasBeenSet = false;
80
81 int m_value;
82 bool m_valueHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace FSx
87} // namespace Aws
RetentionPeriod & WithType(const RetentionPeriodType &value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FSX_API RetentionPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API RetentionPeriod(Aws::Utils::Json::JsonView jsonValue)
RetentionPeriod & WithValue(int value)
void SetType(RetentionPeriodType &&value)
const RetentionPeriodType & GetType() const
RetentionPeriod & WithType(RetentionPeriodType &&value)
void SetType(const RetentionPeriodType &value)
Aws::Utils::Json::JsonValue JsonValue