AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListStreamConsumersResult.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kinesis/model/Consumer.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Kinesis
26{
27namespace Model
28{
30 {
31 public:
32 AWS_KINESIS_API ListStreamConsumersResult();
35
36
38
41 inline const Aws::Vector<Consumer>& GetConsumers() const{ return m_consumers; }
42 inline void SetConsumers(const Aws::Vector<Consumer>& value) { m_consumers = value; }
43 inline void SetConsumers(Aws::Vector<Consumer>&& value) { m_consumers = std::move(value); }
44 inline ListStreamConsumersResult& WithConsumers(const Aws::Vector<Consumer>& value) { SetConsumers(value); return *this;}
45 inline ListStreamConsumersResult& WithConsumers(Aws::Vector<Consumer>&& value) { SetConsumers(std::move(value)); return *this;}
46 inline ListStreamConsumersResult& AddConsumers(const Consumer& value) { m_consumers.push_back(value); return *this; }
47 inline ListStreamConsumersResult& AddConsumers(Consumer&& value) { m_consumers.push_back(std::move(value)); return *this; }
49
51
67 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
68 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
69 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
70 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
71 inline ListStreamConsumersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
72 inline ListStreamConsumersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 inline ListStreamConsumersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
75
77
78 inline const Aws::String& GetRequestId() const{ return m_requestId; }
79 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
80 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
81 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
82 inline ListStreamConsumersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
83 inline ListStreamConsumersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
84 inline ListStreamConsumersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
86 private:
87
88 Aws::Vector<Consumer> m_consumers;
89
90 Aws::String m_nextToken;
91
92 Aws::String m_requestId;
93 };
94
95} // namespace Model
96} // namespace Kinesis
97} // namespace Aws
const Aws::Vector< Consumer > & GetConsumers() const
ListStreamConsumersResult & WithRequestId(Aws::String &&value)
ListStreamConsumersResult & WithNextToken(const char *value)
ListStreamConsumersResult & WithRequestId(const Aws::String &value)
ListStreamConsumersResult & WithNextToken(const Aws::String &value)
ListStreamConsumersResult & AddConsumers(Consumer &&value)
ListStreamConsumersResult & AddConsumers(const Consumer &value)
ListStreamConsumersResult & WithConsumers(Aws::Vector< Consumer > &&value)
ListStreamConsumersResult & WithNextToken(Aws::String &&value)
AWS_KINESIS_API ListStreamConsumersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KINESIS_API ListStreamConsumersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListStreamConsumersResult & WithRequestId(const char *value)
void SetConsumers(Aws::Vector< Consumer > &&value)
void SetConsumers(const Aws::Vector< Consumer > &value)
ListStreamConsumersResult & WithConsumers(const Aws::Vector< Consumer > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue