/** * 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 KinesisVideoMedia { namespace Model { /** */ class GetMediaRequest : public KinesisVideoMediaRequest { public: AWS_KINESISVIDEOMEDIA_API GetMediaRequest(); // 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 "GetMedia"; } AWS_KINESISVIDEOMEDIA_API Aws::String SerializePayload() const override; /** *

The Kinesis video stream name from where you want to get the media content. * If you don't specify the streamName, you must specify the * streamARN.

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

The Kinesis video stream name from where you want to get the media content. * If you don't specify the streamName, you must specify the * streamARN.

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

The Kinesis video stream name from where you want to get the media content. * If you don't specify the streamName, you must specify the * streamARN.

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

The Kinesis video stream name from where you want to get the media content. * If you don't specify the streamName, you must specify the * streamARN.

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

The Kinesis video stream name from where you want to get the media content. * If you don't specify the streamName, you must specify the * streamARN.

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

The Kinesis video stream name from where you want to get the media content. * If you don't specify the streamName, you must specify the * streamARN.

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

The Kinesis video stream name from where you want to get the media content. * If you don't specify the streamName, you must specify the * streamARN.

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

The Kinesis video stream name from where you want to get the media content. * If you don't specify the streamName, you must specify the * streamARN.

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

The ARN of the stream from where you want to get the media content. If you * don't specify the streamARN, you must specify the * streamName.

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

The ARN of the stream from where you want to get the media content. If you * don't specify the streamARN, you must specify the * streamName.

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

The ARN of the stream from where you want to get the media content. If you * don't specify the streamARN, you must specify the * streamName.

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

The ARN of the stream from where you want to get the media content. If you * don't specify the streamARN, you must specify the * streamName.

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

The ARN of the stream from where you want to get the media content. If you * don't specify the streamARN, you must specify the * streamName.

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

The ARN of the stream from where you want to get the media content. If you * don't specify the streamARN, you must specify the * streamName.

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

The ARN of the stream from where you want to get the media content. If you * don't specify the streamARN, you must specify the * streamName.

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

The ARN of the stream from where you want to get the media content. If you * don't specify the streamARN, you must specify the * streamName.

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

Identifies the starting chunk to get from the specified stream.

*/ inline const StartSelector& GetStartSelector() const{ return m_startSelector; } /** *

Identifies the starting chunk to get from the specified stream.

*/ inline bool StartSelectorHasBeenSet() const { return m_startSelectorHasBeenSet; } /** *

Identifies the starting chunk to get from the specified stream.

*/ inline void SetStartSelector(const StartSelector& value) { m_startSelectorHasBeenSet = true; m_startSelector = value; } /** *

Identifies the starting chunk to get from the specified stream.

*/ inline void SetStartSelector(StartSelector&& value) { m_startSelectorHasBeenSet = true; m_startSelector = std::move(value); } /** *

Identifies the starting chunk to get from the specified stream.

*/ inline GetMediaRequest& WithStartSelector(const StartSelector& value) { SetStartSelector(value); return *this;} /** *

Identifies the starting chunk to get from the specified stream.

*/ inline GetMediaRequest& WithStartSelector(StartSelector&& value) { SetStartSelector(std::move(value)); return *this;} private: Aws::String m_streamName; bool m_streamNameHasBeenSet = false; Aws::String m_streamARN; bool m_streamARNHasBeenSet = false; StartSelector m_startSelector; bool m_startSelectorHasBeenSet = false; }; } // namespace Model } // namespace KinesisVideoMedia } // namespace Aws