AWS SDK for C++  1.9.67
AWS SDK for C++
DescribeFleetsResponse.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 
41  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
42 
46  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
47 
51  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
52 
56  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
57 
61  inline DescribeFleetsResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
62 
66  inline DescribeFleetsResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
67 
71  inline DescribeFleetsResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
72 
73 
77  inline const Aws::Vector<FleetData>& GetFleets() const{ return m_fleets; }
78 
82  inline void SetFleets(const Aws::Vector<FleetData>& value) { m_fleets = value; }
83 
87  inline void SetFleets(Aws::Vector<FleetData>&& value) { m_fleets = std::move(value); }
88 
92  inline DescribeFleetsResponse& WithFleets(const Aws::Vector<FleetData>& value) { SetFleets(value); return *this;}
93 
97  inline DescribeFleetsResponse& WithFleets(Aws::Vector<FleetData>&& value) { SetFleets(std::move(value)); return *this;}
98 
102  inline DescribeFleetsResponse& AddFleets(const FleetData& value) { m_fleets.push_back(value); return *this; }
103 
107  inline DescribeFleetsResponse& AddFleets(FleetData&& value) { m_fleets.push_back(std::move(value)); return *this; }
108 
109 
110 
111  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
112 
113 
114  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
115 
116 
117  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
118 
119 
120  inline DescribeFleetsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
121 
122 
123  inline DescribeFleetsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
124 
125  private:
126 
127  Aws::String m_nextToken;
128 
129  Aws::Vector<FleetData> m_fleets;
130 
131  ResponseMetadata m_responseMetadata;
132  };
133 
134 } // namespace Model
135 } // namespace EC2
136 } // namespace Aws
Aws::EC2::Model::DescribeFleetsResponse::WithNextToken
DescribeFleetsResponse & WithNextToken(Aws::String &&value)
Definition: DescribeFleetsResponse.h:66
Aws::EC2::Model::DescribeFleetsResponse::DescribeFleetsResponse
DescribeFleetsResponse()
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeFleetsResponse::AddFleets
DescribeFleetsResponse & AddFleets(FleetData &&value)
Definition: DescribeFleetsResponse.h:107
Aws::EC2::Model::DescribeFleetsResponse::WithFleets
DescribeFleetsResponse & WithFleets(Aws::Vector< FleetData > &&value)
Definition: DescribeFleetsResponse.h:97
Aws::EC2::Model::DescribeFleetsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeFleetsResponse.h:114
Aws::EC2::Model::DescribeFleetsResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeFleetsResponse.h:41
Aws::EC2::Model::DescribeFleetsResponse::WithNextToken
DescribeFleetsResponse & WithNextToken(const Aws::String &value)
Definition: DescribeFleetsResponse.h:61
Aws::EC2::Model::DescribeFleetsResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeFleetsResponse.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeFleetsResponse::AddFleets
DescribeFleetsResponse & AddFleets(const FleetData &value)
Definition: DescribeFleetsResponse.h:102
ResponseMetadata.h
Aws::EC2::Model::DescribeFleetsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeFleetsResponse.h:117
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeFleetsResponse::operator=
DescribeFleetsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWSVector.h
Aws::EC2::Model::DescribeFleetsResponse::WithNextToken
DescribeFleetsResponse & WithNextToken(const char *value)
Definition: DescribeFleetsResponse.h:71
FleetData.h
Aws::EC2::Model::DescribeFleetsResponse::GetFleets
const Aws::Vector< FleetData > & GetFleets() const
Definition: DescribeFleetsResponse.h:77
Aws::EC2::Model::DescribeFleetsResponse::WithResponseMetadata
DescribeFleetsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeFleetsResponse.h:123
Aws::EC2::Model::DescribeFleetsResponse::WithFleets
DescribeFleetsResponse & WithFleets(const Aws::Vector< FleetData > &value)
Definition: DescribeFleetsResponse.h:92
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::DescribeFleetsResponse::DescribeFleetsResponse
DescribeFleetsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeFleetsResponse::WithResponseMetadata
DescribeFleetsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeFleetsResponse.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeFleetsResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeFleetsResponse.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeFleetsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeFleetsResponse.h:111
Aws::EC2::Model::DescribeFleetsResponse::SetFleets
void SetFleets(Aws::Vector< FleetData > &&value)
Definition: DescribeFleetsResponse.h:87
EC2_EXPORTS.h
Aws::EC2::Model::DescribeFleetsResponse
Definition: DescribeFleetsResponse.h:31
Aws::EC2::Model::DescribeFleetsResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeFleetsResponse.h:56
Aws::EC2::Model::FleetData
Definition: FleetData.h:45
Aws::EC2::Model::DescribeFleetsResponse::SetFleets
void SetFleets(const Aws::Vector< FleetData > &value)
Definition: DescribeFleetsResponse.h:82