AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SnaplockRetentionPeriod.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/model/RetentionPeriod.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:
42
43
45
52 inline const RetentionPeriod& GetDefaultRetention() const{ return m_defaultRetention; }
53 inline bool DefaultRetentionHasBeenSet() const { return m_defaultRetentionHasBeenSet; }
54 inline void SetDefaultRetention(const RetentionPeriod& value) { m_defaultRetentionHasBeenSet = true; m_defaultRetention = value; }
55 inline void SetDefaultRetention(RetentionPeriod&& value) { m_defaultRetentionHasBeenSet = true; m_defaultRetention = std::move(value); }
57 inline SnaplockRetentionPeriod& WithDefaultRetention(RetentionPeriod&& value) { SetDefaultRetention(std::move(value)); return *this;}
59
61
65 inline const RetentionPeriod& GetMinimumRetention() const{ return m_minimumRetention; }
66 inline bool MinimumRetentionHasBeenSet() const { return m_minimumRetentionHasBeenSet; }
67 inline void SetMinimumRetention(const RetentionPeriod& value) { m_minimumRetentionHasBeenSet = true; m_minimumRetention = value; }
68 inline void SetMinimumRetention(RetentionPeriod&& value) { m_minimumRetentionHasBeenSet = true; m_minimumRetention = std::move(value); }
70 inline SnaplockRetentionPeriod& WithMinimumRetention(RetentionPeriod&& value) { SetMinimumRetention(std::move(value)); return *this;}
72
74
78 inline const RetentionPeriod& GetMaximumRetention() const{ return m_maximumRetention; }
79 inline bool MaximumRetentionHasBeenSet() const { return m_maximumRetentionHasBeenSet; }
80 inline void SetMaximumRetention(const RetentionPeriod& value) { m_maximumRetentionHasBeenSet = true; m_maximumRetention = value; }
81 inline void SetMaximumRetention(RetentionPeriod&& value) { m_maximumRetentionHasBeenSet = true; m_maximumRetention = std::move(value); }
83 inline SnaplockRetentionPeriod& WithMaximumRetention(RetentionPeriod&& value) { SetMaximumRetention(std::move(value)); return *this;}
85 private:
86
87 RetentionPeriod m_defaultRetention;
88 bool m_defaultRetentionHasBeenSet = false;
89
90 RetentionPeriod m_minimumRetention;
91 bool m_minimumRetentionHasBeenSet = false;
92
93 RetentionPeriod m_maximumRetention;
94 bool m_maximumRetentionHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace FSx
99} // namespace Aws
void SetMinimumRetention(const RetentionPeriod &value)
void SetDefaultRetention(const RetentionPeriod &value)
AWS_FSX_API SnaplockRetentionPeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
const RetentionPeriod & GetMinimumRetention() const
SnaplockRetentionPeriod & WithMinimumRetention(RetentionPeriod &&value)
AWS_FSX_API SnaplockRetentionPeriod(Aws::Utils::Json::JsonView jsonValue)
void SetMaximumRetention(const RetentionPeriod &value)
const RetentionPeriod & GetDefaultRetention() const
void SetMaximumRetention(RetentionPeriod &&value)
void SetMinimumRetention(RetentionPeriod &&value)
SnaplockRetentionPeriod & WithMinimumRetention(const RetentionPeriod &value)
SnaplockRetentionPeriod & WithDefaultRetention(const RetentionPeriod &value)
void SetDefaultRetention(RetentionPeriod &&value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
SnaplockRetentionPeriod & WithDefaultRetention(RetentionPeriod &&value)
const RetentionPeriod & GetMaximumRetention() const
SnaplockRetentionPeriod & WithMaximumRetention(const RetentionPeriod &value)
SnaplockRetentionPeriod & WithMaximumRetention(RetentionPeriod &&value)
Aws::Utils::Json::JsonValue JsonValue