/*
* 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 chime-2018-05-01.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.Chime.Model
{
///
/// The details of the SIP media application, including name and endpoints. An AWS account
/// can have multiple SIP media applications.
///
public partial class SipMediaApplication
{
private string _awsRegion;
private DateTime? _createdTimestamp;
private List _endpoints = new List();
private string _name;
private string _sipMediaApplicationId;
private DateTime? _updatedTimestamp;
///
/// Gets and sets the property AwsRegion.
///
/// The AWS Region in which the SIP media application is created.
///
///
public string AwsRegion
{
get { return this._awsRegion; }
set { this._awsRegion = value; }
}
// Check to see if AwsRegion property is set
internal bool IsSetAwsRegion()
{
return this._awsRegion != null;
}
///
/// Gets and sets the property CreatedTimestamp.
///
/// The SIP media application creation timestamp, in ISO 8601 format.
///
///
public DateTime CreatedTimestamp
{
get { return this._createdTimestamp.GetValueOrDefault(); }
set { this._createdTimestamp = value; }
}
// Check to see if CreatedTimestamp property is set
internal bool IsSetCreatedTimestamp()
{
return this._createdTimestamp.HasValue;
}
///
/// Gets and sets the property Endpoints.
///
/// List of endpoints for SIP media application. Currently, only one endpoint per SIP
/// media application is permitted.
///
///
[AWSProperty(Min=1, Max=1)]
public List Endpoints
{
get { return this._endpoints; }
set { this._endpoints = value; }
}
// Check to see if Endpoints property is set
internal bool IsSetEndpoints()
{
return this._endpoints != null && this._endpoints.Count > 0;
}
///
/// Gets and sets the property Name.
///
/// The name of the SIP media application.
///
///
[AWSProperty(Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property SipMediaApplicationId.
///
/// The SIP media application ID.
///
///
public string SipMediaApplicationId
{
get { return this._sipMediaApplicationId; }
set { this._sipMediaApplicationId = value; }
}
// Check to see if SipMediaApplicationId property is set
internal bool IsSetSipMediaApplicationId()
{
return this._sipMediaApplicationId != null;
}
///
/// Gets and sets the property UpdatedTimestamp.
///
/// The SIP media application updated timestamp, in ISO 8601 format.
///
///
public DateTime UpdatedTimestamp
{
get { return this._updatedTimestamp.GetValueOrDefault(); }
set { this._updatedTimestamp = value; }
}
// Check to see if UpdatedTimestamp property is set
internal bool IsSetUpdatedTimestamp()
{
return this._updatedTimestamp.HasValue;
}
}
}