AWS SDK for C++  1.9.160
AWS SDK for C++
ListOfferingsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace DeviceFarm
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<Offering>& GetOfferings() const{ return m_offerings; }
47 
51  inline void SetOfferings(const Aws::Vector<Offering>& value) { m_offerings = value; }
52 
56  inline void SetOfferings(Aws::Vector<Offering>&& value) { m_offerings = std::move(value); }
57 
61  inline ListOfferingsResult& WithOfferings(const Aws::Vector<Offering>& value) { SetOfferings(value); return *this;}
62 
66  inline ListOfferingsResult& WithOfferings(Aws::Vector<Offering>&& value) { SetOfferings(std::move(value)); return *this;}
67 
71  inline ListOfferingsResult& AddOfferings(const Offering& value) { m_offerings.push_back(value); return *this; }
72 
76  inline ListOfferingsResult& AddOfferings(Offering&& value) { m_offerings.push_back(std::move(value)); return *this; }
77 
78 
83  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 
89  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
90 
95  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
96 
101  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
102 
107  inline ListOfferingsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
108 
113  inline ListOfferingsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
119  inline ListOfferingsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
120 
121  private:
122 
123  Aws::Vector<Offering> m_offerings;
124 
125  Aws::String m_nextToken;
126  };
127 
128 } // namespace Model
129 } // namespace DeviceFarm
130 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::DeviceFarm::Model::ListOfferingsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOfferingsResult.h:95
Aws::DeviceFarm::Model::ListOfferingsResult::WithOfferings
ListOfferingsResult & WithOfferings(const Aws::Vector< Offering > &value)
Definition: ListOfferingsResult.h:61
Aws::DeviceFarm::Model::ListOfferingsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListOfferingsResult.h:101
Aws::DeviceFarm::Model::ListOfferingsResult::GetOfferings
const Aws::Vector< Offering > & GetOfferings() const
Definition: ListOfferingsResult.h:46
Aws::DeviceFarm::Model::ListOfferingsResult::WithNextToken
ListOfferingsResult & WithNextToken(const char *value)
Definition: ListOfferingsResult.h:119
Aws::DeviceFarm::Model::ListOfferingsResult
Definition: ListOfferingsResult.h:36
Aws::DeviceFarm::Model::ListOfferingsResult::ListOfferingsResult
ListOfferingsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DeviceFarm::Model::Offering
Definition: Offering.h:36
AWSVector.h
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::ListOfferingsResult::AddOfferings
ListOfferingsResult & AddOfferings(Offering &&value)
Definition: ListOfferingsResult.h:76
Aws::DeviceFarm::Model::ListOfferingsResult::operator=
ListOfferingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DeviceFarm::Model::ListOfferingsResult::ListOfferingsResult
ListOfferingsResult()
AWSString.h
Aws::DeviceFarm::Model::ListOfferingsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOfferingsResult.h:89
Aws::DeviceFarm::Model::ListOfferingsResult::WithNextToken
ListOfferingsResult & WithNextToken(Aws::String &&value)
Definition: ListOfferingsResult.h:113
Offering.h
Aws::DeviceFarm::Model::ListOfferingsResult::SetOfferings
void SetOfferings(const Aws::Vector< Offering > &value)
Definition: ListOfferingsResult.h:51
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::DeviceFarm::Model::ListOfferingsResult::WithOfferings
ListOfferingsResult & WithOfferings(Aws::Vector< Offering > &&value)
Definition: ListOfferingsResult.h:66
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::ListOfferingsResult::AddOfferings
ListOfferingsResult & AddOfferings(const Offering &value)
Definition: ListOfferingsResult.h:71
Aws::DeviceFarm::Model::ListOfferingsResult::SetOfferings
void SetOfferings(Aws::Vector< Offering > &&value)
Definition: ListOfferingsResult.h:56
Aws::DeviceFarm::Model::ListOfferingsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOfferingsResult.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::ListOfferingsResult::WithNextToken
ListOfferingsResult & WithNextToken(const Aws::String &value)
Definition: ListOfferingsResult.h:107