/** * 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 ListShardsResult { public: ListShardsResult(); ListShardsResult(const Aws::AmazonWebServiceResult& result); ListShardsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of JSON objects. Each object represents one shard and specifies the * IDs of the shard, the shard's parent, and the shard that's adjacent to the * shard's parent. Each object also contains the starting and ending hash keys and * the starting and ending sequence numbers for the shard.

*/ inline const Aws::Vector& GetShards() const{ return m_shards; } /** *

An array of JSON objects. Each object represents one shard and specifies the * IDs of the shard, the shard's parent, and the shard that's adjacent to the * shard's parent. Each object also contains the starting and ending hash keys and * the starting and ending sequence numbers for the shard.

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

An array of JSON objects. Each object represents one shard and specifies the * IDs of the shard, the shard's parent, and the shard that's adjacent to the * shard's parent. Each object also contains the starting and ending hash keys and * the starting and ending sequence numbers for the shard.

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

An array of JSON objects. Each object represents one shard and specifies the * IDs of the shard, the shard's parent, and the shard that's adjacent to the * shard's parent. Each object also contains the starting and ending hash keys and * the starting and ending sequence numbers for the shard.

*/ inline ListShardsResult& WithShards(const Aws::Vector& value) { SetShards(value); return *this;} /** *

An array of JSON objects. Each object represents one shard and specifies the * IDs of the shard, the shard's parent, and the shard that's adjacent to the * shard's parent. Each object also contains the starting and ending hash keys and * the starting and ending sequence numbers for the shard.

*/ inline ListShardsResult& WithShards(Aws::Vector&& value) { SetShards(std::move(value)); return *this;} /** *

An array of JSON objects. Each object represents one shard and specifies the * IDs of the shard, the shard's parent, and the shard that's adjacent to the * shard's parent. Each object also contains the starting and ending hash keys and * the starting and ending sequence numbers for the shard.

*/ inline ListShardsResult& AddShards(const Shard& value) { m_shards.push_back(value); return *this; } /** *

An array of JSON objects. Each object represents one shard and specifies the * IDs of the shard, the shard's parent, and the shard that's adjacent to the * shard's parent. Each object also contains the starting and ending hash keys and * the starting and ending sequence numbers for the shard.

*/ inline ListShardsResult& AddShards(Shard&& value) { m_shards.push_back(std::move(value)); return *this; } /** *

When the number of shards in 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 shards in the * data stream, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListShards to list the next set of shards. For * more information about the use of this pagination token when calling the * ListShards operation, see ListShardsInput$NextToken.

*

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

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

When the number of shards in 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 shards in the * data stream, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListShards to list the next set of shards. For * more information about the use of this pagination token when calling the * ListShards operation, see ListShardsInput$NextToken.

*

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

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

When the number of shards in 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 shards in the * data stream, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListShards to list the next set of shards. For * more information about the use of this pagination token when calling the * ListShards operation, see ListShardsInput$NextToken.

*

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

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

When the number of shards in 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 shards in the * data stream, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListShards to list the next set of shards. For * more information about the use of this pagination token when calling the * ListShards operation, see ListShardsInput$NextToken.

*

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

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

When the number of shards in 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 shards in the * data stream, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListShards to list the next set of shards. For * more information about the use of this pagination token when calling the * ListShards operation, see ListShardsInput$NextToken.

*

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

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

When the number of shards in 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 shards in the * data stream, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListShards to list the next set of shards. For * more information about the use of this pagination token when calling the * ListShards operation, see ListShardsInput$NextToken.

*

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

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

When the number of shards in 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 shards in the * data stream, the response includes a pagination token named * NextToken. You can specify this NextToken value in a * subsequent call to ListShards to list the next set of shards. For * more information about the use of this pagination token when calling the * ListShards operation, see ListShardsInput$NextToken.

*

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

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