AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExportToS3Task.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/ContainerFormat.h>
10#include <aws/ec2/model/DiskImageFormat.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API ExportToS3Task();
38 AWS_EC2_API ExportToS3Task(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const ContainerFormat& GetContainerFormat() const{ return m_containerFormat; }
51 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
52 inline void SetContainerFormat(const ContainerFormat& value) { m_containerFormatHasBeenSet = true; m_containerFormat = value; }
53 inline void SetContainerFormat(ContainerFormat&& value) { m_containerFormatHasBeenSet = true; m_containerFormat = std::move(value); }
54 inline ExportToS3Task& WithContainerFormat(const ContainerFormat& value) { SetContainerFormat(value); return *this;}
55 inline ExportToS3Task& WithContainerFormat(ContainerFormat&& value) { SetContainerFormat(std::move(value)); return *this;}
57
59
62 inline const DiskImageFormat& GetDiskImageFormat() const{ return m_diskImageFormat; }
63 inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
64 inline void SetDiskImageFormat(const DiskImageFormat& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
65 inline void SetDiskImageFormat(DiskImageFormat&& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = std::move(value); }
66 inline ExportToS3Task& WithDiskImageFormat(const DiskImageFormat& value) { SetDiskImageFormat(value); return *this;}
67 inline ExportToS3Task& WithDiskImageFormat(DiskImageFormat&& value) { SetDiskImageFormat(std::move(value)); return *this;}
69
71
79 inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
80 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
81 inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
82 inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
83 inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
84 inline ExportToS3Task& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
85 inline ExportToS3Task& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
86 inline ExportToS3Task& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
88
90
93 inline const Aws::String& GetS3Key() const{ return m_s3Key; }
94 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
95 inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
96 inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
97 inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
98 inline ExportToS3Task& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
99 inline ExportToS3Task& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
100 inline ExportToS3Task& WithS3Key(const char* value) { SetS3Key(value); return *this;}
102 private:
103
104 ContainerFormat m_containerFormat;
105 bool m_containerFormatHasBeenSet = false;
106
107 DiskImageFormat m_diskImageFormat;
108 bool m_diskImageFormatHasBeenSet = false;
109
110 Aws::String m_s3Bucket;
111 bool m_s3BucketHasBeenSet = false;
112
113 Aws::String m_s3Key;
114 bool m_s3KeyHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace EC2
119} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetS3Bucket(const char *value)
void SetContainerFormat(ContainerFormat &&value)
void SetDiskImageFormat(const DiskImageFormat &value)
ExportToS3Task & WithContainerFormat(const ContainerFormat &value)
ExportToS3Task & WithDiskImageFormat(DiskImageFormat &&value)
const ContainerFormat & GetContainerFormat() const
ExportToS3Task & WithS3Key(Aws::String &&value)
ExportToS3Task & WithS3Key(const char *value)
void SetDiskImageFormat(DiskImageFormat &&value)
ExportToS3Task & WithS3Bucket(const char *value)
void SetContainerFormat(const ContainerFormat &value)
void SetS3Bucket(const Aws::String &value)
AWS_EC2_API ExportToS3Task & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ExportToS3Task(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportToS3Task & WithDiskImageFormat(const DiskImageFormat &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetS3Bucket() const
ExportToS3Task & WithS3Bucket(const Aws::String &value)
ExportToS3Task & WithS3Key(const Aws::String &value)
const Aws::String & GetS3Key() const
const DiskImageFormat & GetDiskImageFormat() const
void SetS3Key(const Aws::String &value)
void SetS3Key(Aws::String &&value)
ExportToS3Task & WithContainerFormat(ContainerFormat &&value)
ExportToS3Task & WithS3Bucket(Aws::String &&value)
void SetS3Bucket(Aws::String &&value)
void SetS3Key(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream