AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ExportToS3TaskSpecification.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/DiskImageFormat.h>
10#include <aws/ec2/model/ContainerFormat.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
34 {
35 public:
36 AWS_EC2_API ExportToS3TaskSpecification() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline DiskImageFormat GetDiskImageFormat() const { return m_diskImageFormat; }
49 inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
50 inline void SetDiskImageFormat(DiskImageFormat value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
53
55
59 inline ContainerFormat GetContainerFormat() const { return m_containerFormat; }
60 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
61 inline void SetContainerFormat(ContainerFormat value) { m_containerFormatHasBeenSet = true; m_containerFormat = value; }
64
66
74 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
75 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
76 template<typename S3BucketT = Aws::String>
77 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
78 template<typename S3BucketT = Aws::String>
79 ExportToS3TaskSpecification& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
81
83
87 inline const Aws::String& GetS3Prefix() const { return m_s3Prefix; }
88 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
89 template<typename S3PrefixT = Aws::String>
90 void SetS3Prefix(S3PrefixT&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = std::forward<S3PrefixT>(value); }
91 template<typename S3PrefixT = Aws::String>
92 ExportToS3TaskSpecification& WithS3Prefix(S3PrefixT&& value) { SetS3Prefix(std::forward<S3PrefixT>(value)); return *this;}
94 private:
95
97 bool m_diskImageFormatHasBeenSet = false;
98
100 bool m_containerFormatHasBeenSet = false;
101
102 Aws::String m_s3Bucket;
103 bool m_s3BucketHasBeenSet = false;
104
105 Aws::String m_s3Prefix;
106 bool m_s3PrefixHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
ExportToS3TaskSpecification & WithContainerFormat(ContainerFormat value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API ExportToS3TaskSpecification()=default
ExportToS3TaskSpecification & WithS3Prefix(S3PrefixT &&value)
ExportToS3TaskSpecification & WithDiskImageFormat(DiskImageFormat value)
AWS_EC2_API ExportToS3TaskSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ExportToS3TaskSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportToS3TaskSpecification & WithS3Bucket(S3BucketT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream