AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeDataSourcesResult.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 MachineLearning
26 {
27 namespace Model
28 {
37  {
38  public:
42 
43 
47  inline const Aws::Vector<DataSource>& GetResults() const{ return m_results; }
48 
52  inline void SetResults(const Aws::Vector<DataSource>& value) { m_results = value; }
53 
57  inline void SetResults(Aws::Vector<DataSource>&& value) { m_results = std::move(value); }
58 
62  inline DescribeDataSourcesResult& WithResults(const Aws::Vector<DataSource>& value) { SetResults(value); return *this;}
63 
67  inline DescribeDataSourcesResult& WithResults(Aws::Vector<DataSource>&& value) { SetResults(std::move(value)); return *this;}
68 
72  inline DescribeDataSourcesResult& AddResults(const DataSource& value) { m_results.push_back(value); return *this; }
73 
77  inline DescribeDataSourcesResult& AddResults(DataSource&& value) { m_results.push_back(std::move(value)); return *this; }
78 
79 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
90  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
91 
96  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
97 
102  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
103 
108  inline DescribeDataSourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
114  inline DescribeDataSourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 
120  inline DescribeDataSourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<DataSource> m_results;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace MachineLearning
131 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MachineLearning::Model::DescribeDataSourcesResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeDataSourcesResult.h:102
DataSource.h
Aws::MachineLearning::Model::DescribeDataSourcesResult::SetResults
void SetResults(const Aws::Vector< DataSource > &value)
Definition: DescribeDataSourcesResult.h:52
Aws::MachineLearning::Model::DescribeDataSourcesResult::WithResults
DescribeDataSourcesResult & WithResults(const Aws::Vector< DataSource > &value)
Definition: DescribeDataSourcesResult.h:62
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::DataSource
Definition: DataSource.h:38
Aws::MachineLearning::Model::DescribeDataSourcesResult::DescribeDataSourcesResult
DescribeDataSourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MachineLearning::Model::DescribeDataSourcesResult::WithNextToken
DescribeDataSourcesResult & WithNextToken(const char *value)
Definition: DescribeDataSourcesResult.h:120
Aws::MachineLearning::Model::DescribeDataSourcesResult::SetResults
void SetResults(Aws::Vector< DataSource > &&value)
Definition: DescribeDataSourcesResult.h:57
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::MachineLearning::Model::DescribeDataSourcesResult::WithNextToken
DescribeDataSourcesResult & WithNextToken(const Aws::String &value)
Definition: DescribeDataSourcesResult.h:108
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::DescribeDataSourcesResult::operator=
DescribeDataSourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MachineLearning::Model::DescribeDataSourcesResult::DescribeDataSourcesResult
DescribeDataSourcesResult()
AWSString.h
Aws::MachineLearning::Model::DescribeDataSourcesResult::WithResults
DescribeDataSourcesResult & WithResults(Aws::Vector< DataSource > &&value)
Definition: DescribeDataSourcesResult.h:67
Aws::MachineLearning::Model::DescribeDataSourcesResult::GetResults
const Aws::Vector< DataSource > & GetResults() const
Definition: DescribeDataSourcesResult.h:47
Aws::MachineLearning::Model::DescribeDataSourcesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeDataSourcesResult.h:90
Aws::MachineLearning::Model::DescribeDataSourcesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeDataSourcesResult.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::DescribeDataSourcesResult
Definition: DescribeDataSourcesResult.h:37
Aws::MachineLearning::Model::DescribeDataSourcesResult::AddResults
DescribeDataSourcesResult & AddResults(const DataSource &value)
Definition: DescribeDataSourcesResult.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::DescribeDataSourcesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeDataSourcesResult.h:84
Aws::MachineLearning::Model::DescribeDataSourcesResult::AddResults
DescribeDataSourcesResult & AddResults(DataSource &&value)
Definition: DescribeDataSourcesResult.h:77
Aws::MachineLearning::Model::DescribeDataSourcesResult::WithNextToken
DescribeDataSourcesResult & WithNextToken(Aws::String &&value)
Definition: DescribeDataSourcesResult.h:114