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/AttachVolumeResponse.h

254 lines
7.1 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/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ec2/model/VolumeAttachmentState.h>
#include <aws/ec2/model/ResponseMetadata.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Xml
{
class XmlDocument;
} // namespace Xml
} // namespace Utils
namespace EC2
{
namespace Model
{
/**
* <p>Describes volume attachment details.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeAttachment">AWS
* API Reference</a></p>
*/
class AWS_EC2_API AttachVolumeResponse
{
public:
AttachVolumeResponse();
AttachVolumeResponse(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
AttachVolumeResponse& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
/**
* <p>The time stamp when the attachment initiated.</p>
*/
inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; }
/**
* <p>The time stamp when the attachment initiated.</p>
*/
inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTime = value; }
/**
* <p>The time stamp when the attachment initiated.</p>
*/
inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTime = std::move(value); }
/**
* <p>The time stamp when the attachment initiated.</p>
*/
inline AttachVolumeResponse& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
/**
* <p>The time stamp when the attachment initiated.</p>
*/
inline AttachVolumeResponse& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;}
/**
* <p>The device name.</p>
*/
inline const Aws::String& GetDevice() const{ return m_device; }
/**
* <p>The device name.</p>
*/
inline void SetDevice(const Aws::String& value) { m_device = value; }
/**
* <p>The device name.</p>
*/
inline void SetDevice(Aws::String&& value) { m_device = std::move(value); }
/**
* <p>The device name.</p>
*/
inline void SetDevice(const char* value) { m_device.assign(value); }
/**
* <p>The device name.</p>
*/
inline AttachVolumeResponse& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
/**
* <p>The device name.</p>
*/
inline AttachVolumeResponse& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
/**
* <p>The device name.</p>
*/
inline AttachVolumeResponse& WithDevice(const char* value) { SetDevice(value); return *this;}
/**
* <p>The ID of the instance.</p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The ID of the instance.</p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; }
/**
* <p>The ID of the instance.</p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); }
/**
* <p>The ID of the instance.</p>
*/
inline void SetInstanceId(const char* value) { m_instanceId.assign(value); }
/**
* <p>The ID of the instance.</p>
*/
inline AttachVolumeResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The ID of the instance.</p>
*/
inline AttachVolumeResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The ID of the instance.</p>
*/
inline AttachVolumeResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
/**
* <p>The attachment state of the volume.</p>
*/
inline const VolumeAttachmentState& GetState() const{ return m_state; }
/**
* <p>The attachment state of the volume.</p>
*/
inline void SetState(const VolumeAttachmentState& value) { m_state = value; }
/**
* <p>The attachment state of the volume.</p>
*/
inline void SetState(VolumeAttachmentState&& value) { m_state = std::move(value); }
/**
* <p>The attachment state of the volume.</p>
*/
inline AttachVolumeResponse& WithState(const VolumeAttachmentState& value) { SetState(value); return *this;}
/**
* <p>The attachment state of the volume.</p>
*/
inline AttachVolumeResponse& WithState(VolumeAttachmentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The ID of the volume.</p>
*/
inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
/**
* <p>The ID of the volume.</p>
*/
inline void SetVolumeId(const Aws::String& value) { m_volumeId = value; }
/**
* <p>The ID of the volume.</p>
*/
inline void SetVolumeId(Aws::String&& value) { m_volumeId = std::move(value); }
/**
* <p>The ID of the volume.</p>
*/
inline void SetVolumeId(const char* value) { m_volumeId.assign(value); }
/**
* <p>The ID of the volume.</p>
*/
inline AttachVolumeResponse& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
/**
* <p>The ID of the volume.</p>
*/
inline AttachVolumeResponse& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
/**
* <p>The ID of the volume.</p>
*/
inline AttachVolumeResponse& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
/**
* <p>Indicates whether the EBS volume is deleted on instance termination.</p>
*/
inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
/**
* <p>Indicates whether the EBS volume is deleted on instance termination.</p>
*/
inline void SetDeleteOnTermination(bool value) { m_deleteOnTermination = value; }
/**
* <p>Indicates whether the EBS volume is deleted on instance termination.</p>
*/
inline AttachVolumeResponse& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
inline AttachVolumeResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
inline AttachVolumeResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
private:
Aws::Utils::DateTime m_attachTime;
Aws::String m_device;
Aws::String m_instanceId;
VolumeAttachmentState m_state;
Aws::String m_volumeId;
bool m_deleteOnTermination;
ResponseMetadata m_responseMetadata;
};
} // namespace Model
} // namespace EC2
} // namespace Aws