AWS SDK for C++  1.9.109
AWS SDK for C++
GetGroupsForCapacityReservationResponse.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 
42  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
43 
48  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
49 
54  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
55 
60  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
61 
66  inline GetGroupsForCapacityReservationResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
67 
72  inline GetGroupsForCapacityReservationResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 
78  inline GetGroupsForCapacityReservationResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79 
80 
85  inline const Aws::Vector<CapacityReservationGroup>& GetCapacityReservationGroups() const{ return m_capacityReservationGroups; }
86 
91  inline void SetCapacityReservationGroups(const Aws::Vector<CapacityReservationGroup>& value) { m_capacityReservationGroups = value; }
92 
97  inline void SetCapacityReservationGroups(Aws::Vector<CapacityReservationGroup>&& value) { m_capacityReservationGroups = std::move(value); }
98 
103  inline GetGroupsForCapacityReservationResponse& WithCapacityReservationGroups(const Aws::Vector<CapacityReservationGroup>& value) { SetCapacityReservationGroups(value); return *this;}
104 
109  inline GetGroupsForCapacityReservationResponse& WithCapacityReservationGroups(Aws::Vector<CapacityReservationGroup>&& value) { SetCapacityReservationGroups(std::move(value)); return *this;}
110 
115  inline GetGroupsForCapacityReservationResponse& AddCapacityReservationGroups(const CapacityReservationGroup& value) { m_capacityReservationGroups.push_back(value); return *this; }
116 
121  inline GetGroupsForCapacityReservationResponse& AddCapacityReservationGroups(CapacityReservationGroup&& value) { m_capacityReservationGroups.push_back(std::move(value)); return *this; }
122 
123 
124 
125  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
126 
127 
128  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
129 
130 
131  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
132 
133 
134  inline GetGroupsForCapacityReservationResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
135 
136 
137  inline GetGroupsForCapacityReservationResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
138 
139  private:
140 
141  Aws::String m_nextToken;
142 
143  Aws::Vector<CapacityReservationGroup> m_capacityReservationGroups;
144 
145  ResponseMetadata m_responseMetadata;
146  };
147 
148 } // namespace Model
149 } // namespace EC2
150 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::SetCapacityReservationGroups
void SetCapacityReservationGroups(Aws::Vector< CapacityReservationGroup > &&value)
Definition: GetGroupsForCapacityReservationResponse.h:97
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetGroupsForCapacityReservationResponse.h:48
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::WithNextToken
GetGroupsForCapacityReservationResponse & WithNextToken(const Aws::String &value)
Definition: GetGroupsForCapacityReservationResponse.h:66
Aws::EC2::Model::GetGroupsForCapacityReservationResponse
Definition: GetGroupsForCapacityReservationResponse.h:31
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CapacityReservationGroup.h
AWSVector.h
Aws::EC2::Model::CapacityReservationGroup
Definition: CapacityReservationGroup.h:33
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::operator=
GetGroupsForCapacityReservationResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::GetCapacityReservationGroups
const Aws::Vector< CapacityReservationGroup > & GetCapacityReservationGroups() const
Definition: GetGroupsForCapacityReservationResponse.h:85
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetGroupsForCapacityReservationResponse.h:42
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::WithResponseMetadata
GetGroupsForCapacityReservationResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: GetGroupsForCapacityReservationResponse.h:137
AWSString.h
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::AddCapacityReservationGroups
GetGroupsForCapacityReservationResponse & AddCapacityReservationGroups(CapacityReservationGroup &&value)
Definition: GetGroupsForCapacityReservationResponse.h:121
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::GetGroupsForCapacityReservationResponse
GetGroupsForCapacityReservationResponse()
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::AddCapacityReservationGroups
GetGroupsForCapacityReservationResponse & AddCapacityReservationGroups(const CapacityReservationGroup &value)
Definition: GetGroupsForCapacityReservationResponse.h:115
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::GetGroupsForCapacityReservationResponse
GetGroupsForCapacityReservationResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: GetGroupsForCapacityReservationResponse.h:131
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::WithCapacityReservationGroups
GetGroupsForCapacityReservationResponse & WithCapacityReservationGroups(Aws::Vector< CapacityReservationGroup > &&value)
Definition: GetGroupsForCapacityReservationResponse.h:109
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::SetCapacityReservationGroups
void SetCapacityReservationGroups(const Aws::Vector< CapacityReservationGroup > &value)
Definition: GetGroupsForCapacityReservationResponse.h:91
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::GetGroupsForCapacityReservationResponse::WithCapacityReservationGroups
GetGroupsForCapacityReservationResponse & WithCapacityReservationGroups(const Aws::Vector< CapacityReservationGroup > &value)
Definition: GetGroupsForCapacityReservationResponse.h:103
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::WithNextToken
GetGroupsForCapacityReservationResponse & WithNextToken(const char *value)
Definition: GetGroupsForCapacityReservationResponse.h:78
EC2_EXPORTS.h
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::SetNextToken
void SetNextToken(const char *value)
Definition: GetGroupsForCapacityReservationResponse.h:60
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::WithNextToken
GetGroupsForCapacityReservationResponse & WithNextToken(Aws::String &&value)
Definition: GetGroupsForCapacityReservationResponse.h:72
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::WithResponseMetadata
GetGroupsForCapacityReservationResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: GetGroupsForCapacityReservationResponse.h:134
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: GetGroupsForCapacityReservationResponse.h:125
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: GetGroupsForCapacityReservationResponse.h:128
Aws::EC2::Model::GetGroupsForCapacityReservationResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetGroupsForCapacityReservationResponse.h:54