AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RestoreRequest.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/GlacierJobParameters.h>
9#include <aws/s3-crt/model/RestoreRequestType.h>
10#include <aws/s3-crt/model/Tier.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/s3-crt/model/SelectParameters.h>
13#include <aws/s3-crt/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 S3Crt
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_S3CRT_API RestoreRequest();
39 AWS_S3CRT_API RestoreRequest(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_S3CRT_API RestoreRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3CRT_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 inline void SetGlacierJobParameters(const GlacierJobParameters& value) { m_glacierJobParametersHasBeenSet = true; m_glacierJobParameters = value; }
65 inline void SetGlacierJobParameters(GlacierJobParameters&& value) { m_glacierJobParametersHasBeenSet = true; m_glacierJobParameters = std::move(value); }
67 inline RestoreRequest& WithGlacierJobParameters(GlacierJobParameters&& value) { SetGlacierJobParameters(std::move(value)); return *this;}
69
71
74 inline const RestoreRequestType& GetType() const{ return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(const RestoreRequestType& value) { m_typeHasBeenSet = true; m_type = value; }
77 inline void SetType(RestoreRequestType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
78 inline RestoreRequest& WithType(const RestoreRequestType& value) { SetType(value); return *this;}
79 inline RestoreRequest& WithType(RestoreRequestType&& value) { SetType(std::move(value)); return *this;}
81
83
86 inline const Tier& GetTier() const{ return m_tier; }
87 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
88 inline void SetTier(const Tier& value) { m_tierHasBeenSet = true; m_tier = value; }
89 inline void SetTier(Tier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
90 inline RestoreRequest& WithTier(const Tier& value) { SetTier(value); return *this;}
91 inline RestoreRequest& WithTier(Tier&& value) { SetTier(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetDescription() const{ return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
101 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 inline RestoreRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
104 inline RestoreRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
105 inline RestoreRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
107
109
112 inline const SelectParameters& GetSelectParameters() const{ return m_selectParameters; }
113 inline bool SelectParametersHasBeenSet() const { return m_selectParametersHasBeenSet; }
114 inline void SetSelectParameters(const SelectParameters& value) { m_selectParametersHasBeenSet = true; m_selectParameters = value; }
115 inline void SetSelectParameters(SelectParameters&& value) { m_selectParametersHasBeenSet = true; m_selectParameters = std::move(value); }
116 inline RestoreRequest& WithSelectParameters(const SelectParameters& value) { SetSelectParameters(value); return *this;}
117 inline RestoreRequest& WithSelectParameters(SelectParameters&& value) { SetSelectParameters(std::move(value)); return *this;}
119
121
124 inline const OutputLocation& GetOutputLocation() const{ return m_outputLocation; }
125 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
126 inline void SetOutputLocation(const OutputLocation& value) { m_outputLocationHasBeenSet = true; m_outputLocation = value; }
127 inline void SetOutputLocation(OutputLocation&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::move(value); }
128 inline RestoreRequest& WithOutputLocation(const OutputLocation& value) { SetOutputLocation(value); return *this;}
129 inline RestoreRequest& WithOutputLocation(OutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;}
131 private:
132
133 int m_days;
134 bool m_daysHasBeenSet = false;
135
136 GlacierJobParameters m_glacierJobParameters;
137 bool m_glacierJobParametersHasBeenSet = false;
138
139 RestoreRequestType m_type;
140 bool m_typeHasBeenSet = false;
141
142 Tier m_tier;
143 bool m_tierHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 SelectParameters m_selectParameters;
149 bool m_selectParametersHasBeenSet = false;
150
151 OutputLocation m_outputLocation;
152 bool m_outputLocationHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace S3Crt
157} // namespace Aws
AWS_S3CRT_API RestoreRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API RestoreRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
RestoreRequest & WithOutputLocation(OutputLocation &&value)
RestoreRequest & WithOutputLocation(const OutputLocation &value)
const Aws::String & GetDescription() const
void SetDescription(Aws::String &&value)
void SetSelectParameters(SelectParameters &&value)
const RestoreRequestType & GetType() const
RestoreRequest & WithType(const RestoreRequestType &value)
void SetTier(const Tier &value)
void SetSelectParameters(const SelectParameters &value)
const OutputLocation & GetOutputLocation() const
RestoreRequest & WithSelectParameters(const SelectParameters &value)
RestoreRequest & WithDescription(const Aws::String &value)
RestoreRequest & WithTier(const Tier &value)
void SetDescription(const char *value)
const SelectParameters & GetSelectParameters() const
RestoreRequest & WithGlacierJobParameters(GlacierJobParameters &&value)
void SetOutputLocation(const OutputLocation &value)
RestoreRequest & WithDays(int value)
RestoreRequest & WithTier(Tier &&value)
RestoreRequest & WithDescription(Aws::String &&value)
RestoreRequest & WithSelectParameters(SelectParameters &&value)
void SetType(RestoreRequestType &&value)
void SetGlacierJobParameters(GlacierJobParameters &&value)
RestoreRequest & WithType(RestoreRequestType &&value)
RestoreRequest & WithDescription(const char *value)
void SetOutputLocation(OutputLocation &&value)
RestoreRequest & WithGlacierJobParameters(const GlacierJobParameters &value)
void SetGlacierJobParameters(const GlacierJobParameters &value)
void SetDescription(const Aws::String &value)
void SetType(const RestoreRequestType &value)
const GlacierJobParameters & GetGlacierJobParameters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String