183 lines
6.0 KiB
C++
183 lines
6.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/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/ec2/model/ResponseMetadata.h>
|
|
#include <aws/ec2/model/CreateVolumePermission.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 DescribeSnapshotAttributeResponse
|
|
{
|
|
public:
|
|
DescribeSnapshotAttributeResponse();
|
|
DescribeSnapshotAttributeResponse(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
|
|
DescribeSnapshotAttributeResponse& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
|
|
|
|
|
|
/**
|
|
* <p>The users and groups that have the permissions for creating volumes from the
|
|
* snapshot.</p>
|
|
*/
|
|
inline const Aws::Vector<CreateVolumePermission>& GetCreateVolumePermissions() const{ return m_createVolumePermissions; }
|
|
|
|
/**
|
|
* <p>The users and groups that have the permissions for creating volumes from the
|
|
* snapshot.</p>
|
|
*/
|
|
inline void SetCreateVolumePermissions(const Aws::Vector<CreateVolumePermission>& value) { m_createVolumePermissions = value; }
|
|
|
|
/**
|
|
* <p>The users and groups that have the permissions for creating volumes from the
|
|
* snapshot.</p>
|
|
*/
|
|
inline void SetCreateVolumePermissions(Aws::Vector<CreateVolumePermission>&& value) { m_createVolumePermissions = std::move(value); }
|
|
|
|
/**
|
|
* <p>The users and groups that have the permissions for creating volumes from the
|
|
* snapshot.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& WithCreateVolumePermissions(const Aws::Vector<CreateVolumePermission>& value) { SetCreateVolumePermissions(value); return *this;}
|
|
|
|
/**
|
|
* <p>The users and groups that have the permissions for creating volumes from the
|
|
* snapshot.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& WithCreateVolumePermissions(Aws::Vector<CreateVolumePermission>&& value) { SetCreateVolumePermissions(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The users and groups that have the permissions for creating volumes from the
|
|
* snapshot.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& AddCreateVolumePermissions(const CreateVolumePermission& value) { m_createVolumePermissions.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The users and groups that have the permissions for creating volumes from the
|
|
* snapshot.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& AddCreateVolumePermissions(CreateVolumePermission&& value) { m_createVolumePermissions.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The product codes.</p>
|
|
*/
|
|
inline const Aws::Vector<ProductCode>& GetProductCodes() const{ return m_productCodes; }
|
|
|
|
/**
|
|
* <p>The product codes.</p>
|
|
*/
|
|
inline void SetProductCodes(const Aws::Vector<ProductCode>& value) { m_productCodes = value; }
|
|
|
|
/**
|
|
* <p>The product codes.</p>
|
|
*/
|
|
inline void SetProductCodes(Aws::Vector<ProductCode>&& value) { m_productCodes = std::move(value); }
|
|
|
|
/**
|
|
* <p>The product codes.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& WithProductCodes(const Aws::Vector<ProductCode>& value) { SetProductCodes(value); return *this;}
|
|
|
|
/**
|
|
* <p>The product codes.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& WithProductCodes(Aws::Vector<ProductCode>&& value) { SetProductCodes(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The product codes.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& AddProductCodes(const ProductCode& value) { m_productCodes.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The product codes.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& AddProductCodes(ProductCode&& value) { m_productCodes.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The ID of the EBS snapshot.</p>
|
|
*/
|
|
inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
|
|
|
|
/**
|
|
* <p>The ID of the EBS snapshot.</p>
|
|
*/
|
|
inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the EBS snapshot.</p>
|
|
*/
|
|
inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the EBS snapshot.</p>
|
|
*/
|
|
inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the EBS snapshot.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the EBS snapshot.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the EBS snapshot.</p>
|
|
*/
|
|
inline DescribeSnapshotAttributeResponse& WithSnapshotId(const char* value) { SetSnapshotId(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 DescribeSnapshotAttributeResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
|
|
|
|
|
|
inline DescribeSnapshotAttributeResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::Vector<CreateVolumePermission> m_createVolumePermissions;
|
|
|
|
Aws::Vector<ProductCode> m_productCodes;
|
|
|
|
Aws::String m_snapshotId;
|
|
|
|
ResponseMetadata m_responseMetadata;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EC2
|
|
} // namespace Aws
|