/*
* 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 kinesis-video-signaling-2019-12-04.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.KinesisVideoSignalingChannels.Model
{
///
/// A structure for the ICE server connection data.
///
public partial class IceServer
{
private string _password;
private int? _ttl;
private List _uris = new List();
private string _username;
///
/// Gets and sets the property Password.
///
/// A password to login to the ICE server.
///
///
[AWSProperty(Min=1, Max=256)]
public string Password
{
get { return this._password; }
set { this._password = value; }
}
// Check to see if Password property is set
internal bool IsSetPassword()
{
return this._password != null;
}
///
/// Gets and sets the property Ttl.
///
/// The period of time, in seconds, during which the username and password are valid.
///
///
[AWSProperty(Min=30, Max=86400)]
public int Ttl
{
get { return this._ttl.GetValueOrDefault(); }
set { this._ttl = value; }
}
// Check to see if Ttl property is set
internal bool IsSetTtl()
{
return this._ttl.HasValue;
}
///
/// Gets and sets the property Uris.
///
/// An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris
/// spec. These URIs provide the different addresses and/or protocols that can be used
/// to reach the TURN server.
///
///
public List Uris
{
get { return this._uris; }
set { this._uris = value; }
}
// Check to see if Uris property is set
internal bool IsSetUris()
{
return this._uris != null && this._uris.Count > 0;
}
///
/// Gets and sets the property Username.
///
/// A username to login to the ICE server.
///
///
[AWSProperty(Min=1, Max=256)]
public string Username
{
get { return this._username; }
set { this._username = value; }
}
// Check to see if Username property is set
internal bool IsSetUsername()
{
return this._username != null;
}
}
}