AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RestoreRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/GlacierJobParameters.h>
9#include <aws/s3/model/RestoreRequestType.h>
10#include <aws/s3/model/Tier.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/s3/model/SelectParameters.h>
13#include <aws/s3/model/OutputLocation.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:
38 AWS_S3_API RestoreRequest() = default;
39 AWS_S3_API RestoreRequest(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
51 inline int GetDays() const { return m_days; }
52 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
53 inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
54 inline RestoreRequest& WithDays(int value) { SetDays(value); return *this;}
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) { m_glacierJobParametersHasBeenSet = true; m_glacierJobParameters = std::forward<GlacierJobParametersT>(value); }
66 template<typename GlacierJobParametersT = GlacierJobParameters>
67 RestoreRequest& WithGlacierJobParameters(GlacierJobParametersT&& value) { SetGlacierJobParameters(std::forward<GlacierJobParametersT>(value)); return *this;}
69
71
78 inline RestoreRequestType GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(RestoreRequestType value) { m_typeHasBeenSet = true; m_type = value; }
81 inline RestoreRequest& WithType(RestoreRequestType value) { SetType(value); return *this;}
83
85
88 inline Tier GetTier() const { return m_tier; }
89 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
90 inline void SetTier(Tier value) { m_tierHasBeenSet = true; m_tier = value; }
91 inline RestoreRequest& WithTier(Tier value) { SetTier(value); return *this;}
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template<typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
102 template<typename DescriptionT = Aws::String>
103 RestoreRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
105
107
114 inline const SelectParameters& GetSelectParameters() const { return m_selectParameters; }
115 inline bool SelectParametersHasBeenSet() const { return m_selectParametersHasBeenSet; }
116 template<typename SelectParametersT = SelectParameters>
117 void SetSelectParameters(SelectParametersT&& value) { m_selectParametersHasBeenSet = true; m_selectParameters = std::forward<SelectParametersT>(value); }
118 template<typename SelectParametersT = SelectParameters>
119 RestoreRequest& WithSelectParameters(SelectParametersT&& value) { SetSelectParameters(std::forward<SelectParametersT>(value)); return *this;}
121
123
126 inline const OutputLocation& GetOutputLocation() const { return m_outputLocation; }
127 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
128 template<typename OutputLocationT = OutputLocation>
129 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::forward<OutputLocationT>(value); }
130 template<typename OutputLocationT = OutputLocation>
131 RestoreRequest& WithOutputLocation(OutputLocationT&& value) { SetOutputLocation(std::forward<OutputLocationT>(value)); return *this;}
133 private:
134
135 int m_days{0};
136 bool m_daysHasBeenSet = false;
137
138 GlacierJobParameters m_glacierJobParameters;
139 bool m_glacierJobParametersHasBeenSet = false;
140
142 bool m_typeHasBeenSet = false;
143
144 Tier m_tier{Tier::NOT_SET};
145 bool m_tierHasBeenSet = false;
146
147 Aws::String m_description;
148 bool m_descriptionHasBeenSet = false;
149
150 SelectParameters m_selectParameters;
151 bool m_selectParametersHasBeenSet = false;
152
153 OutputLocation m_outputLocation;
154 bool m_outputLocationHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace S3
159} // 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