AWS SDK for C++  0.12.9
AWS SDK for C++
DiskImageDescription.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace EC2
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  DiskImageDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const DiskImageFormat& GetFormat() const{ return m_format; }
52 
56  inline void SetFormat(const DiskImageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
57 
61  inline void SetFormat(DiskImageFormat&& value) { m_formatHasBeenSet = true; m_format = value; }
62 
66  inline DiskImageDescription& WithFormat(const DiskImageFormat& value) { SetFormat(value); return *this;}
67 
71  inline DiskImageDescription& WithFormat(DiskImageFormat&& value) { SetFormat(value); return *this;}
72 
76  inline long long GetSize() const{ return m_size; }
77 
81  inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
82 
86  inline DiskImageDescription& WithSize(long long value) { SetSize(value); return *this;}
87 
99  inline const Aws::String& GetImportManifestUrl() const{ return m_importManifestUrl; }
100 
112  inline void SetImportManifestUrl(const Aws::String& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = value; }
113 
125  inline void SetImportManifestUrl(Aws::String&& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = value; }
126 
138  inline void SetImportManifestUrl(const char* value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl.assign(value); }
139 
151  inline DiskImageDescription& WithImportManifestUrl(const Aws::String& value) { SetImportManifestUrl(value); return *this;}
152 
164  inline DiskImageDescription& WithImportManifestUrl(Aws::String&& value) { SetImportManifestUrl(value); return *this;}
165 
177  inline DiskImageDescription& WithImportManifestUrl(const char* value) { SetImportManifestUrl(value); return *this;}
178 
182  inline const Aws::String& GetChecksum() const{ return m_checksum; }
183 
187  inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
188 
192  inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = value; }
193 
197  inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
198 
202  inline DiskImageDescription& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
203 
207  inline DiskImageDescription& WithChecksum(Aws::String&& value) { SetChecksum(value); return *this;}
208 
212  inline DiskImageDescription& WithChecksum(const char* value) { SetChecksum(value); return *this;}
213 
214  private:
215  DiskImageFormat m_format;
216  bool m_formatHasBeenSet;
217  long long m_size;
218  bool m_sizeHasBeenSet;
219  Aws::String m_importManifestUrl;
220  bool m_importManifestUrlHasBeenSet;
221  Aws::String m_checksum;
222  bool m_checksumHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace EC2
227 } // namespace Aws
void SetChecksum(const Aws::String &value)
DiskImageDescription & WithSize(long long value)
void SetFormat(const DiskImageFormat &value)
DiskImageDescription & WithImportManifestUrl(const char *value)
DiskImageDescription & WithChecksum(const Aws::String &value)
void SetImportManifestUrl(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
DiskImageDescription & WithFormat(DiskImageFormat &&value)
void SetFormat(DiskImageFormat &&value)
DiskImageDescription & WithChecksum(Aws::String &&value)
void SetImportManifestUrl(Aws::String &&value)
DiskImageDescription & WithChecksum(const char *value)
DiskImageDescription & WithFormat(const DiskImageFormat &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetImportManifestUrl() const
DiskImageDescription & WithImportManifestUrl(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
const DiskImageFormat & GetFormat() const
DiskImageDescription & WithImportManifestUrl(Aws::String &&value)
const Aws::String & GetChecksum() const
JSON (JavaScript Object Notation).