/*
* 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 discovery-2015-11-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.ApplicationDiscoveryService.Model
{
///
/// Details about neighboring servers.
///
public partial class NeighborConnectionDetail
{
private long? _connectionsCount;
private int? _destinationPort;
private string _destinationServerId;
private string _sourceServerId;
private string _transportProtocol;
///
/// Gets and sets the property ConnectionsCount.
///
/// The number of open network connections with the neighboring server.
///
///
[AWSProperty(Required=true)]
public long ConnectionsCount
{
get { return this._connectionsCount.GetValueOrDefault(); }
set { this._connectionsCount = value; }
}
// Check to see if ConnectionsCount property is set
internal bool IsSetConnectionsCount()
{
return this._connectionsCount.HasValue;
}
///
/// Gets and sets the property DestinationPort.
///
/// The destination network port for the connection.
///
///
public int DestinationPort
{
get { return this._destinationPort.GetValueOrDefault(); }
set { this._destinationPort = value; }
}
// Check to see if DestinationPort property is set
internal bool IsSetDestinationPort()
{
return this._destinationPort.HasValue;
}
///
/// Gets and sets the property DestinationServerId.
///
/// The ID of the server that accepted the network connection.
///
///
[AWSProperty(Required=true, Max=200)]
public string DestinationServerId
{
get { return this._destinationServerId; }
set { this._destinationServerId = value; }
}
// Check to see if DestinationServerId property is set
internal bool IsSetDestinationServerId()
{
return this._destinationServerId != null;
}
///
/// Gets and sets the property SourceServerId.
///
/// The ID of the server that opened the network connection.
///
///
[AWSProperty(Required=true, Max=200)]
public string SourceServerId
{
get { return this._sourceServerId; }
set { this._sourceServerId = value; }
}
// Check to see if SourceServerId property is set
internal bool IsSetSourceServerId()
{
return this._sourceServerId != null;
}
///
/// Gets and sets the property TransportProtocol.
///
/// The network protocol used for the connection.
///
///
[AWSProperty(Max=10000)]
public string TransportProtocol
{
get { return this._transportProtocol; }
set { this._transportProtocol = value; }
}
// Check to see if TransportProtocol property is set
internal bool IsSetTransportProtocol()
{
return this._transportProtocol != null;
}
}
}