/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace KinesisVideo { namespace Model { /** *

The configuration details that consist of the credentials required * (MediaUriSecretArn and MediaUriType) to access the * media files that are streamed to the camera.

See Also:

AWS * API Reference

*/ class MediaSourceConfig { public: AWS_KINESISVIDEO_API MediaSourceConfig(); AWS_KINESISVIDEO_API MediaSourceConfig(Aws::Utils::Json::JsonView jsonValue); AWS_KINESISVIDEO_API MediaSourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Web Services Secrets Manager ARN for the username and password of * the camera, or a local media file location.

*/ inline const Aws::String& GetMediaUriSecretArn() const{ return m_mediaUriSecretArn; } /** *

The Amazon Web Services Secrets Manager ARN for the username and password of * the camera, or a local media file location.

*/ inline bool MediaUriSecretArnHasBeenSet() const { return m_mediaUriSecretArnHasBeenSet; } /** *

The Amazon Web Services Secrets Manager ARN for the username and password of * the camera, or a local media file location.

*/ inline void SetMediaUriSecretArn(const Aws::String& value) { m_mediaUriSecretArnHasBeenSet = true; m_mediaUriSecretArn = value; } /** *

The Amazon Web Services Secrets Manager ARN for the username and password of * the camera, or a local media file location.

*/ inline void SetMediaUriSecretArn(Aws::String&& value) { m_mediaUriSecretArnHasBeenSet = true; m_mediaUriSecretArn = std::move(value); } /** *

The Amazon Web Services Secrets Manager ARN for the username and password of * the camera, or a local media file location.

*/ inline void SetMediaUriSecretArn(const char* value) { m_mediaUriSecretArnHasBeenSet = true; m_mediaUriSecretArn.assign(value); } /** *

The Amazon Web Services Secrets Manager ARN for the username and password of * the camera, or a local media file location.

*/ inline MediaSourceConfig& WithMediaUriSecretArn(const Aws::String& value) { SetMediaUriSecretArn(value); return *this;} /** *

The Amazon Web Services Secrets Manager ARN for the username and password of * the camera, or a local media file location.

*/ inline MediaSourceConfig& WithMediaUriSecretArn(Aws::String&& value) { SetMediaUriSecretArn(std::move(value)); return *this;} /** *

The Amazon Web Services Secrets Manager ARN for the username and password of * the camera, or a local media file location.

*/ inline MediaSourceConfig& WithMediaUriSecretArn(const char* value) { SetMediaUriSecretArn(value); return *this;} /** *

The Uniform Resource Identifier (URI) type. The FILE_URI value * can be used to stream local media files.

Preview only supports the * RTSP_URI media source URI format .

*/ inline const MediaUriType& GetMediaUriType() const{ return m_mediaUriType; } /** *

The Uniform Resource Identifier (URI) type. The FILE_URI value * can be used to stream local media files.

Preview only supports the * RTSP_URI media source URI format .

*/ inline bool MediaUriTypeHasBeenSet() const { return m_mediaUriTypeHasBeenSet; } /** *

The Uniform Resource Identifier (URI) type. The FILE_URI value * can be used to stream local media files.

Preview only supports the * RTSP_URI media source URI format .

*/ inline void SetMediaUriType(const MediaUriType& value) { m_mediaUriTypeHasBeenSet = true; m_mediaUriType = value; } /** *

The Uniform Resource Identifier (URI) type. The FILE_URI value * can be used to stream local media files.

Preview only supports the * RTSP_URI media source URI format .

*/ inline void SetMediaUriType(MediaUriType&& value) { m_mediaUriTypeHasBeenSet = true; m_mediaUriType = std::move(value); } /** *

The Uniform Resource Identifier (URI) type. The FILE_URI value * can be used to stream local media files.

Preview only supports the * RTSP_URI media source URI format .

*/ inline MediaSourceConfig& WithMediaUriType(const MediaUriType& value) { SetMediaUriType(value); return *this;} /** *

The Uniform Resource Identifier (URI) type. The FILE_URI value * can be used to stream local media files.

Preview only supports the * RTSP_URI media source URI format .

*/ inline MediaSourceConfig& WithMediaUriType(MediaUriType&& value) { SetMediaUriType(std::move(value)); return *this;} private: Aws::String m_mediaUriSecretArn; bool m_mediaUriSecretArnHasBeenSet = false; MediaUriType m_mediaUriType; bool m_mediaUriTypeHasBeenSet = false; }; } // namespace Model } // namespace KinesisVideo } // namespace Aws