AWS SDK for C++  1.9.69
AWS SDK for C++
ExportToS3Task.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
49  inline const ContainerFormat& GetContainerFormat() const{ return m_containerFormat; }
50 
55  inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
56 
61  inline void SetContainerFormat(const ContainerFormat& value) { m_containerFormatHasBeenSet = true; m_containerFormat = value; }
62 
67  inline void SetContainerFormat(ContainerFormat&& value) { m_containerFormatHasBeenSet = true; m_containerFormat = std::move(value); }
68 
73  inline ExportToS3Task& WithContainerFormat(const ContainerFormat& value) { SetContainerFormat(value); return *this;}
74 
79  inline ExportToS3Task& WithContainerFormat(ContainerFormat&& value) { SetContainerFormat(std::move(value)); return *this;}
80 
81 
85  inline const DiskImageFormat& GetDiskImageFormat() const{ return m_diskImageFormat; }
86 
90  inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
91 
95  inline void SetDiskImageFormat(const DiskImageFormat& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
96 
100  inline void SetDiskImageFormat(DiskImageFormat&& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = std::move(value); }
101 
105  inline ExportToS3Task& WithDiskImageFormat(const DiskImageFormat& value) { SetDiskImageFormat(value); return *this;}
106 
110  inline ExportToS3Task& WithDiskImageFormat(DiskImageFormat&& value) { SetDiskImageFormat(std::move(value)); return *this;}
111 
112 
118  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
119 
125  inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
126 
132  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
133 
139  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
140 
146  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
147 
153  inline ExportToS3Task& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
154 
160  inline ExportToS3Task& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
161 
167  inline ExportToS3Task& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
168 
169 
173  inline const Aws::String& GetS3Key() const{ return m_s3Key; }
174 
178  inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
179 
183  inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
184 
188  inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
189 
193  inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
194 
198  inline ExportToS3Task& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
199 
203  inline ExportToS3Task& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
204 
208  inline ExportToS3Task& WithS3Key(const char* value) { SetS3Key(value); return *this;}
209 
210  private:
211 
212  ContainerFormat m_containerFormat;
213  bool m_containerFormatHasBeenSet;
214 
215  DiskImageFormat m_diskImageFormat;
216  bool m_diskImageFormatHasBeenSet;
217 
218  Aws::String m_s3Bucket;
219  bool m_s3BucketHasBeenSet;
220 
221  Aws::String m_s3Key;
222  bool m_s3KeyHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace EC2
227 } // namespace Aws
Aws::EC2::Model::ExportToS3Task::SetContainerFormat
void SetContainerFormat(ContainerFormat &&value)
Definition: ExportToS3Task.h:67
Aws::EC2::Model::ExportToS3Task::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ExportToS3Task::ExportToS3Task
ExportToS3Task()
Aws::EC2::Model::ExportToS3Task::SetDiskImageFormat
void SetDiskImageFormat(const DiskImageFormat &value)
Definition: ExportToS3Task.h:95
Aws::EC2::Model::ExportToS3Task::S3BucketHasBeenSet
bool S3BucketHasBeenSet() const
Definition: ExportToS3Task.h:125
Aws::EC2::Model::ExportToS3Task::GetS3Bucket
const Aws::String & GetS3Bucket() const
Definition: ExportToS3Task.h:118
Aws::EC2::Model::ExportToS3Task::WithS3Bucket
ExportToS3Task & WithS3Bucket(Aws::String &&value)
Definition: ExportToS3Task.h:160
ContainerFormat.h
Aws::EC2::Model::ExportToS3Task::operator=
ExportToS3Task & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ExportToS3Task::WithDiskImageFormat
ExportToS3Task & WithDiskImageFormat(DiskImageFormat &&value)
Definition: ExportToS3Task.h:110
Aws::EC2::Model::ExportToS3Task::ContainerFormatHasBeenSet
bool ContainerFormatHasBeenSet() const
Definition: ExportToS3Task.h:55
Aws::EC2::Model::ExportToS3Task::SetDiskImageFormat
void SetDiskImageFormat(DiskImageFormat &&value)
Definition: ExportToS3Task.h:100
Aws::EC2::Model::ExportToS3Task::S3KeyHasBeenSet
bool S3KeyHasBeenSet() const
Definition: ExportToS3Task.h:178
AWSStreamFwd.h
Aws::EC2::Model::ExportToS3Task::GetContainerFormat
const ContainerFormat & GetContainerFormat() const
Definition: ExportToS3Task.h:49
Aws::EC2::Model::ExportToS3Task::WithS3Key
ExportToS3Task & WithS3Key(const Aws::String &value)
Definition: ExportToS3Task.h:198
Aws::EC2::Model::ExportToS3Task::WithDiskImageFormat
ExportToS3Task & WithDiskImageFormat(const DiskImageFormat &value)
Definition: ExportToS3Task.h:105
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ExportToS3Task::WithS3Key
ExportToS3Task & WithS3Key(const char *value)
Definition: ExportToS3Task.h:208
Aws::EC2::Model::ExportToS3Task::WithContainerFormat
ExportToS3Task & WithContainerFormat(const ContainerFormat &value)
Definition: ExportToS3Task.h:73
Aws::EC2::Model::ExportToS3Task
Definition: ExportToS3Task.h:35
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ExportToS3Task::SetS3Key
void SetS3Key(const Aws::String &value)
Definition: ExportToS3Task.h:183
Aws::EC2::Model::DiskImageFormat
DiskImageFormat
Definition: DiskImageFormat.h:17
Aws::EC2::Model::ExportToS3Task::GetS3Key
const Aws::String & GetS3Key() const
Definition: ExportToS3Task.h:173
Aws::EC2::Model::ExportToS3Task::SetS3Bucket
void SetS3Bucket(const Aws::String &value)
Definition: ExportToS3Task.h:132
AWSString.h
Aws::EC2::Model::ContainerFormat
ContainerFormat
Definition: ContainerFormat.h:17
Aws::EC2::Model::ExportToS3Task::WithS3Bucket
ExportToS3Task & WithS3Bucket(const Aws::String &value)
Definition: ExportToS3Task.h:153
Aws::EC2::Model::ExportToS3Task::SetS3Key
void SetS3Key(const char *value)
Definition: ExportToS3Task.h:193
Aws::EC2::Model::ExportToS3Task::WithS3Bucket
ExportToS3Task & WithS3Bucket(const char *value)
Definition: ExportToS3Task.h:167
Aws::EC2::Model::ExportToS3Task::WithContainerFormat
ExportToS3Task & WithContainerFormat(ContainerFormat &&value)
Definition: ExportToS3Task.h:79
Aws::EC2::Model::ExportToS3Task::SetS3Bucket
void SetS3Bucket(const char *value)
Definition: ExportToS3Task.h:146
Aws::EC2::Model::ExportToS3Task::ExportToS3Task
ExportToS3Task(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ExportToS3Task::DiskImageFormatHasBeenSet
bool DiskImageFormatHasBeenSet() const
Definition: ExportToS3Task.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ExportToS3Task::SetS3Bucket
void SetS3Bucket(Aws::String &&value)
Definition: ExportToS3Task.h:139
Aws::EC2::Model::ExportToS3Task::GetDiskImageFormat
const DiskImageFormat & GetDiskImageFormat() const
Definition: ExportToS3Task.h:85
Aws::EC2::Model::ExportToS3Task::SetContainerFormat
void SetContainerFormat(const ContainerFormat &value)
Definition: ExportToS3Task.h:61
Aws::EC2::Model::ExportToS3Task::WithS3Key
ExportToS3Task & WithS3Key(Aws::String &&value)
Definition: ExportToS3Task.h:203
Aws::EC2::Model::ExportToS3Task::SetS3Key
void SetS3Key(Aws::String &&value)
Definition: ExportToS3Task.h:188
Aws::EC2::Model::ExportToS3Task::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
DiskImageFormat.h
EC2_EXPORTS.h