AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeVolumeAttributeResponse.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 
42  inline const AttributeBooleanValue& GetAutoEnableIO() const{ return m_autoEnableIO; }
43 
47  inline void SetAutoEnableIO(const AttributeBooleanValue& value) { m_autoEnableIO = value; }
48 
52  inline void SetAutoEnableIO(AttributeBooleanValue&& value) { m_autoEnableIO = std::move(value); }
53 
57  inline DescribeVolumeAttributeResponse& WithAutoEnableIO(const AttributeBooleanValue& value) { SetAutoEnableIO(value); return *this;}
58 
62  inline DescribeVolumeAttributeResponse& WithAutoEnableIO(AttributeBooleanValue&& value) { SetAutoEnableIO(std::move(value)); return *this;}
63 
64 
68  inline const Aws::Vector<ProductCode>& GetProductCodes() const{ return m_productCodes; }
69 
73  inline void SetProductCodes(const Aws::Vector<ProductCode>& value) { m_productCodes = value; }
74 
78  inline void SetProductCodes(Aws::Vector<ProductCode>&& value) { m_productCodes = std::move(value); }
79 
83  inline DescribeVolumeAttributeResponse& WithProductCodes(const Aws::Vector<ProductCode>& value) { SetProductCodes(value); return *this;}
84 
88  inline DescribeVolumeAttributeResponse& WithProductCodes(Aws::Vector<ProductCode>&& value) { SetProductCodes(std::move(value)); return *this;}
89 
93  inline DescribeVolumeAttributeResponse& AddProductCodes(const ProductCode& value) { m_productCodes.push_back(value); return *this; }
94 
98  inline DescribeVolumeAttributeResponse& AddProductCodes(ProductCode&& value) { m_productCodes.push_back(std::move(value)); return *this; }
99 
100 
104  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
105 
109  inline void SetVolumeId(const Aws::String& value) { m_volumeId = value; }
110 
114  inline void SetVolumeId(Aws::String&& value) { m_volumeId = std::move(value); }
115 
119  inline void SetVolumeId(const char* value) { m_volumeId.assign(value); }
120 
124  inline DescribeVolumeAttributeResponse& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
125 
129  inline DescribeVolumeAttributeResponse& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
130 
134  inline DescribeVolumeAttributeResponse& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
135 
136 
137 
138  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
139 
140 
141  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
142 
143 
144  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
145 
146 
147  inline DescribeVolumeAttributeResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
148 
149 
150  inline DescribeVolumeAttributeResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
151 
152  private:
153 
154  AttributeBooleanValue m_autoEnableIO;
155 
156  Aws::Vector<ProductCode> m_productCodes;
157 
158  Aws::String m_volumeId;
159 
160  ResponseMetadata m_responseMetadata;
161  };
162 
163 } // namespace Model
164 } // namespace EC2
165 } // namespace Aws
Aws::EC2::Model::DescribeVolumeAttributeResponse::GetVolumeId
const Aws::String & GetVolumeId() const
Definition: DescribeVolumeAttributeResponse.h:104
Aws::EC2::Model::DescribeVolumeAttributeResponse::WithResponseMetadata
DescribeVolumeAttributeResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeVolumeAttributeResponse.h:147
AttributeBooleanValue.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeVolumeAttributeResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeVolumeAttributeResponse.h:141
Aws::EC2::Model::DescribeVolumeAttributeResponse::SetProductCodes
void SetProductCodes(const Aws::Vector< ProductCode > &value)
Definition: DescribeVolumeAttributeResponse.h:73
Aws::EC2::Model::DescribeVolumeAttributeResponse::GetAutoEnableIO
const AttributeBooleanValue & GetAutoEnableIO() const
Definition: DescribeVolumeAttributeResponse.h:42
Aws::EC2::Model::ProductCode
Definition: ProductCode.h:33
Aws::EC2::Model::DescribeVolumeAttributeResponse::WithProductCodes
DescribeVolumeAttributeResponse & WithProductCodes(const Aws::Vector< ProductCode > &value)
Definition: DescribeVolumeAttributeResponse.h:83
Aws::EC2::Model::DescribeVolumeAttributeResponse
Definition: DescribeVolumeAttributeResponse.h:32
Aws::EC2::Model::DescribeVolumeAttributeResponse::DescribeVolumeAttributeResponse
DescribeVolumeAttributeResponse()
ProductCode.h
Aws::EC2::Model::DescribeVolumeAttributeResponse::WithProductCodes
DescribeVolumeAttributeResponse & WithProductCodes(Aws::Vector< ProductCode > &&value)
Definition: DescribeVolumeAttributeResponse.h:88
Aws::EC2::Model::DescribeVolumeAttributeResponse::SetVolumeId
void SetVolumeId(const char *value)
Definition: DescribeVolumeAttributeResponse.h:119
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::DescribeVolumeAttributeResponse::SetVolumeId
void SetVolumeId(Aws::String &&value)
Definition: DescribeVolumeAttributeResponse.h:114
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeVolumeAttributeResponse::SetVolumeId
void SetVolumeId(const Aws::String &value)
Definition: DescribeVolumeAttributeResponse.h:109
Aws::EC2::Model::DescribeVolumeAttributeResponse::WithAutoEnableIO
DescribeVolumeAttributeResponse & WithAutoEnableIO(AttributeBooleanValue &&value)
Definition: DescribeVolumeAttributeResponse.h:62
Aws::EC2::Model::DescribeVolumeAttributeResponse::operator=
DescribeVolumeAttributeResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::DescribeVolumeAttributeResponse::DescribeVolumeAttributeResponse
DescribeVolumeAttributeResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeVolumeAttributeResponse::WithVolumeId
DescribeVolumeAttributeResponse & WithVolumeId(const Aws::String &value)
Definition: DescribeVolumeAttributeResponse.h:124
Aws::EC2::Model::DescribeVolumeAttributeResponse::SetAutoEnableIO
void SetAutoEnableIO(AttributeBooleanValue &&value)
Definition: DescribeVolumeAttributeResponse.h:52
Aws::EC2::Model::AttributeBooleanValue
Definition: AttributeBooleanValue.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeVolumeAttributeResponse::WithResponseMetadata
DescribeVolumeAttributeResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeVolumeAttributeResponse.h:150
Aws::EC2::Model::DescribeVolumeAttributeResponse::WithVolumeId
DescribeVolumeAttributeResponse & WithVolumeId(const char *value)
Definition: DescribeVolumeAttributeResponse.h:134
Aws::EC2::Model::DescribeVolumeAttributeResponse::SetAutoEnableIO
void SetAutoEnableIO(const AttributeBooleanValue &value)
Definition: DescribeVolumeAttributeResponse.h:47
Aws::EC2::Model::DescribeVolumeAttributeResponse::GetProductCodes
const Aws::Vector< ProductCode > & GetProductCodes() const
Definition: DescribeVolumeAttributeResponse.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeVolumeAttributeResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeVolumeAttributeResponse.h:138
Aws::EC2::Model::DescribeVolumeAttributeResponse::SetProductCodes
void SetProductCodes(Aws::Vector< ProductCode > &&value)
Definition: DescribeVolumeAttributeResponse.h:78
Aws::EC2::Model::DescribeVolumeAttributeResponse::WithVolumeId
DescribeVolumeAttributeResponse & WithVolumeId(Aws::String &&value)
Definition: DescribeVolumeAttributeResponse.h:129
Aws::EC2::Model::DescribeVolumeAttributeResponse::WithAutoEnableIO
DescribeVolumeAttributeResponse & WithAutoEnableIO(const AttributeBooleanValue &value)
Definition: DescribeVolumeAttributeResponse.h:57
EC2_EXPORTS.h
Aws::EC2::Model::DescribeVolumeAttributeResponse::AddProductCodes
DescribeVolumeAttributeResponse & AddProductCodes(ProductCode &&value)
Definition: DescribeVolumeAttributeResponse.h:98
Aws::EC2::Model::DescribeVolumeAttributeResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeVolumeAttributeResponse.h:144
Aws::EC2::Model::DescribeVolumeAttributeResponse::AddProductCodes
DescribeVolumeAttributeResponse & AddProductCodes(const ProductCode &value)
Definition: DescribeVolumeAttributeResponse.h:93