AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeSnapshotAttributeResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlDocument;
25 } // namespace Xml
26 } // namespace Utils
27 namespace EC2
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
43  inline const Aws::Vector<CreateVolumePermission>& GetCreateVolumePermissions() const{ return m_createVolumePermissions; }
44 
49  inline void SetCreateVolumePermissions(const Aws::Vector<CreateVolumePermission>& value) { m_createVolumePermissions = value; }
50 
55  inline void SetCreateVolumePermissions(Aws::Vector<CreateVolumePermission>&& value) { m_createVolumePermissions = std::move(value); }
56 
61  inline DescribeSnapshotAttributeResponse& WithCreateVolumePermissions(const Aws::Vector<CreateVolumePermission>& value) { SetCreateVolumePermissions(value); return *this;}
62 
67  inline DescribeSnapshotAttributeResponse& WithCreateVolumePermissions(Aws::Vector<CreateVolumePermission>&& value) { SetCreateVolumePermissions(std::move(value)); return *this;}
68 
73  inline DescribeSnapshotAttributeResponse& AddCreateVolumePermissions(const CreateVolumePermission& value) { m_createVolumePermissions.push_back(value); return *this; }
74 
79  inline DescribeSnapshotAttributeResponse& AddCreateVolumePermissions(CreateVolumePermission&& value) { m_createVolumePermissions.push_back(std::move(value)); return *this; }
80 
81 
85  inline const Aws::Vector<ProductCode>& GetProductCodes() const{ return m_productCodes; }
86 
90  inline void SetProductCodes(const Aws::Vector<ProductCode>& value) { m_productCodes = value; }
91 
95  inline void SetProductCodes(Aws::Vector<ProductCode>&& value) { m_productCodes = std::move(value); }
96 
100  inline DescribeSnapshotAttributeResponse& WithProductCodes(const Aws::Vector<ProductCode>& value) { SetProductCodes(value); return *this;}
101 
105  inline DescribeSnapshotAttributeResponse& WithProductCodes(Aws::Vector<ProductCode>&& value) { SetProductCodes(std::move(value)); return *this;}
106 
110  inline DescribeSnapshotAttributeResponse& AddProductCodes(const ProductCode& value) { m_productCodes.push_back(value); return *this; }
111 
115  inline DescribeSnapshotAttributeResponse& AddProductCodes(ProductCode&& value) { m_productCodes.push_back(std::move(value)); return *this; }
116 
117 
121  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
122 
126  inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
127 
131  inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
132 
136  inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
137 
141  inline DescribeSnapshotAttributeResponse& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
142 
146  inline DescribeSnapshotAttributeResponse& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
147 
151  inline DescribeSnapshotAttributeResponse& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
152 
153 
154 
155  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
156 
157 
158  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
159 
160 
161  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
162 
163 
164  inline DescribeSnapshotAttributeResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
165 
166 
167  inline DescribeSnapshotAttributeResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
168 
169  private:
170 
171  Aws::Vector<CreateVolumePermission> m_createVolumePermissions;
172 
173  Aws::Vector<ProductCode> m_productCodes;
174 
175  Aws::String m_snapshotId;
176 
177  ResponseMetadata m_responseMetadata;
178  };
179 
180 } // namespace Model
181 } // namespace EC2
182 } // namespace Aws
Aws::EC2::Model::DescribeSnapshotAttributeResponse::AddProductCodes
DescribeSnapshotAttributeResponse & AddProductCodes(ProductCode &&value)
Definition: DescribeSnapshotAttributeResponse.h:115
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeSnapshotAttributeResponse
Definition: DescribeSnapshotAttributeResponse.h:32
Aws::EC2::Model::DescribeSnapshotAttributeResponse::GetCreateVolumePermissions
const Aws::Vector< CreateVolumePermission > & GetCreateVolumePermissions() const
Definition: DescribeSnapshotAttributeResponse.h:43
Aws::EC2::Model::DescribeSnapshotAttributeResponse::SetCreateVolumePermissions
void SetCreateVolumePermissions(const Aws::Vector< CreateVolumePermission > &value)
Definition: DescribeSnapshotAttributeResponse.h:49
Aws::EC2::Model::ProductCode
Definition: ProductCode.h:33
Aws::EC2::Model::DescribeSnapshotAttributeResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeSnapshotAttributeResponse.h:155
Aws::EC2::Model::DescribeSnapshotAttributeResponse::WithProductCodes
DescribeSnapshotAttributeResponse & WithProductCodes(const Aws::Vector< ProductCode > &value)
Definition: DescribeSnapshotAttributeResponse.h:100
Aws::EC2::Model::DescribeSnapshotAttributeResponse::SetProductCodes
void SetProductCodes(Aws::Vector< ProductCode > &&value)
Definition: DescribeSnapshotAttributeResponse.h:95
ProductCode.h
Aws::EC2::Model::DescribeSnapshotAttributeResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSnapshotAttributeResponse.h:161
CreateVolumePermission.h
Aws::EC2::Model::DescribeSnapshotAttributeResponse::SetCreateVolumePermissions
void SetCreateVolumePermissions(Aws::Vector< CreateVolumePermission > &&value)
Definition: DescribeSnapshotAttributeResponse.h:55
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::DescribeSnapshotAttributeResponse::WithSnapshotId
DescribeSnapshotAttributeResponse & WithSnapshotId(Aws::String &&value)
Definition: DescribeSnapshotAttributeResponse.h:146
Aws::EC2::Model::DescribeSnapshotAttributeResponse::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: DescribeSnapshotAttributeResponse.h:136
Aws::EC2::Model::DescribeSnapshotAttributeResponse::WithProductCodes
DescribeSnapshotAttributeResponse & WithProductCodes(Aws::Vector< ProductCode > &&value)
Definition: DescribeSnapshotAttributeResponse.h:105
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeSnapshotAttributeResponse::WithSnapshotId
DescribeSnapshotAttributeResponse & WithSnapshotId(const char *value)
Definition: DescribeSnapshotAttributeResponse.h:151
AWSVector.h
Aws::EC2::Model::DescribeSnapshotAttributeResponse::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: DescribeSnapshotAttributeResponse.h:126
Aws::EC2::Model::DescribeSnapshotAttributeResponse::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: DescribeSnapshotAttributeResponse.h:121
Aws::EC2::Model::DescribeSnapshotAttributeResponse::AddCreateVolumePermissions
DescribeSnapshotAttributeResponse & AddCreateVolumePermissions(CreateVolumePermission &&value)
Definition: DescribeSnapshotAttributeResponse.h:79
Aws::EC2::Model::DescribeSnapshotAttributeResponse::AddCreateVolumePermissions
DescribeSnapshotAttributeResponse & AddCreateVolumePermissions(const CreateVolumePermission &value)
Definition: DescribeSnapshotAttributeResponse.h:73
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::DescribeSnapshotAttributeResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSnapshotAttributeResponse.h:158
Aws::EC2::Model::DescribeSnapshotAttributeResponse::WithResponseMetadata
DescribeSnapshotAttributeResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSnapshotAttributeResponse.h:167
Aws::EC2::Model::DescribeSnapshotAttributeResponse::SetProductCodes
void SetProductCodes(const Aws::Vector< ProductCode > &value)
Definition: DescribeSnapshotAttributeResponse.h:90
Aws::EC2::Model::CreateVolumePermission
Definition: CreateVolumePermission.h:34
Aws::EC2::Model::DescribeSnapshotAttributeResponse::WithSnapshotId
DescribeSnapshotAttributeResponse & WithSnapshotId(const Aws::String &value)
Definition: DescribeSnapshotAttributeResponse.h:141
Aws::EC2::Model::DescribeSnapshotAttributeResponse::DescribeSnapshotAttributeResponse
DescribeSnapshotAttributeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeSnapshotAttributeResponse::operator=
DescribeSnapshotAttributeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeSnapshotAttributeResponse::DescribeSnapshotAttributeResponse
DescribeSnapshotAttributeResponse()
Aws::EC2::Model::DescribeSnapshotAttributeResponse::GetProductCodes
const Aws::Vector< ProductCode > & GetProductCodes() const
Definition: DescribeSnapshotAttributeResponse.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeSnapshotAttributeResponse::AddProductCodes
DescribeSnapshotAttributeResponse & AddProductCodes(const ProductCode &value)
Definition: DescribeSnapshotAttributeResponse.h:110
Aws::EC2::Model::DescribeSnapshotAttributeResponse::WithCreateVolumePermissions
DescribeSnapshotAttributeResponse & WithCreateVolumePermissions(const Aws::Vector< CreateVolumePermission > &value)
Definition: DescribeSnapshotAttributeResponse.h:61
Aws::EC2::Model::DescribeSnapshotAttributeResponse::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: DescribeSnapshotAttributeResponse.h:131
EC2_EXPORTS.h
Aws::EC2::Model::DescribeSnapshotAttributeResponse::WithCreateVolumePermissions
DescribeSnapshotAttributeResponse & WithCreateVolumePermissions(Aws::Vector< CreateVolumePermission > &&value)
Definition: DescribeSnapshotAttributeResponse.h:67
Aws::EC2::Model::DescribeSnapshotAttributeResponse::WithResponseMetadata
DescribeSnapshotAttributeResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSnapshotAttributeResponse.h:164