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/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();
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 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 S3
157} // namespace Aws
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