This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceBlockDeviceMapping.h

140 lines
4.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ec2/model/EbsInstanceBlockDevice.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace EC2
{
namespace Model
{
/**
* <p>Describes a block device mapping.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceBlockDeviceMapping">AWS
* API Reference</a></p>
*/
class AWS_EC2_API InstanceBlockDeviceMapping
{
public:
InstanceBlockDeviceMapping();
InstanceBlockDeviceMapping(const Aws::Utils::Xml::XmlNode& xmlNode);
InstanceBlockDeviceMapping& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The device name (for example, <code>/dev/sdh</code> or
* <code>xvdh</code>).</p>
*/
inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
/**
* <p>The device name (for example, <code>/dev/sdh</code> or
* <code>xvdh</code>).</p>
*/
inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
/**
* <p>The device name (for example, <code>/dev/sdh</code> or
* <code>xvdh</code>).</p>
*/
inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
/**
* <p>The device name (for example, <code>/dev/sdh</code> or
* <code>xvdh</code>).</p>
*/
inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
/**
* <p>The device name (for example, <code>/dev/sdh</code> or
* <code>xvdh</code>).</p>
*/
inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
/**
* <p>The device name (for example, <code>/dev/sdh</code> or
* <code>xvdh</code>).</p>
*/
inline InstanceBlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
/**
* <p>The device name (for example, <code>/dev/sdh</code> or
* <code>xvdh</code>).</p>
*/
inline InstanceBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
/**
* <p>The device name (for example, <code>/dev/sdh</code> or
* <code>xvdh</code>).</p>
*/
inline InstanceBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
/**
* <p>Parameters used to automatically set up EBS volumes when the instance is
* launched.</p>
*/
inline const EbsInstanceBlockDevice& GetEbs() const{ return m_ebs; }
/**
* <p>Parameters used to automatically set up EBS volumes when the instance is
* launched.</p>
*/
inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; }
/**
* <p>Parameters used to automatically set up EBS volumes when the instance is
* launched.</p>
*/
inline void SetEbs(const EbsInstanceBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; }
/**
* <p>Parameters used to automatically set up EBS volumes when the instance is
* launched.</p>
*/
inline void SetEbs(EbsInstanceBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); }
/**
* <p>Parameters used to automatically set up EBS volumes when the instance is
* launched.</p>
*/
inline InstanceBlockDeviceMapping& WithEbs(const EbsInstanceBlockDevice& value) { SetEbs(value); return *this;}
/**
* <p>Parameters used to automatically set up EBS volumes when the instance is
* launched.</p>
*/
inline InstanceBlockDeviceMapping& WithEbs(EbsInstanceBlockDevice&& value) { SetEbs(std::move(value)); return *this;}
private:
Aws::String m_deviceName;
bool m_deviceNameHasBeenSet;
EbsInstanceBlockDevice m_ebs;
bool m_ebsHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws