/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the kinesisvideo-2017-09-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.KinesisVideo.Model { /// /// An object describing a Kinesis video stream. /// public partial class StreamInfo { private DateTime? _creationTime; private int? _dataRetentionInHours; private string _deviceName; private string _kmsKeyId; private string _mediaType; private Status _status; private string _streamARN; private string _streamName; private string _version; /// /// Gets and sets the property CreationTime. /// /// A time stamp that indicates when the stream was created. /// /// public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// /// Gets and sets the property DataRetentionInHours. /// /// How long the stream retains data, in hours. /// /// [AWSProperty(Min=0)] public int DataRetentionInHours { get { return this._dataRetentionInHours.GetValueOrDefault(); } set { this._dataRetentionInHours = value; } } // Check to see if DataRetentionInHours property is set internal bool IsSetDataRetentionInHours() { return this._dataRetentionInHours.HasValue; } /// /// Gets and sets the property DeviceName. /// /// The name of the device that is associated with the stream. /// /// [AWSProperty(Min=1, Max=128)] public string DeviceName { get { return this._deviceName; } set { this._deviceName = value; } } // Check to see if DeviceName property is set internal bool IsSetDeviceName() { return this._deviceName != null; } /// /// Gets and sets the property KmsKeyId. /// /// The ID of the Key Management Service (KMS) key that Kinesis Video Streams uses to /// encrypt data on the stream. /// /// [AWSProperty(Min=1, Max=2048)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property MediaType. /// /// The MediaType of the stream. /// /// [AWSProperty(Min=1, Max=128)] public string MediaType { get { return this._mediaType; } set { this._mediaType = value; } } // Check to see if MediaType property is set internal bool IsSetMediaType() { return this._mediaType != null; } /// /// Gets and sets the property Status. /// /// The status of the stream. /// /// public Status Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property StreamARN. /// /// The Amazon Resource Name (ARN) of the stream. /// /// [AWSProperty(Min=1, Max=1024)] public string StreamARN { get { return this._streamARN; } set { this._streamARN = value; } } // Check to see if StreamARN property is set internal bool IsSetStreamARN() { return this._streamARN != null; } /// /// Gets and sets the property StreamName. /// /// The name of the stream. /// /// [AWSProperty(Min=1, Max=256)] public string StreamName { get { return this._streamName; } set { this._streamName = value; } } // Check to see if StreamName property is set internal bool IsSetStreamName() { return this._streamName != null; } /// /// Gets and sets the property Version. /// /// The version of the stream. /// /// [AWSProperty(Min=1, Max=64)] public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } } }