AWS SDK for C++  1.9.160
AWS SDK for C++
ListSamplesResult.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<Sample>& GetSamples() const{ return m_samples; }
47 
51  inline void SetSamples(const Aws::Vector<Sample>& value) { m_samples = value; }
52 
56  inline void SetSamples(Aws::Vector<Sample>&& value) { m_samples = std::move(value); }
57 
61  inline ListSamplesResult& WithSamples(const Aws::Vector<Sample>& value) { SetSamples(value); return *this;}
62 
66  inline ListSamplesResult& WithSamples(Aws::Vector<Sample>&& value) { SetSamples(std::move(value)); return *this;}
67 
71  inline ListSamplesResult& AddSamples(const Sample& value) { m_samples.push_back(value); return *this; }
72 
76  inline ListSamplesResult& AddSamples(Sample&& value) { m_samples.push_back(std::move(value)); return *this; }
77 
78 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
91  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
92 
98  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
99 
105  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
106 
112  inline ListSamplesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
113 
119  inline ListSamplesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
120 
126  inline ListSamplesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
127 
128  private:
129 
130  Aws::Vector<Sample> m_samples;
131 
132  Aws::String m_nextToken;
133  };
134 
135 } // namespace Model
136 } // namespace DeviceFarm
137 } // namespace Aws
Aws::DeviceFarm::Model::Sample
Definition: Sample.h:33
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DeviceFarm::Model::ListSamplesResult::operator=
ListSamplesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DeviceFarm::Model::ListSamplesResult::AddSamples
ListSamplesResult & AddSamples(Sample &&value)
Definition: ListSamplesResult.h:76
AWSVector.h
Aws::DeviceFarm::Model::ListSamplesResult::SetSamples
void SetSamples(const Aws::Vector< Sample > &value)
Definition: ListSamplesResult.h:51
Aws::DeviceFarm::Model::ListSamplesResult::SetSamples
void SetSamples(Aws::Vector< Sample > &&value)
Definition: ListSamplesResult.h:56
Aws::DeviceFarm::Model::ListSamplesResult::WithSamples
ListSamplesResult & WithSamples(Aws::Vector< Sample > &&value)
Definition: ListSamplesResult.h:66
Aws::DeviceFarm::Model::ListSamplesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListSamplesResult.h:91
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
AWSString.h
Aws::DeviceFarm::Model::ListSamplesResult::WithNextToken
ListSamplesResult & WithNextToken(const Aws::String &value)
Definition: ListSamplesResult.h:112
Aws::DeviceFarm::Model::ListSamplesResult::AddSamples
ListSamplesResult & AddSamples(const Sample &value)
Definition: ListSamplesResult.h:71
Aws::DeviceFarm::Model::ListSamplesResult::WithNextToken
ListSamplesResult & WithNextToken(const char *value)
Definition: ListSamplesResult.h:126
Aws::DeviceFarm::Model::ListSamplesResult::WithSamples
ListSamplesResult & WithSamples(const Aws::Vector< Sample > &value)
Definition: ListSamplesResult.h:61
Aws::DeviceFarm::Model::ListSamplesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListSamplesResult.h:84
Aws::DeviceFarm::Model::ListSamplesResult::WithNextToken
ListSamplesResult & WithNextToken(Aws::String &&value)
Definition: ListSamplesResult.h:119
Sample.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::DeviceFarm::Model::ListSamplesResult::GetSamples
const Aws::Vector< Sample > & GetSamples() const
Definition: ListSamplesResult.h:46
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::ListSamplesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListSamplesResult.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::ListSamplesResult::ListSamplesResult
ListSamplesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DeviceFarm::Model::ListSamplesResult::ListSamplesResult
ListSamplesResult()
Aws::DeviceFarm::Model::ListSamplesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListSamplesResult.h:98
Aws::DeviceFarm::Model::ListSamplesResult
Definition: ListSamplesResult.h:36