/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Kinesis { namespace Model { class AWS_KINESIS_API ListStreamConsumersResult { public: ListStreamConsumersResult(); ListStreamConsumersResult(const Aws::AmazonWebServiceResult& result); ListStreamConsumersResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of JSON objects. Each object represents one registered consumer.

*/ inline const Aws::Vector& GetConsumers() const{ return m_consumers; } /** *

An array of JSON objects. Each object represents one registered consumer.

*/ inline void SetConsumers(const Aws::Vector& value) { m_consumers = value; } /** *

An array of JSON objects. Each object represents one registered consumer.

*/ inline void SetConsumers(Aws::Vector&& value) { m_consumers = std::move(value); } /** *

An array of JSON objects. Each object represents one registered consumer.

*/ inline ListStreamConsumersResult& WithConsumers(const Aws::Vector& value) { SetConsumers(value); return *this;} /** *

An array of JSON objects. Each object represents one registered consumer.

*/ inline ListStreamConsumersResult& WithConsumers(Aws::Vector&& value) { SetConsumers(std::move(value)); return *this;} /** *

An array of JSON objects. Each object represents one registered consumer.

*/ inline ListStreamConsumersResult& AddConsumers(const Consumer& value) { m_consumers.push_back(value); return *this; } /** *

An array of JSON objects. Each object represents one registered consumer.

*/ inline ListStreamConsumersResult& AddConsumers(Consumer&& value) { m_consumers.push_back(std::move(value)); return *this; } /** *

When the number of consumers that are registered with the data stream is * greater than the default value for the MaxResults parameter, or if * you explicitly specify a value for MaxResults that is less than the * number of registered consumers, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListStreamConsumers to list the next set of * registered consumers. For more information about the use of this pagination * token when calling the ListStreamConsumers operation, see * ListStreamConsumersInput$NextToken.

Tokens expire * after 300 seconds. When you obtain a value for NextToken in the * response to a call to ListStreamConsumers, you have 300 seconds to * use that value. If you specify an expired token in a call to * ListStreamConsumers, you get * ExpiredNextTokenException.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

When the number of consumers that are registered with the data stream is * greater than the default value for the MaxResults parameter, or if * you explicitly specify a value for MaxResults that is less than the * number of registered consumers, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListStreamConsumers to list the next set of * registered consumers. For more information about the use of this pagination * token when calling the ListStreamConsumers operation, see * ListStreamConsumersInput$NextToken.

Tokens expire * after 300 seconds. When you obtain a value for NextToken in the * response to a call to ListStreamConsumers, you have 300 seconds to * use that value. If you specify an expired token in a call to * ListStreamConsumers, you get * ExpiredNextTokenException.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

When the number of consumers that are registered with the data stream is * greater than the default value for the MaxResults parameter, or if * you explicitly specify a value for MaxResults that is less than the * number of registered consumers, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListStreamConsumers to list the next set of * registered consumers. For more information about the use of this pagination * token when calling the ListStreamConsumers operation, see * ListStreamConsumersInput$NextToken.

Tokens expire * after 300 seconds. When you obtain a value for NextToken in the * response to a call to ListStreamConsumers, you have 300 seconds to * use that value. If you specify an expired token in a call to * ListStreamConsumers, you get * ExpiredNextTokenException.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

When the number of consumers that are registered with the data stream is * greater than the default value for the MaxResults parameter, or if * you explicitly specify a value for MaxResults that is less than the * number of registered consumers, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListStreamConsumers to list the next set of * registered consumers. For more information about the use of this pagination * token when calling the ListStreamConsumers operation, see * ListStreamConsumersInput$NextToken.

Tokens expire * after 300 seconds. When you obtain a value for NextToken in the * response to a call to ListStreamConsumers, you have 300 seconds to * use that value. If you specify an expired token in a call to * ListStreamConsumers, you get * ExpiredNextTokenException.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

When the number of consumers that are registered with the data stream is * greater than the default value for the MaxResults parameter, or if * you explicitly specify a value for MaxResults that is less than the * number of registered consumers, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListStreamConsumers to list the next set of * registered consumers. For more information about the use of this pagination * token when calling the ListStreamConsumers operation, see * ListStreamConsumersInput$NextToken.

Tokens expire * after 300 seconds. When you obtain a value for NextToken in the * response to a call to ListStreamConsumers, you have 300 seconds to * use that value. If you specify an expired token in a call to * ListStreamConsumers, you get * ExpiredNextTokenException.

*/ inline ListStreamConsumersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

When the number of consumers that are registered with the data stream is * greater than the default value for the MaxResults parameter, or if * you explicitly specify a value for MaxResults that is less than the * number of registered consumers, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListStreamConsumers to list the next set of * registered consumers. For more information about the use of this pagination * token when calling the ListStreamConsumers operation, see * ListStreamConsumersInput$NextToken.

Tokens expire * after 300 seconds. When you obtain a value for NextToken in the * response to a call to ListStreamConsumers, you have 300 seconds to * use that value. If you specify an expired token in a call to * ListStreamConsumers, you get * ExpiredNextTokenException.

*/ inline ListStreamConsumersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

When the number of consumers that are registered with the data stream is * greater than the default value for the MaxResults parameter, or if * you explicitly specify a value for MaxResults that is less than the * number of registered consumers, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListStreamConsumers to list the next set of * registered consumers. For more information about the use of this pagination * token when calling the ListStreamConsumers operation, see * ListStreamConsumersInput$NextToken.

Tokens expire * after 300 seconds. When you obtain a value for NextToken in the * response to a call to ListStreamConsumers, you have 300 seconds to * use that value. If you specify an expired token in a call to * ListStreamConsumers, you get * ExpiredNextTokenException.

*/ inline ListStreamConsumersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_consumers; Aws::String m_nextToken; }; } // namespace Model } // namespace Kinesis } // namespace Aws