AWS SDK for C++  0.14.3
AWS SDK for C++
ExportToS3Task.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  ExportToS3Task& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const DiskImageFormat& GetDiskImageFormat() const{ return m_diskImageFormat; }
53 
57  inline void SetDiskImageFormat(const DiskImageFormat& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
58 
62  inline void SetDiskImageFormat(DiskImageFormat&& value) { m_diskImageFormatHasBeenSet = true; m_diskImageFormat = value; }
63 
67  inline ExportToS3Task& WithDiskImageFormat(const DiskImageFormat& value) { SetDiskImageFormat(value); return *this;}
68 
72  inline ExportToS3Task& WithDiskImageFormat(DiskImageFormat&& value) { SetDiskImageFormat(value); return *this;}
73 
78  inline const ContainerFormat& GetContainerFormat() const{ return m_containerFormat; }
79 
84  inline void SetContainerFormat(const ContainerFormat& value) { m_containerFormatHasBeenSet = true; m_containerFormat = value; }
85 
90  inline void SetContainerFormat(ContainerFormat&& value) { m_containerFormatHasBeenSet = true; m_containerFormat = value; }
91 
96  inline ExportToS3Task& WithContainerFormat(const ContainerFormat& value) { SetContainerFormat(value); return *this;}
97 
102  inline ExportToS3Task& WithContainerFormat(ContainerFormat&& value) { SetContainerFormat(value); return *this;}
103 
109  inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
110 
116  inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
117 
123  inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
124 
130  inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
131 
137  inline ExportToS3Task& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
138 
144  inline ExportToS3Task& WithS3Bucket(Aws::String&& value) { SetS3Bucket(value); return *this;}
145 
151  inline ExportToS3Task& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
152 
156  inline const Aws::String& GetS3Key() const{ return m_s3Key; }
157 
161  inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
162 
166  inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
167 
171  inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
172 
176  inline ExportToS3Task& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
177 
181  inline ExportToS3Task& WithS3Key(Aws::String&& value) { SetS3Key(value); return *this;}
182 
186  inline ExportToS3Task& WithS3Key(const char* value) { SetS3Key(value); return *this;}
187 
188  private:
189  DiskImageFormat m_diskImageFormat;
190  bool m_diskImageFormatHasBeenSet;
191  ContainerFormat m_containerFormat;
192  bool m_containerFormatHasBeenSet;
193  Aws::String m_s3Bucket;
194  bool m_s3BucketHasBeenSet;
195  Aws::String m_s3Key;
196  bool m_s3KeyHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace EC2
201 } // namespace Aws
const Aws::String & GetS3Bucket() const
void SetDiskImageFormat(DiskImageFormat &&value)
ExportToS3Task & WithS3Key(const Aws::String &value)
ExportToS3Task & WithDiskImageFormat(DiskImageFormat &&value)
const Aws::String & GetS3Key() const
void SetS3Bucket(Aws::String &&value)
void SetS3Key(Aws::String &&value)
void SetS3Key(const char *value)
ExportToS3Task & WithS3Key(Aws::String &&value)
ExportToS3Task & WithDiskImageFormat(const DiskImageFormat &value)
ExportToS3Task & WithContainerFormat(const ContainerFormat &value)
void SetS3Key(const Aws::String &value)
ExportToS3Task & WithS3Bucket(Aws::String &&value)
void SetContainerFormat(ContainerFormat &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ExportToS3Task & WithS3Key(const char *value)
void SetS3Bucket(const char *value)
void SetContainerFormat(const ContainerFormat &value)
ExportToS3Task & WithS3Bucket(const Aws::String &value)
void SetDiskImageFormat(const DiskImageFormat &value)
ExportToS3Task & WithS3Bucket(const char *value)
ExportToS3Task & WithContainerFormat(ContainerFormat &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
const ContainerFormat & GetContainerFormat() const
const DiskImageFormat & GetDiskImageFormat() const
void SetS3Bucket(const Aws::String &value)
JSON (JavaScript Object Notation).