AWS SDK for C++  0.14.3
AWS SDK for C++
ExportToS3TaskSpecification.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  ExportToS3TaskSpecification& 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 ExportToS3TaskSpecification& WithDiskImageFormat(const DiskImageFormat& value) { SetDiskImageFormat(value); return *this;}
68 
72  inline ExportToS3TaskSpecification& 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 ExportToS3TaskSpecification& WithContainerFormat(const ContainerFormat& value) { SetContainerFormat(value); return *this;}
97 
102  inline ExportToS3TaskSpecification& 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 ExportToS3TaskSpecification& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
138 
144  inline ExportToS3TaskSpecification& WithS3Bucket(Aws::String&& value) { SetS3Bucket(value); return *this;}
145 
151  inline ExportToS3TaskSpecification& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
152 
157  inline const Aws::String& GetS3Prefix() const{ return m_s3Prefix; }
158 
163  inline void SetS3Prefix(const Aws::String& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = value; }
164 
169  inline void SetS3Prefix(Aws::String&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = value; }
170 
175  inline void SetS3Prefix(const char* value) { m_s3PrefixHasBeenSet = true; m_s3Prefix.assign(value); }
176 
181  inline ExportToS3TaskSpecification& WithS3Prefix(const Aws::String& value) { SetS3Prefix(value); return *this;}
182 
187  inline ExportToS3TaskSpecification& WithS3Prefix(Aws::String&& value) { SetS3Prefix(value); return *this;}
188 
193  inline ExportToS3TaskSpecification& WithS3Prefix(const char* value) { SetS3Prefix(value); return *this;}
194 
195  private:
196  DiskImageFormat m_diskImageFormat;
197  bool m_diskImageFormatHasBeenSet;
198  ContainerFormat m_containerFormat;
199  bool m_containerFormatHasBeenSet;
200  Aws::String m_s3Bucket;
201  bool m_s3BucketHasBeenSet;
202  Aws::String m_s3Prefix;
203  bool m_s3PrefixHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace EC2
208 } // namespace Aws
ExportToS3TaskSpecification & WithContainerFormat(const ContainerFormat &value)
void SetDiskImageFormat(const DiskImageFormat &value)
void SetContainerFormat(const ContainerFormat &value)
ExportToS3TaskSpecification & WithS3Bucket(const Aws::String &value)
ExportToS3TaskSpecification & WithS3Prefix(Aws::String &&value)
ExportToS3TaskSpecification & WithS3Prefix(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ExportToS3TaskSpecification & WithS3Bucket(const char *value)
ExportToS3TaskSpecification & WithDiskImageFormat(DiskImageFormat &&value)
ExportToS3TaskSpecification & WithS3Prefix(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ExportToS3TaskSpecification & WithContainerFormat(ContainerFormat &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
ExportToS3TaskSpecification & WithS3Bucket(Aws::String &&value)
ExportToS3TaskSpecification & WithDiskImageFormat(const DiskImageFormat &value)
JSON (JavaScript Object Notation).