AWS SDK for C++  0.14.3
AWS SDK for C++
BlockDeviceMapping.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace AutoScaling
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  BlockDeviceMapping& 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 Aws::String& GetVirtualName() const{ return m_virtualName; }
52 
56  inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
57 
61  inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; }
62 
66  inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); }
67 
71  inline BlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;}
72 
76  inline BlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(value); return *this;}
77 
81  inline BlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;}
82 
87  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
88 
93  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
94 
99  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
100 
105  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
106 
111  inline BlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
112 
117  inline BlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(value); return *this;}
118 
123  inline BlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
124 
128  inline const Ebs& GetEbs() const{ return m_ebs; }
129 
133  inline void SetEbs(const Ebs& value) { m_ebsHasBeenSet = true; m_ebs = value; }
134 
138  inline void SetEbs(Ebs&& value) { m_ebsHasBeenSet = true; m_ebs = value; }
139 
143  inline BlockDeviceMapping& WithEbs(const Ebs& value) { SetEbs(value); return *this;}
144 
148  inline BlockDeviceMapping& WithEbs(Ebs&& value) { SetEbs(value); return *this;}
149 
155  inline bool GetNoDevice() const{ return m_noDevice; }
156 
162  inline void SetNoDevice(bool value) { m_noDeviceHasBeenSet = true; m_noDevice = value; }
163 
169  inline BlockDeviceMapping& WithNoDevice(bool value) { SetNoDevice(value); return *this;}
170 
171  private:
172  Aws::String m_virtualName;
173  bool m_virtualNameHasBeenSet;
174  Aws::String m_deviceName;
175  bool m_deviceNameHasBeenSet;
176  Ebs m_ebs;
177  bool m_ebsHasBeenSet;
178  bool m_noDevice;
179  bool m_noDeviceHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace AutoScaling
184 } // namespace Aws
const Aws::String & GetDeviceName() const
void SetDeviceName(const Aws::String &value)
BlockDeviceMapping & WithDeviceName(const char *value)
BlockDeviceMapping & WithEbs(const Ebs &value)
BlockDeviceMapping & WithNoDevice(bool value)
BlockDeviceMapping & WithVirtualName(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
BlockDeviceMapping & WithVirtualName(const Aws::String &value)
BlockDeviceMapping & WithDeviceName(Aws::String &&value)
BlockDeviceMapping & WithEbs(Ebs &&value)
BlockDeviceMapping & WithVirtualName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetVirtualName(const Aws::String &value)
#define AWS_AUTOSCALING_API
BlockDeviceMapping & WithDeviceName(const Aws::String &value)
JSON (JavaScript Object Notation).
const Aws::String & GetVirtualName() const