AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeSnapshotAttributeResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/ProductCode.h>
12#include <aws/ec2/model/CreateVolumePermission.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
32 {
33 public:
37
38
40
43 inline const Aws::Vector<ProductCode>& GetProductCodes() const{ return m_productCodes; }
44 inline void SetProductCodes(const Aws::Vector<ProductCode>& value) { m_productCodes = value; }
45 inline void SetProductCodes(Aws::Vector<ProductCode>&& value) { m_productCodes = std::move(value); }
48 inline DescribeSnapshotAttributeResponse& AddProductCodes(const ProductCode& value) { m_productCodes.push_back(value); return *this; }
49 inline DescribeSnapshotAttributeResponse& AddProductCodes(ProductCode&& value) { m_productCodes.push_back(std::move(value)); return *this; }
51
53
56 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
57 inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
58 inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
59 inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
60 inline DescribeSnapshotAttributeResponse& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
61 inline DescribeSnapshotAttributeResponse& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
62 inline DescribeSnapshotAttributeResponse& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
64
66
70 inline const Aws::Vector<CreateVolumePermission>& GetCreateVolumePermissions() const{ return m_createVolumePermissions; }
71 inline void SetCreateVolumePermissions(const Aws::Vector<CreateVolumePermission>& value) { m_createVolumePermissions = value; }
72 inline void SetCreateVolumePermissions(Aws::Vector<CreateVolumePermission>&& value) { m_createVolumePermissions = std::move(value); }
75 inline DescribeSnapshotAttributeResponse& AddCreateVolumePermissions(const CreateVolumePermission& value) { m_createVolumePermissions.push_back(value); return *this; }
76 inline DescribeSnapshotAttributeResponse& AddCreateVolumePermissions(CreateVolumePermission&& value) { m_createVolumePermissions.push_back(std::move(value)); return *this; }
78
80
81 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
82 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
83 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
87 private:
88
89 Aws::Vector<ProductCode> m_productCodes;
90
91 Aws::String m_snapshotId;
92
93 Aws::Vector<CreateVolumePermission> m_createVolumePermissions;
94
95 ResponseMetadata m_responseMetadata;
96 };
97
98} // namespace Model
99} // namespace EC2
100} // namespace Aws
DescribeSnapshotAttributeResponse & WithProductCodes(Aws::Vector< ProductCode > &&value)
void SetCreateVolumePermissions(Aws::Vector< CreateVolumePermission > &&value)
DescribeSnapshotAttributeResponse & WithCreateVolumePermissions(Aws::Vector< CreateVolumePermission > &&value)
DescribeSnapshotAttributeResponse & WithResponseMetadata(ResponseMetadata &&value)
AWS_EC2_API DescribeSnapshotAttributeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeSnapshotAttributeResponse & AddProductCodes(ProductCode &&value)
DescribeSnapshotAttributeResponse & AddProductCodes(const ProductCode &value)
void SetCreateVolumePermissions(const Aws::Vector< CreateVolumePermission > &value)
DescribeSnapshotAttributeResponse & WithSnapshotId(const char *value)
DescribeSnapshotAttributeResponse & AddCreateVolumePermissions(const CreateVolumePermission &value)
DescribeSnapshotAttributeResponse & WithProductCodes(const Aws::Vector< ProductCode > &value)
DescribeSnapshotAttributeResponse & WithSnapshotId(const Aws::String &value)
DescribeSnapshotAttributeResponse & WithSnapshotId(Aws::String &&value)
AWS_EC2_API DescribeSnapshotAttributeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeSnapshotAttributeResponse & WithResponseMetadata(const ResponseMetadata &value)
void SetProductCodes(const Aws::Vector< ProductCode > &value)
const Aws::Vector< CreateVolumePermission > & GetCreateVolumePermissions() const
DescribeSnapshotAttributeResponse & AddCreateVolumePermissions(CreateVolumePermission &&value)
DescribeSnapshotAttributeResponse & WithCreateVolumePermissions(const Aws::Vector< CreateVolumePermission > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument