AWS SDK for C++  0.12.9
AWS SDK for C++
DiskImageDetail.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  DiskImageDetail& 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 DiskImageDetail& WithFormat(const DiskImageFormat& value) { SetFormat(value); return *this;}
67 
71  inline DiskImageDetail& WithFormat(DiskImageFormat&& value) { SetFormat(value); return *this;}
72 
76  inline long long GetBytes() const{ return m_bytes; }
77 
81  inline void SetBytes(long long value) { m_bytesHasBeenSet = true; m_bytes = value; }
82 
86  inline DiskImageDetail& WithBytes(long long value) { SetBytes(value); return *this;}
87 
100  inline const Aws::String& GetImportManifestUrl() const{ return m_importManifestUrl; }
101 
114  inline void SetImportManifestUrl(const Aws::String& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = value; }
115 
128  inline void SetImportManifestUrl(Aws::String&& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = value; }
129 
142  inline void SetImportManifestUrl(const char* value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl.assign(value); }
143 
156  inline DiskImageDetail& WithImportManifestUrl(const Aws::String& value) { SetImportManifestUrl(value); return *this;}
157 
170  inline DiskImageDetail& WithImportManifestUrl(Aws::String&& value) { SetImportManifestUrl(value); return *this;}
171 
184  inline DiskImageDetail& WithImportManifestUrl(const char* value) { SetImportManifestUrl(value); return *this;}
185 
186  private:
187  DiskImageFormat m_format;
188  bool m_formatHasBeenSet;
189  long long m_bytes;
190  bool m_bytesHasBeenSet;
191  Aws::String m_importManifestUrl;
192  bool m_importManifestUrlHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace EC2
197 } // namespace Aws
void SetImportManifestUrl(const Aws::String &value)
const DiskImageFormat & GetFormat() const
void SetBytes(long long value)
void SetFormat(const DiskImageFormat &value)
DiskImageDetail & WithImportManifestUrl(const Aws::String &value)
DiskImageDetail & WithBytes(long long value)
DiskImageDetail & WithImportManifestUrl(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetImportManifestUrl(const char *value)
DiskImageDetail & WithImportManifestUrl(const char *value)
void SetFormat(DiskImageFormat &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetImportManifestUrl(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
const Aws::String & GetImportManifestUrl() const
JSON (JavaScript Object Notation).
DiskImageDetail & WithFormat(const DiskImageFormat &value)
DiskImageDetail & WithFormat(DiskImageFormat &&value)