AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RestoreRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/GlacierJobParameters.h>
10#include <aws/s3/model/OutputLocation.h>
11#include <aws/s3/model/RestoreRequestType.h>
12#include <aws/s3/model/SelectParameters.h>
13#include <aws/s3/model/Tier.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace S3 {
24namespace Model {
25
32 public:
33 AWS_S3_API RestoreRequest() = default;
34 AWS_S3_API RestoreRequest(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
40
45 inline int GetDays() const { return m_days; }
46 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
47 inline void SetDays(int value) {
48 m_daysHasBeenSet = true;
49 m_days = value;
50 }
51 inline RestoreRequest& WithDays(int value) {
52 SetDays(value);
53 return *this;
54 }
56
58
62 inline const GlacierJobParameters& GetGlacierJobParameters() const { return m_glacierJobParameters; }
63 inline bool GlacierJobParametersHasBeenSet() const { return m_glacierJobParametersHasBeenSet; }
64 template <typename GlacierJobParametersT = GlacierJobParameters>
65 void SetGlacierJobParameters(GlacierJobParametersT&& value) {
66 m_glacierJobParametersHasBeenSet = true;
67 m_glacierJobParameters = std::forward<GlacierJobParametersT>(value);
68 }
69 template <typename GlacierJobParametersT = GlacierJobParameters>
70 RestoreRequest& WithGlacierJobParameters(GlacierJobParametersT&& value) {
71 SetGlacierJobParameters(std::forward<GlacierJobParametersT>(value));
72 return *this;
73 }
75
77
84 inline RestoreRequestType GetType() const { return m_type; }
85 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
86 inline void SetType(RestoreRequestType value) {
87 m_typeHasBeenSet = true;
88 m_type = value;
89 }
91 SetType(value);
92 return *this;
93 }
95
97
100 inline Tier GetTier() const { return m_tier; }
101 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
102 inline void SetTier(Tier value) {
103 m_tierHasBeenSet = true;
104 m_tier = value;
105 }
106 inline RestoreRequest& WithTier(Tier value) {
107 SetTier(value);
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
124 RestoreRequest& WithDescription(DescriptionT&& value) {
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
138 inline const SelectParameters& GetSelectParameters() const { return m_selectParameters; }
139 inline bool SelectParametersHasBeenSet() const { return m_selectParametersHasBeenSet; }
140 template <typename SelectParametersT = SelectParameters>
141 void SetSelectParameters(SelectParametersT&& value) {
142 m_selectParametersHasBeenSet = true;
143 m_selectParameters = std::forward<SelectParametersT>(value);
144 }
145 template <typename SelectParametersT = SelectParameters>
146 RestoreRequest& WithSelectParameters(SelectParametersT&& value) {
147 SetSelectParameters(std::forward<SelectParametersT>(value));
148 return *this;
149 }
151
153
156 inline const OutputLocation& GetOutputLocation() const { return m_outputLocation; }
157 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
158 template <typename OutputLocationT = OutputLocation>
159 void SetOutputLocation(OutputLocationT&& value) {
160 m_outputLocationHasBeenSet = true;
161 m_outputLocation = std::forward<OutputLocationT>(value);
162 }
163 template <typename OutputLocationT = OutputLocation>
164 RestoreRequest& WithOutputLocation(OutputLocationT&& value) {
165 SetOutputLocation(std::forward<OutputLocationT>(value));
166 return *this;
167 }
169 private:
170 int m_days{0};
171
172 GlacierJobParameters m_glacierJobParameters;
173
175
176 Tier m_tier{Tier::NOT_SET};
177
178 Aws::String m_description;
179
180 SelectParameters m_selectParameters;
181
182 OutputLocation m_outputLocation;
183 bool m_daysHasBeenSet = false;
184 bool m_glacierJobParametersHasBeenSet = false;
185 bool m_typeHasBeenSet = false;
186 bool m_tierHasBeenSet = false;
187 bool m_descriptionHasBeenSet = false;
188 bool m_selectParametersHasBeenSet = false;
189 bool m_outputLocationHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace S3
194} // namespace Aws
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
RestoreRequest & WithGlacierJobParameters(GlacierJobParametersT &&value)
void SetDescription(DescriptionT &&value)
RestoreRequest & WithDays(int value)
AWS_S3_API RestoreRequest()=default
RestoreRequest & WithSelectParameters(SelectParametersT &&value)
bool GlacierJobParametersHasBeenSet() const
AWS_S3_API RestoreRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetType(RestoreRequestType value)
void SetSelectParameters(SelectParametersT &&value)
RestoreRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
RestoreRequestType GetType() const
RestoreRequest & WithTier(Tier value)
AWS_S3_API RestoreRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGlacierJobParameters(GlacierJobParametersT &&value)
const GlacierJobParameters & GetGlacierJobParameters() const
const SelectParameters & GetSelectParameters() const
RestoreRequest & WithOutputLocation(OutputLocationT &&value)
void SetOutputLocation(OutputLocationT &&value)
const OutputLocation & GetOutputLocation() const
RestoreRequest & WithType(RestoreRequestType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String