AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeSnapshotAttributeResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/CreateVolumePermission.h>
11#include <aws/ec2/model/ProductCode.h>
12#include <aws/ec2/model/ResponseMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
28 public:
29 AWS_EC2_API DescribeSnapshotAttributeResponse() = default;
32
34
37 inline const Aws::Vector<ProductCode>& GetProductCodes() const { return m_productCodes; }
38 template <typename ProductCodesT = Aws::Vector<ProductCode>>
39 void SetProductCodes(ProductCodesT&& value) {
40 m_productCodesHasBeenSet = true;
41 m_productCodes = std::forward<ProductCodesT>(value);
42 }
43 template <typename ProductCodesT = Aws::Vector<ProductCode>>
45 SetProductCodes(std::forward<ProductCodesT>(value));
46 return *this;
47 }
48 template <typename ProductCodesT = ProductCode>
50 m_productCodesHasBeenSet = true;
51 m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
61 template <typename SnapshotIdT = Aws::String>
62 void SetSnapshotId(SnapshotIdT&& value) {
63 m_snapshotIdHasBeenSet = true;
64 m_snapshotId = std::forward<SnapshotIdT>(value);
65 }
66 template <typename SnapshotIdT = Aws::String>
68 SetSnapshotId(std::forward<SnapshotIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<CreateVolumePermission>& GetCreateVolumePermissions() const { return m_createVolumePermissions; }
79 template <typename CreateVolumePermissionsT = Aws::Vector<CreateVolumePermission>>
80 void SetCreateVolumePermissions(CreateVolumePermissionsT&& value) {
81 m_createVolumePermissionsHasBeenSet = true;
82 m_createVolumePermissions = std::forward<CreateVolumePermissionsT>(value);
83 }
84 template <typename CreateVolumePermissionsT = Aws::Vector<CreateVolumePermission>>
86 SetCreateVolumePermissions(std::forward<CreateVolumePermissionsT>(value));
87 return *this;
88 }
89 template <typename CreateVolumePermissionsT = CreateVolumePermission>
91 m_createVolumePermissionsHasBeenSet = true;
92 m_createVolumePermissions.emplace_back(std::forward<CreateVolumePermissionsT>(value));
93 return *this;
94 }
96
98
99 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
100 template <typename ResponseMetadataT = ResponseMetadata>
101 void SetResponseMetadata(ResponseMetadataT&& value) {
102 m_responseMetadataHasBeenSet = true;
103 m_responseMetadata = std::forward<ResponseMetadataT>(value);
104 }
105 template <typename ResponseMetadataT = ResponseMetadata>
107 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
108 return *this;
109 }
111 private:
112 Aws::Vector<ProductCode> m_productCodes;
113
114 Aws::String m_snapshotId;
115
116 Aws::Vector<CreateVolumePermission> m_createVolumePermissions;
117
118 ResponseMetadata m_responseMetadata;
119 bool m_productCodesHasBeenSet = false;
120 bool m_snapshotIdHasBeenSet = false;
121 bool m_createVolumePermissionsHasBeenSet = false;
122 bool m_responseMetadataHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
DescribeSnapshotAttributeResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API DescribeSnapshotAttributeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeSnapshotAttributeResponse & AddCreateVolumePermissions(CreateVolumePermissionsT &&value)
DescribeSnapshotAttributeResponse & WithCreateVolumePermissions(CreateVolumePermissionsT &&value)
AWS_EC2_API DescribeSnapshotAttributeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeSnapshotAttributeResponse & WithSnapshotId(SnapshotIdT &&value)
const Aws::Vector< CreateVolumePermission > & GetCreateVolumePermissions() const
DescribeSnapshotAttributeResponse & WithProductCodes(ProductCodesT &&value)
DescribeSnapshotAttributeResponse & AddProductCodes(ProductCodesT &&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