AWS SDK for C++  0.12.9
AWS SDK for C++
DiskImage.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:
42  DiskImage();
43  DiskImage(const Aws::Utils::Xml::XmlNode& xmlNode);
44  DiskImage& 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 DiskImageDetail& GetImage() const{ return m_image; }
53 
57  inline void SetImage(const DiskImageDetail& value) { m_imageHasBeenSet = true; m_image = value; }
58 
62  inline void SetImage(DiskImageDetail&& value) { m_imageHasBeenSet = true; m_image = value; }
63 
67  inline DiskImage& WithImage(const DiskImageDetail& value) { SetImage(value); return *this;}
68 
72  inline DiskImage& WithImage(DiskImageDetail&& value) { SetImage(value); return *this;}
73 
77  inline const Aws::String& GetDescription() const{ return m_description; }
78 
82  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 
87  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 
92  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
93 
97  inline DiskImage& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
98 
102  inline DiskImage& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
103 
107  inline DiskImage& WithDescription(const char* value) { SetDescription(value); return *this;}
108 
112  inline const VolumeDetail& GetVolume() const{ return m_volume; }
113 
117  inline void SetVolume(const VolumeDetail& value) { m_volumeHasBeenSet = true; m_volume = value; }
118 
122  inline void SetVolume(VolumeDetail&& value) { m_volumeHasBeenSet = true; m_volume = value; }
123 
127  inline DiskImage& WithVolume(const VolumeDetail& value) { SetVolume(value); return *this;}
128 
132  inline DiskImage& WithVolume(VolumeDetail&& value) { SetVolume(value); return *this;}
133 
134  private:
135  DiskImageDetail m_image;
136  bool m_imageHasBeenSet;
137  Aws::String m_description;
138  bool m_descriptionHasBeenSet;
139  VolumeDetail m_volume;
140  bool m_volumeHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace EC2
145 } // namespace Aws
const Aws::String & GetDescription() const
Definition: DiskImage.h:77
DiskImage & WithImage(const DiskImageDetail &value)
Definition: DiskImage.h:67
const VolumeDetail & GetVolume() const
Definition: DiskImage.h:112
void SetImage(const DiskImageDetail &value)
Definition: DiskImage.h:57
DiskImage & WithDescription(const char *value)
Definition: DiskImage.h:107
DiskImage & WithDescription(Aws::String &&value)
Definition: DiskImage.h:102
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetDescription(const char *value)
Definition: DiskImage.h:92
void SetDescription(Aws::String &&value)
Definition: DiskImage.h:87
DiskImage & WithImage(DiskImageDetail &&value)
Definition: DiskImage.h:72
const DiskImageDetail & GetImage() const
Definition: DiskImage.h:52
DiskImage & WithDescription(const Aws::String &value)
Definition: DiskImage.h:97
void SetVolume(const VolumeDetail &value)
Definition: DiskImage.h:117
void SetDescription(const Aws::String &value)
Definition: DiskImage.h:82
DiskImage & WithVolume(const VolumeDetail &value)
Definition: DiskImage.h:127
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetVolume(VolumeDetail &&value)
Definition: DiskImage.h:122
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
DiskImage & WithVolume(VolumeDetail &&value)
Definition: DiskImage.h:132
void SetImage(DiskImageDetail &&value)
Definition: DiskImage.h:62
JSON (JavaScript Object Notation).