AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeInstanceTypesResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
43  inline const Aws::Vector<InstanceTypeInfo>& GetInstanceTypes() const{ return m_instanceTypes; }
44 
50  inline void SetInstanceTypes(const Aws::Vector<InstanceTypeInfo>& value) { m_instanceTypes = value; }
51 
57  inline void SetInstanceTypes(Aws::Vector<InstanceTypeInfo>&& value) { m_instanceTypes = std::move(value); }
58 
64  inline DescribeInstanceTypesResponse& WithInstanceTypes(const Aws::Vector<InstanceTypeInfo>& value) { SetInstanceTypes(value); return *this;}
65 
71  inline DescribeInstanceTypesResponse& WithInstanceTypes(Aws::Vector<InstanceTypeInfo>&& value) { SetInstanceTypes(std::move(value)); return *this;}
72 
78  inline DescribeInstanceTypesResponse& AddInstanceTypes(const InstanceTypeInfo& value) { m_instanceTypes.push_back(value); return *this; }
79 
85  inline DescribeInstanceTypesResponse& AddInstanceTypes(InstanceTypeInfo&& value) { m_instanceTypes.push_back(std::move(value)); return *this; }
86 
87 
92  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
93 
98  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
99 
104  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
105 
110  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
111 
116  inline DescribeInstanceTypesResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
122  inline DescribeInstanceTypesResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
123 
128  inline DescribeInstanceTypesResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
129 
130 
131 
132  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
133 
134 
135  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
136 
137 
138  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
139 
140 
141  inline DescribeInstanceTypesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
142 
143 
144  inline DescribeInstanceTypesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
145 
146  private:
147 
148  Aws::Vector<InstanceTypeInfo> m_instanceTypes;
149 
150  Aws::String m_nextToken;
151 
152  ResponseMetadata m_responseMetadata;
153  };
154 
155 } // namespace Model
156 } // namespace EC2
157 } // namespace Aws
Aws::EC2::Model::DescribeInstanceTypesResponse::WithResponseMetadata
DescribeInstanceTypesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeInstanceTypesResponse.h:144
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeInstanceTypesResponse::DescribeInstanceTypesResponse
DescribeInstanceTypesResponse()
Aws::EC2::Model::DescribeInstanceTypesResponse::operator=
DescribeInstanceTypesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeInstanceTypesResponse::WithInstanceTypes
DescribeInstanceTypesResponse & WithInstanceTypes(const Aws::Vector< InstanceTypeInfo > &value)
Definition: DescribeInstanceTypesResponse.h:64
Aws::EC2::Model::DescribeInstanceTypesResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeInstanceTypesResponse.h:104
Aws::EC2::Model::DescribeInstanceTypesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeInstanceTypesResponse.h:138
Aws::EC2::Model::DescribeInstanceTypesResponse::WithInstanceTypes
DescribeInstanceTypesResponse & WithInstanceTypes(Aws::Vector< InstanceTypeInfo > &&value)
Definition: DescribeInstanceTypesResponse.h:71
Aws::EC2::Model::DescribeInstanceTypesResponse
Definition: DescribeInstanceTypesResponse.h:31
Aws::EC2::Model::DescribeInstanceTypesResponse::SetInstanceTypes
void SetInstanceTypes(Aws::Vector< InstanceTypeInfo > &&value)
Definition: DescribeInstanceTypesResponse.h:57
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::DescribeInstanceTypesResponse::WithNextToken
DescribeInstanceTypesResponse & WithNextToken(Aws::String &&value)
Definition: DescribeInstanceTypesResponse.h:122
Aws::EC2::Model::DescribeInstanceTypesResponse::WithNextToken
DescribeInstanceTypesResponse & WithNextToken(const Aws::String &value)
Definition: DescribeInstanceTypesResponse.h:116
Aws::EC2::Model::DescribeInstanceTypesResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeInstanceTypesResponse.h:110
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeInstanceTypesResponse::SetInstanceTypes
void SetInstanceTypes(const Aws::Vector< InstanceTypeInfo > &value)
Definition: DescribeInstanceTypesResponse.h:50
Aws::EC2::Model::DescribeInstanceTypesResponse::AddInstanceTypes
DescribeInstanceTypesResponse & AddInstanceTypes(const InstanceTypeInfo &value)
Definition: DescribeInstanceTypesResponse.h:78
InstanceTypeInfo.h
Aws::EC2::Model::DescribeInstanceTypesResponse::WithNextToken
DescribeInstanceTypesResponse & WithNextToken(const char *value)
Definition: DescribeInstanceTypesResponse.h:128
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeInstanceTypesResponse::AddInstanceTypes
DescribeInstanceTypesResponse & AddInstanceTypes(InstanceTypeInfo &&value)
Definition: DescribeInstanceTypesResponse.h:85
AWSString.h
Aws::EC2::Model::DescribeInstanceTypesResponse::DescribeInstanceTypesResponse
DescribeInstanceTypesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeInstanceTypesResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeInstanceTypesResponse.h:98
Aws::EC2::Model::DescribeInstanceTypesResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeInstanceTypesResponse.h:92
Aws::EC2::Model::DescribeInstanceTypesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeInstanceTypesResponse.h:132
Aws::EC2::Model::DescribeInstanceTypesResponse::GetInstanceTypes
const Aws::Vector< InstanceTypeInfo > & GetInstanceTypes() const
Definition: DescribeInstanceTypesResponse.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::InstanceTypeInfo
Definition: InstanceTypeInfo.h:48
Aws::EC2::Model::DescribeInstanceTypesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeInstanceTypesResponse.h:135
EC2_EXPORTS.h
Aws::EC2::Model::DescribeInstanceTypesResponse::WithResponseMetadata
DescribeInstanceTypesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeInstanceTypesResponse.h:141