AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 ContainerFormat GetContainerFormat() const { return m_containerFormat; }
51 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
52 inline void SetContainerFormat(ContainerFormat value) { m_containerFormatHasBeenSet = true; m_containerFormat = value; }
55
57
60 inline DiskImageFormat GetDiskImageFormat() const { return m_diskImageFormat; }
61 inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
62 inline void SetDiskImageFormat(DiskImageFormat value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
65
67
75 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
76 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
77 template<typename S3BucketT = Aws::String>
78 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
79 template<typename S3BucketT = Aws::String>
80 ExportToS3Task& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
82
84
87 inline const Aws::String& GetS3Key() const { return m_s3Key; }
88 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
89 template<typename S3KeyT = Aws::String>
90 void SetS3Key(S3KeyT&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::forward<S3KeyT>(value); }
91 template<typename S3KeyT = Aws::String>
92 ExportToS3Task& WithS3Key(S3KeyT&& value) { SetS3Key(std::forward<S3KeyT>(value)); return *this;}
94 private:
95
97 bool m_containerFormatHasBeenSet = false;
98
100 bool m_diskImageFormatHasBeenSet = false;
101
102 Aws::String m_s3Bucket;
103 bool m_s3BucketHasBeenSet = false;
104
105 Aws::String m_s3Key;
106 bool m_s3KeyHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
ExportToS3Task & WithS3Key(S3KeyT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetContainerFormat(ContainerFormat value)
void SetS3Key(S3KeyT &&value)
DiskImageFormat GetDiskImageFormat() const
ExportToS3Task & WithDiskImageFormat(DiskImageFormat value)
ContainerFormat GetContainerFormat() const
AWS_EC2_API ExportToS3Task & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ExportToS3Task()=default
ExportToS3Task & WithS3Bucket(S3BucketT &&value)
AWS_EC2_API ExportToS3Task(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportToS3Task & WithContainerFormat(ContainerFormat value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetS3Bucket() const
const Aws::String & GetS3Key() const
void SetS3Bucket(S3BucketT &&value)
void SetDiskImageFormat(DiskImageFormat value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream