AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const DiskImageFormat& GetDiskImageFormat() const{ return m_diskImageFormat; }
49 inline bool DiskImageFormatHasBeenSet() const { return m_diskImageFormatHasBeenSet; }
50 inline void SetDiskImageFormat(const DiskImageFormat& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
51 inline void SetDiskImageFormat(DiskImageFormat&& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = std::move(value); }
53 inline ExportToS3TaskSpecification& WithDiskImageFormat(DiskImageFormat&& value) { SetDiskImageFormat(std::move(value)); return *this;}
55
57
61 inline const ContainerFormat& GetContainerFormat() const{ return m_containerFormat; }
62 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
63 inline void SetContainerFormat(const ContainerFormat& value) { m_containerFormatHasBeenSet = true; m_containerFormat = value; }
64 inline void SetContainerFormat(ContainerFormat&& value) { m_containerFormatHasBeenSet = true; m_containerFormat = std::move(value); }
66 inline ExportToS3TaskSpecification& WithContainerFormat(ContainerFormat&& value) { SetContainerFormat(std::move(value)); return *this;}
68
70
78 inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
79 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
80 inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
81 inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
82 inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
83 inline ExportToS3TaskSpecification& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
84 inline ExportToS3TaskSpecification& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
85 inline ExportToS3TaskSpecification& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
87
89
93 inline const Aws::String& GetS3Prefix() const{ return m_s3Prefix; }
94 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
95 inline void SetS3Prefix(const Aws::String& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = value; }
96 inline void SetS3Prefix(Aws::String&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = std::move(value); }
97 inline void SetS3Prefix(const char* value) { m_s3PrefixHasBeenSet = true; m_s3Prefix.assign(value); }
98 inline ExportToS3TaskSpecification& WithS3Prefix(const Aws::String& value) { SetS3Prefix(value); return *this;}
99 inline ExportToS3TaskSpecification& WithS3Prefix(Aws::String&& value) { SetS3Prefix(std::move(value)); return *this;}
100 inline ExportToS3TaskSpecification& WithS3Prefix(const char* value) { SetS3Prefix(value); return *this;}
102 private:
103
104 DiskImageFormat m_diskImageFormat;
105 bool m_diskImageFormatHasBeenSet = false;
106
107 ContainerFormat m_containerFormat;
108 bool m_containerFormatHasBeenSet = false;
109
110 Aws::String m_s3Bucket;
111 bool m_s3BucketHasBeenSet = false;
112
113 Aws::String m_s3Prefix;
114 bool m_s3PrefixHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace EC2
119} // namespace Aws
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
ExportToS3TaskSpecification & WithS3Prefix(const char *value)
ExportToS3TaskSpecification & WithS3Bucket(const Aws::String &value)
ExportToS3TaskSpecification & WithContainerFormat(ContainerFormat &&value)
void SetContainerFormat(const ContainerFormat &value)
ExportToS3TaskSpecification & WithDiskImageFormat(DiskImageFormat &&value)
void SetDiskImageFormat(const DiskImageFormat &value)
AWS_EC2_API ExportToS3TaskSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportToS3TaskSpecification & WithS3Bucket(Aws::String &&value)
ExportToS3TaskSpecification & WithDiskImageFormat(const DiskImageFormat &value)
AWS_EC2_API ExportToS3TaskSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
ExportToS3TaskSpecification & WithS3Prefix(Aws::String &&value)
ExportToS3TaskSpecification & WithS3Bucket(const char *value)
ExportToS3TaskSpecification & WithS3Prefix(const Aws::String &value)
ExportToS3TaskSpecification & WithContainerFormat(const ContainerFormat &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream