AWS SDK for C++  1.9.123
AWS SDK for C++
ListStreamsResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
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 IoT
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<StreamSummary>& GetStreams() const{ return m_streams; }
41 
45  inline void SetStreams(const Aws::Vector<StreamSummary>& value) { m_streams = value; }
46 
50  inline void SetStreams(Aws::Vector<StreamSummary>&& value) { m_streams = std::move(value); }
51 
55  inline ListStreamsResult& WithStreams(const Aws::Vector<StreamSummary>& value) { SetStreams(value); return *this;}
56 
60  inline ListStreamsResult& WithStreams(Aws::Vector<StreamSummary>&& value) { SetStreams(std::move(value)); return *this;}
61 
65  inline ListStreamsResult& AddStreams(const StreamSummary& value) { m_streams.push_back(value); return *this; }
66 
70  inline ListStreamsResult& AddStreams(StreamSummary&& value) { m_streams.push_back(std::move(value)); return *this; }
71 
72 
76  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 
81  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
82 
86  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
87 
91  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
92 
96  inline ListStreamsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 
101  inline ListStreamsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 
106  inline ListStreamsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107 
108  private:
109 
110  Aws::Vector<StreamSummary> m_streams;
111 
112  Aws::String m_nextToken;
113  };
114 
115 } // namespace Model
116 } // namespace IoT
117 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::ListStreamsResult::SetStreams
void SetStreams(Aws::Vector< StreamSummary > &&value)
Definition: ListStreamsResult.h:50
Aws::IoT::Model::ListStreamsResult::AddStreams
ListStreamsResult & AddStreams(StreamSummary &&value)
Definition: ListStreamsResult.h:70
Aws::IoT::Model::ListStreamsResult::GetStreams
const Aws::Vector< StreamSummary > & GetStreams() const
Definition: ListStreamsResult.h:40
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::ListStreamsResult::operator=
ListStreamsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::IoT::Model::ListStreamsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListStreamsResult.h:76
Aws::IoT::Model::ListStreamsResult::AddStreams
ListStreamsResult & AddStreams(const StreamSummary &value)
Definition: ListStreamsResult.h:65
Aws::IoT::Model::ListStreamsResult::WithNextToken
ListStreamsResult & WithNextToken(const Aws::String &value)
Definition: ListStreamsResult.h:96
Aws::IoT::Model::ListStreamsResult::SetStreams
void SetStreams(const Aws::Vector< StreamSummary > &value)
Definition: ListStreamsResult.h:45
AWSString.h
Aws::IoT::Model::ListStreamsResult::WithStreams
ListStreamsResult & WithStreams(const Aws::Vector< StreamSummary > &value)
Definition: ListStreamsResult.h:55
Aws::IoT::Model::ListStreamsResult::WithNextToken
ListStreamsResult & WithNextToken(Aws::String &&value)
Definition: ListStreamsResult.h:101
Aws::IoT::Model::ListStreamsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListStreamsResult.h:86
Aws::IoT::Model::ListStreamsResult::WithStreams
ListStreamsResult & WithStreams(Aws::Vector< StreamSummary > &&value)
Definition: ListStreamsResult.h:60
StreamSummary.h
Aws::IoT::Model::ListStreamsResult::WithNextToken
ListStreamsResult & WithNextToken(const char *value)
Definition: ListStreamsResult.h:106
Aws::IoT::Model::ListStreamsResult
Definition: ListStreamsResult.h:30
Aws::IoT::Model::StreamSummary
Definition: StreamSummary.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListStreamsResult::ListStreamsResult
ListStreamsResult()
Aws::IoT::Model::ListStreamsResult::ListStreamsResult
ListStreamsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListStreamsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListStreamsResult.h:81
Aws::IoT::Model::ListStreamsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListStreamsResult.h:91
IoT_EXPORTS.h