/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.kinesisvideo.model; import java.io.Serializable; /** *
* The configuration details that consist of the credentials required (
* MediaUriSecretArn
and MediaUriType
) to access the
* media files that are streamed to the camera.
*
* The Amazon Web Services Secrets Manager ARN for the username and password * of the camera, or a local media file location. *
*
* Constraints:
* Length: 20 - 2048
* Pattern:
* arn:[a-z\d-]+:secretsmanager:[a-z0-9-]+:[0-9]+:secret:[a-zA-Z0-9_.-]+
*
*/
private String mediaUriSecretArn;
/**
*
* 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 .
*
* Constraints:
* Allowed Values: RTSP_URI, FILE_URI
*/
private String mediaUriType;
/**
*
* The Amazon Web Services Secrets Manager ARN for the username and password * of the camera, or a local media file location. *
*
* Constraints:
* Length: 20 - 2048
* Pattern:
* arn:[a-z\d-]+:secretsmanager:[a-z0-9-]+:[0-9]+:secret:[a-zA-Z0-9_.-]+
*
*
* @return
* The Amazon Web Services Secrets Manager ARN for the username and * password of the camera, or a local media file location. *
*/ public String getMediaUriSecretArn() { return mediaUriSecretArn; } /** ** The Amazon Web Services Secrets Manager ARN for the username and password * of the camera, or a local media file location. *
*
* Constraints:
* Length: 20 - 2048
* Pattern:
* arn:[a-z\d-]+:secretsmanager:[a-z0-9-]+:[0-9]+:secret:[a-zA-Z0-9_.-]+
*
*
* @param mediaUriSecretArn
* The Amazon Web Services Secrets Manager ARN for the username * and password of the camera, or a local media file location. *
*/ public void setMediaUriSecretArn(String mediaUriSecretArn) { this.mediaUriSecretArn = mediaUriSecretArn; } /** ** The Amazon Web Services Secrets Manager ARN for the username and password * of the camera, or a local media file location. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 20 - 2048
* Pattern:
* arn:[a-z\d-]+:secretsmanager:[a-z0-9-]+:[0-9]+:secret:[a-zA-Z0-9_.-]+
*
*
* @param mediaUriSecretArn
* The Amazon Web Services Secrets Manager ARN for the username * and password of the camera, or a local media file location. *
* @return A reference to this updated object so that method calls can be * chained together. */ public MediaSourceConfig withMediaUriSecretArn(String mediaUriSecretArn) { this.mediaUriSecretArn = mediaUriSecretArn; 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 .
*
* Constraints:
* Allowed Values: RTSP_URI, FILE_URI
*
* @return
* 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 .
*
* 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 .
*
* Constraints:
* Allowed Values: RTSP_URI, FILE_URI
*
* @param 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 .
*
* 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 .
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: RTSP_URI, FILE_URI
*
* @param 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 .
*
* 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 .
*
* Constraints:
* Allowed Values: RTSP_URI, FILE_URI
*
* @param 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 .
*
* 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 .
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: RTSP_URI, FILE_URI
*
* @param 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 .
*