166 lines
5.0 KiB
C++
166 lines
5.0 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/ec2/model/AttributeBooleanValue.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/ec2/model/ResponseMetadata.h>
|
|
#include <aws/ec2/model/ProductCode.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
|
|
{
|
|
class AWS_EC2_API DescribeVolumeAttributeResponse
|
|
{
|
|
public:
|
|
DescribeVolumeAttributeResponse();
|
|
DescribeVolumeAttributeResponse(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
|
|
DescribeVolumeAttributeResponse& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
|
|
|
|
|
|
/**
|
|
* <p>The state of <code>autoEnableIO</code> attribute.</p>
|
|
*/
|
|
inline const AttributeBooleanValue& GetAutoEnableIO() const{ return m_autoEnableIO; }
|
|
|
|
/**
|
|
* <p>The state of <code>autoEnableIO</code> attribute.</p>
|
|
*/
|
|
inline void SetAutoEnableIO(const AttributeBooleanValue& value) { m_autoEnableIO = value; }
|
|
|
|
/**
|
|
* <p>The state of <code>autoEnableIO</code> attribute.</p>
|
|
*/
|
|
inline void SetAutoEnableIO(AttributeBooleanValue&& value) { m_autoEnableIO = std::move(value); }
|
|
|
|
/**
|
|
* <p>The state of <code>autoEnableIO</code> attribute.</p>
|
|
*/
|
|
inline DescribeVolumeAttributeResponse& WithAutoEnableIO(const AttributeBooleanValue& value) { SetAutoEnableIO(value); return *this;}
|
|
|
|
/**
|
|
* <p>The state of <code>autoEnableIO</code> attribute.</p>
|
|
*/
|
|
inline DescribeVolumeAttributeResponse& WithAutoEnableIO(AttributeBooleanValue&& value) { SetAutoEnableIO(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of product codes.</p>
|
|
*/
|
|
inline const Aws::Vector<ProductCode>& GetProductCodes() const{ return m_productCodes; }
|
|
|
|
/**
|
|
* <p>A list of product codes.</p>
|
|
*/
|
|
inline void SetProductCodes(const Aws::Vector<ProductCode>& value) { m_productCodes = value; }
|
|
|
|
/**
|
|
* <p>A list of product codes.</p>
|
|
*/
|
|
inline void SetProductCodes(Aws::Vector<ProductCode>&& value) { m_productCodes = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of product codes.</p>
|
|
*/
|
|
inline DescribeVolumeAttributeResponse& WithProductCodes(const Aws::Vector<ProductCode>& value) { SetProductCodes(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of product codes.</p>
|
|
*/
|
|
inline DescribeVolumeAttributeResponse& WithProductCodes(Aws::Vector<ProductCode>&& value) { SetProductCodes(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of product codes.</p>
|
|
*/
|
|
inline DescribeVolumeAttributeResponse& AddProductCodes(const ProductCode& value) { m_productCodes.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of product codes.</p>
|
|
*/
|
|
inline DescribeVolumeAttributeResponse& AddProductCodes(ProductCode&& value) { m_productCodes.push_back(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 DescribeVolumeAttributeResponse& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the volume.</p>
|
|
*/
|
|
inline DescribeVolumeAttributeResponse& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the volume.</p>
|
|
*/
|
|
inline DescribeVolumeAttributeResponse& WithVolumeId(const char* value) { SetVolumeId(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 DescribeVolumeAttributeResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
|
|
|
|
|
|
inline DescribeVolumeAttributeResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
AttributeBooleanValue m_autoEnableIO;
|
|
|
|
Aws::Vector<ProductCode> m_productCodes;
|
|
|
|
Aws::String m_volumeId;
|
|
|
|
ResponseMetadata m_responseMetadata;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EC2
|
|
} // namespace Aws
|