/** * 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 { namespace KinesisVideo { namespace Model { /** */ class ListStreamsRequest : public KinesisVideoRequest { public: AWS_KINESISVIDEO_API ListStreamsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListStreams"; } AWS_KINESISVIDEO_API Aws::String SerializePayload() const override; /** *

The maximum number of streams to return in the response. The default is * 10,000.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of streams to return in the response. The default is * 10,000.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of streams to return in the response. The default is * 10,000.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of streams to return in the response. The default is * 10,000.

*/ inline ListStreamsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

If you specify this parameter, when the result of a ListStreams * operation is truncated, the call returns the NextToken in the * response. To get another batch of streams, provide this token in your next * request.

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

If you specify this parameter, when the result of a ListStreams * operation is truncated, the call returns the NextToken in the * response. To get another batch of streams, provide this token in your next * request.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

If you specify this parameter, when the result of a ListStreams * operation is truncated, the call returns the NextToken in the * response. To get another batch of streams, provide this token in your next * request.

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

If you specify this parameter, when the result of a ListStreams * operation is truncated, the call returns the NextToken in the * response. To get another batch of streams, provide this token in your next * request.

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

If you specify this parameter, when the result of a ListStreams * operation is truncated, the call returns the NextToken in the * response. To get another batch of streams, provide this token in your next * request.

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

If you specify this parameter, when the result of a ListStreams * operation is truncated, the call returns the NextToken in the * response. To get another batch of streams, provide this token in your next * request.

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

If you specify this parameter, when the result of a ListStreams * operation is truncated, the call returns the NextToken in the * response. To get another batch of streams, provide this token in your next * request.

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

If you specify this parameter, when the result of a ListStreams * operation is truncated, the call returns the NextToken in the * response. To get another batch of streams, provide this token in your next * request.

*/ inline ListStreamsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Optional: Returns only streams that satisfy a specific condition. Currently, * you can specify only the prefix of a stream name as a condition.

*/ inline const StreamNameCondition& GetStreamNameCondition() const{ return m_streamNameCondition; } /** *

Optional: Returns only streams that satisfy a specific condition. Currently, * you can specify only the prefix of a stream name as a condition.

*/ inline bool StreamNameConditionHasBeenSet() const { return m_streamNameConditionHasBeenSet; } /** *

Optional: Returns only streams that satisfy a specific condition. Currently, * you can specify only the prefix of a stream name as a condition.

*/ inline void SetStreamNameCondition(const StreamNameCondition& value) { m_streamNameConditionHasBeenSet = true; m_streamNameCondition = value; } /** *

Optional: Returns only streams that satisfy a specific condition. Currently, * you can specify only the prefix of a stream name as a condition.

*/ inline void SetStreamNameCondition(StreamNameCondition&& value) { m_streamNameConditionHasBeenSet = true; m_streamNameCondition = std::move(value); } /** *

Optional: Returns only streams that satisfy a specific condition. Currently, * you can specify only the prefix of a stream name as a condition.

*/ inline ListStreamsRequest& WithStreamNameCondition(const StreamNameCondition& value) { SetStreamNameCondition(value); return *this;} /** *

Optional: Returns only streams that satisfy a specific condition. Currently, * you can specify only the prefix of a stream name as a condition.

*/ inline ListStreamsRequest& WithStreamNameCondition(StreamNameCondition&& value) { SetStreamNameCondition(std::move(value)); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; StreamNameCondition m_streamNameCondition; bool m_streamNameConditionHasBeenSet = false; }; } // namespace Model } // namespace KinesisVideo } // namespace Aws