AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RestoreRequest.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/Tier.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace S3
26{
27namespace Model
28{
29
36 {
37 public:
41
43
44
50 inline int GetDays() const{ return m_days; }
51
57 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
58
64 inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
65
71 inline RestoreRequest& WithDays(int value) { SetDays(value); return *this;}
72
73
78 inline const GlacierJobParameters& GetGlacierJobParameters() const{ return m_glacierJobParameters; }
79
84 inline bool GlacierJobParametersHasBeenSet() const { return m_glacierJobParametersHasBeenSet; }
85
90 inline void SetGlacierJobParameters(const GlacierJobParameters& value) { m_glacierJobParametersHasBeenSet = true; m_glacierJobParameters = value; }
91
96 inline void SetGlacierJobParameters(GlacierJobParameters&& value) { m_glacierJobParametersHasBeenSet = true; m_glacierJobParameters = std::move(value); }
97
103
108 inline RestoreRequest& WithGlacierJobParameters(GlacierJobParameters&& value) { SetGlacierJobParameters(std::move(value)); return *this;}
109
110
114 inline const RestoreRequestType& GetType() const{ return m_type; }
115
119 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
120
124 inline void SetType(const RestoreRequestType& value) { m_typeHasBeenSet = true; m_type = value; }
125
129 inline void SetType(RestoreRequestType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
130
134 inline RestoreRequest& WithType(const RestoreRequestType& value) { SetType(value); return *this;}
135
139 inline RestoreRequest& WithType(RestoreRequestType&& value) { SetType(std::move(value)); return *this;}
140
141
145 inline const Tier& GetTier() const{ return m_tier; }
146
150 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
151
155 inline void SetTier(const Tier& value) { m_tierHasBeenSet = true; m_tier = value; }
156
160 inline void SetTier(Tier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
161
165 inline RestoreRequest& WithTier(const Tier& value) { SetTier(value); return *this;}
166
170 inline RestoreRequest& WithTier(Tier&& value) { SetTier(std::move(value)); return *this;}
171
172
176 inline const Aws::String& GetDescription() const{ return m_description; }
177
181 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
182
186 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
187
191 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
192
196 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
197
201 inline RestoreRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
202
206 inline RestoreRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
207
211 inline RestoreRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
212
213
217 inline const SelectParameters& GetSelectParameters() const{ return m_selectParameters; }
218
222 inline bool SelectParametersHasBeenSet() const { return m_selectParametersHasBeenSet; }
223
227 inline void SetSelectParameters(const SelectParameters& value) { m_selectParametersHasBeenSet = true; m_selectParameters = value; }
228
232 inline void SetSelectParameters(SelectParameters&& value) { m_selectParametersHasBeenSet = true; m_selectParameters = std::move(value); }
233
237 inline RestoreRequest& WithSelectParameters(const SelectParameters& value) { SetSelectParameters(value); return *this;}
238
242 inline RestoreRequest& WithSelectParameters(SelectParameters&& value) { SetSelectParameters(std::move(value)); return *this;}
243
244
248 inline const OutputLocation& GetOutputLocation() const{ return m_outputLocation; }
249
253 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
254
258 inline void SetOutputLocation(const OutputLocation& value) { m_outputLocationHasBeenSet = true; m_outputLocation = value; }
259
263 inline void SetOutputLocation(OutputLocation&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::move(value); }
264
268 inline RestoreRequest& WithOutputLocation(const OutputLocation& value) { SetOutputLocation(value); return *this;}
269
273 inline RestoreRequest& WithOutputLocation(OutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;}
274
275 private:
276
277 int m_days;
278 bool m_daysHasBeenSet = false;
279
280 GlacierJobParameters m_glacierJobParameters;
281 bool m_glacierJobParametersHasBeenSet = false;
282
283 RestoreRequestType m_type;
284 bool m_typeHasBeenSet = false;
285
286 Tier m_tier;
287 bool m_tierHasBeenSet = false;
288
289 Aws::String m_description;
290 bool m_descriptionHasBeenSet = false;
291
292 SelectParameters m_selectParameters;
293 bool m_selectParametersHasBeenSet = false;
294
295 OutputLocation m_outputLocation;
296 bool m_outputLocationHasBeenSet = false;
297 };
298
299} // namespace Model
300} // namespace S3
301} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
const RestoreRequestType & GetType() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetDescription(const Aws::String &value)
RestoreRequest & WithGlacierJobParameters(const GlacierJobParameters &value)
void SetSelectParameters(SelectParameters &&value)
void SetTier(const Tier &value)
RestoreRequest & WithOutputLocation(OutputLocation &&value)
RestoreRequest & WithDays(int value)
void SetOutputLocation(const OutputLocation &value)
RestoreRequest & WithDescription(const char *value)
void SetGlacierJobParameters(GlacierJobParameters &&value)
RestoreRequest & WithDescription(Aws::String &&value)
bool GlacierJobParametersHasBeenSet() const
RestoreRequest & WithOutputLocation(const OutputLocation &value)
void SetGlacierJobParameters(const GlacierJobParameters &value)
AWS_S3_API RestoreRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
RestoreRequest & WithType(RestoreRequestType &&value)
const Tier & GetTier() const
void SetType(const RestoreRequestType &value)
RestoreRequest & WithTier(Tier &&value)
void SetDescription(Aws::String &&value)
void SetType(RestoreRequestType &&value)
const Aws::String & GetDescription() const
RestoreRequest & WithSelectParameters(SelectParameters &&value)
RestoreRequest & WithType(const RestoreRequestType &value)
RestoreRequest & WithTier(const Tier &value)
AWS_S3_API RestoreRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const GlacierJobParameters & GetGlacierJobParameters() const
const SelectParameters & GetSelectParameters() const
void SetSelectParameters(const SelectParameters &value)
const OutputLocation & GetOutputLocation() const
RestoreRequest & WithDescription(const Aws::String &value)
void SetDescription(const char *value)
RestoreRequest & WithGlacierJobParameters(GlacierJobParameters &&value)
RestoreRequest & WithSelectParameters(const SelectParameters &value)
void SetOutputLocation(OutputLocation &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String