/** * 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 KinesisVideoArchivedMedia { namespace Model { /** */ class ListFragmentsRequest : public KinesisVideoArchivedMediaRequest { public: AWS_KINESISVIDEOARCHIVEDMEDIA_API ListFragmentsRequest(); // 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 "ListFragments"; } AWS_KINESISVIDEOARCHIVEDMEDIA_API Aws::String SerializePayload() const override; /** *

The name of the stream from which to retrieve a fragment list. Specify either * this parameter or the StreamARN parameter.

*/ inline const Aws::String& GetStreamName() const{ return m_streamName; } /** *

The name of the stream from which to retrieve a fragment list. Specify either * this parameter or the StreamARN parameter.

*/ inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; } /** *

The name of the stream from which to retrieve a fragment list. Specify either * this parameter or the StreamARN parameter.

*/ inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; } /** *

The name of the stream from which to retrieve a fragment list. Specify either * this parameter or the StreamARN parameter.

*/ inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); } /** *

The name of the stream from which to retrieve a fragment list. Specify either * this parameter or the StreamARN parameter.

*/ inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); } /** *

The name of the stream from which to retrieve a fragment list. Specify either * this parameter or the StreamARN parameter.

*/ inline ListFragmentsRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;} /** *

The name of the stream from which to retrieve a fragment list. Specify either * this parameter or the StreamARN parameter.

*/ inline ListFragmentsRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;} /** *

The name of the stream from which to retrieve a fragment list. Specify either * this parameter or the StreamARN parameter.

*/ inline ListFragmentsRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the stream from which to retrieve a * fragment list. Specify either this parameter or the StreamName * parameter.

*/ inline const Aws::String& GetStreamARN() const{ return m_streamARN; } /** *

The Amazon Resource Name (ARN) of the stream from which to retrieve a * fragment list. Specify either this parameter or the StreamName * parameter.

*/ inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the stream from which to retrieve a * fragment list. Specify either this parameter or the StreamName * parameter.

*/ inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; } /** *

The Amazon Resource Name (ARN) of the stream from which to retrieve a * fragment list. Specify either this parameter or the StreamName * parameter.

*/ inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the stream from which to retrieve a * fragment list. Specify either this parameter or the StreamName * parameter.

*/ inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the stream from which to retrieve a * fragment list. Specify either this parameter or the StreamName * parameter.

*/ inline ListFragmentsRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the stream from which to retrieve a * fragment list. Specify either this parameter or the StreamName * parameter.

*/ inline ListFragmentsRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the stream from which to retrieve a * fragment list. Specify either this parameter or the StreamName * parameter.

*/ inline ListFragmentsRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;} /** *

The total number of fragments to return. If the total number of fragments * available is more than the value specified in max-results, then a * ListFragmentsOutput$NextToken is provided in the output that you can use * to resume pagination.

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

The total number of fragments to return. If the total number of fragments * available is more than the value specified in max-results, then a * ListFragmentsOutput$NextToken is provided in the output that you can use * to resume pagination.

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

The total number of fragments to return. If the total number of fragments * available is more than the value specified in max-results, then a * ListFragmentsOutput$NextToken is provided in the output that you can use * to resume pagination.

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

The total number of fragments to return. If the total number of fragments * available is more than the value specified in max-results, then a * ListFragmentsOutput$NextToken is provided in the output that you can use * to resume pagination.

*/ inline ListFragmentsRequest& WithMaxResults(long long value) { SetMaxResults(value); return *this;} /** *

A token to specify where to start paginating. This is the * ListFragmentsOutput$NextToken from a previously truncated response.

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

A token to specify where to start paginating. This is the * ListFragmentsOutput$NextToken from a previously truncated response.

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

A token to specify where to start paginating. This is the * ListFragmentsOutput$NextToken from a previously truncated response.

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

A token to specify where to start paginating. This is the * ListFragmentsOutput$NextToken from a previously truncated response.

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

A token to specify where to start paginating. This is the * ListFragmentsOutput$NextToken from a previously truncated response.

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

A token to specify where to start paginating. This is the * ListFragmentsOutput$NextToken from a previously truncated response.

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

A token to specify where to start paginating. This is the * ListFragmentsOutput$NextToken from a previously truncated response.

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

A token to specify where to start paginating. This is the * ListFragmentsOutput$NextToken from a previously truncated response.

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

Describes the timestamp range and timestamp origin for the range of fragments * to return.

*/ inline const FragmentSelector& GetFragmentSelector() const{ return m_fragmentSelector; } /** *

Describes the timestamp range and timestamp origin for the range of fragments * to return.

*/ inline bool FragmentSelectorHasBeenSet() const { return m_fragmentSelectorHasBeenSet; } /** *

Describes the timestamp range and timestamp origin for the range of fragments * to return.

*/ inline void SetFragmentSelector(const FragmentSelector& value) { m_fragmentSelectorHasBeenSet = true; m_fragmentSelector = value; } /** *

Describes the timestamp range and timestamp origin for the range of fragments * to return.

*/ inline void SetFragmentSelector(FragmentSelector&& value) { m_fragmentSelectorHasBeenSet = true; m_fragmentSelector = std::move(value); } /** *

Describes the timestamp range and timestamp origin for the range of fragments * to return.

*/ inline ListFragmentsRequest& WithFragmentSelector(const FragmentSelector& value) { SetFragmentSelector(value); return *this;} /** *

Describes the timestamp range and timestamp origin for the range of fragments * to return.

*/ inline ListFragmentsRequest& WithFragmentSelector(FragmentSelector&& value) { SetFragmentSelector(std::move(value)); return *this;} private: Aws::String m_streamName; bool m_streamNameHasBeenSet = false; Aws::String m_streamARN; bool m_streamARNHasBeenSet = false; long long m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; FragmentSelector m_fragmentSelector; bool m_fragmentSelectorHasBeenSet = false; }; } // namespace Model } // namespace KinesisVideoArchivedMedia } // namespace Aws