AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FastRestoreRule.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/RetentionIntervalUnitValues.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DLM
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_DLM_API FastRestoreRule();
43
44
46
49 inline int GetCount() const{ return m_count; }
50 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
51 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
52 inline FastRestoreRule& WithCount(int value) { SetCount(value); return *this;}
54
56
60 inline int GetInterval() const{ return m_interval; }
61 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
62 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
63 inline FastRestoreRule& WithInterval(int value) { SetInterval(value); return *this;}
65
67
70 inline const RetentionIntervalUnitValues& GetIntervalUnit() const{ return m_intervalUnit; }
71 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
72 inline void SetIntervalUnit(const RetentionIntervalUnitValues& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = value; }
73 inline void SetIntervalUnit(RetentionIntervalUnitValues&& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = std::move(value); }
74 inline FastRestoreRule& WithIntervalUnit(const RetentionIntervalUnitValues& value) { SetIntervalUnit(value); return *this;}
75 inline FastRestoreRule& WithIntervalUnit(RetentionIntervalUnitValues&& value) { SetIntervalUnit(std::move(value)); return *this;}
77
79
82 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
83 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
84 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
85 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
87 inline FastRestoreRule& WithAvailabilityZones(Aws::Vector<Aws::String>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
88 inline FastRestoreRule& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
89 inline FastRestoreRule& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
90 inline FastRestoreRule& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
92 private:
93
94 int m_count;
95 bool m_countHasBeenSet = false;
96
97 int m_interval;
98 bool m_intervalHasBeenSet = false;
99
100 RetentionIntervalUnitValues m_intervalUnit;
101 bool m_intervalUnitHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_availabilityZones;
104 bool m_availabilityZonesHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace DLM
109} // namespace Aws
void SetIntervalUnit(RetentionIntervalUnitValues &&value)
AWS_DLM_API FastRestoreRule(Aws::Utils::Json::JsonView jsonValue)
void SetIntervalUnit(const RetentionIntervalUnitValues &value)
FastRestoreRule & AddAvailabilityZones(const char *value)
FastRestoreRule & WithInterval(int value)
AWS_DLM_API FastRestoreRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const RetentionIntervalUnitValues & GetIntervalUnit() const
FastRestoreRule & WithIntervalUnit(const RetentionIntervalUnitValues &value)
FastRestoreRule & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
FastRestoreRule & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
FastRestoreRule & WithCount(int value)
FastRestoreRule & AddAvailabilityZones(const Aws::String &value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
FastRestoreRule & WithIntervalUnit(RetentionIntervalUnitValues &&value)
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
FastRestoreRule & AddAvailabilityZones(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue