AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ExportToS3Task.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ContainerFormat.h>
11#include <aws/ec2/model/DiskImageFormat.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
32 AWS_EC2_API ExportToS3Task() = default;
33 AWS_EC2_API ExportToS3Task(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline ContainerFormat GetContainerFormat() const { return m_containerFormat; }
45 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
47 m_containerFormatHasBeenSet = true;
48 m_containerFormat = value;
49 }
51 SetContainerFormat(value);
52 return *this;
53 }
55
57
60 inline DiskImageFormat GetDiskImageFormat() const { return m_diskImageFormat; }
61 inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
63 m_diskImageFormatHasBeenSet = true;
64 m_diskImageFormat = value;
65 }
67 SetDiskImageFormat(value);
68 return *this;
69 }
71
73
81 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
82 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
83 template <typename S3BucketT = Aws::String>
84 void SetS3Bucket(S3BucketT&& value) {
85 m_s3BucketHasBeenSet = true;
86 m_s3Bucket = std::forward<S3BucketT>(value);
87 }
88 template <typename S3BucketT = Aws::String>
89 ExportToS3Task& WithS3Bucket(S3BucketT&& value) {
90 SetS3Bucket(std::forward<S3BucketT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetS3Key() const { return m_s3Key; }
100 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
101 template <typename S3KeyT = Aws::String>
102 void SetS3Key(S3KeyT&& value) {
103 m_s3KeyHasBeenSet = true;
104 m_s3Key = std::forward<S3KeyT>(value);
105 }
106 template <typename S3KeyT = Aws::String>
107 ExportToS3Task& WithS3Key(S3KeyT&& value) {
108 SetS3Key(std::forward<S3KeyT>(value));
109 return *this;
110 }
112 private:
113 ContainerFormat m_containerFormat{ContainerFormat::NOT_SET};
114
115 DiskImageFormat m_diskImageFormat{DiskImageFormat::NOT_SET};
116
117 Aws::String m_s3Bucket;
118
119 Aws::String m_s3Key;
120 bool m_containerFormatHasBeenSet = false;
121 bool m_diskImageFormatHasBeenSet = false;
122 bool m_s3BucketHasBeenSet = false;
123 bool m_s3KeyHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace EC2
128} // 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)
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