/*
* 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 dms-2016-01-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.DatabaseMigrationService.Model
{
///
/// Status of the connection between an endpoint and a replication instance, including
/// Amazon Resource Names (ARNs) and the last error message issued.
///
public partial class Connection
{
private string _endpointArn;
private string _endpointIdentifier;
private string _lastFailureMessage;
private string _replicationInstanceArn;
private string _replicationInstanceIdentifier;
private string _status;
///
/// Gets and sets the property EndpointArn.
///
/// The ARN string that uniquely identifies the endpoint.
///
///
public string EndpointArn
{
get { return this._endpointArn; }
set { this._endpointArn = value; }
}
// Check to see if EndpointArn property is set
internal bool IsSetEndpointArn()
{
return this._endpointArn != null;
}
///
/// Gets and sets the property EndpointIdentifier.
///
/// The identifier of the endpoint. Identifiers must begin with a letter and must contain
/// only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two
/// consecutive hyphens.
///
///
public string EndpointIdentifier
{
get { return this._endpointIdentifier; }
set { this._endpointIdentifier = value; }
}
// Check to see if EndpointIdentifier property is set
internal bool IsSetEndpointIdentifier()
{
return this._endpointIdentifier != null;
}
///
/// Gets and sets the property LastFailureMessage.
///
/// The error message when the connection last failed.
///
///
public string LastFailureMessage
{
get { return this._lastFailureMessage; }
set { this._lastFailureMessage = value; }
}
// Check to see if LastFailureMessage property is set
internal bool IsSetLastFailureMessage()
{
return this._lastFailureMessage != null;
}
///
/// Gets and sets the property ReplicationInstanceArn.
///
/// The ARN of the replication instance.
///
///
public string ReplicationInstanceArn
{
get { return this._replicationInstanceArn; }
set { this._replicationInstanceArn = value; }
}
// Check to see if ReplicationInstanceArn property is set
internal bool IsSetReplicationInstanceArn()
{
return this._replicationInstanceArn != null;
}
///
/// Gets and sets the property ReplicationInstanceIdentifier.
///
/// The replication instance identifier. This parameter is stored as a lowercase string.
///
///
public string ReplicationInstanceIdentifier
{
get { return this._replicationInstanceIdentifier; }
set { this._replicationInstanceIdentifier = value; }
}
// Check to see if ReplicationInstanceIdentifier property is set
internal bool IsSetReplicationInstanceIdentifier()
{
return this._replicationInstanceIdentifier != null;
}
///
/// Gets and sets the property Status.
///
/// The connection status. This parameter can return one of the following values:
///
/// -
///
///
"successful"
///
/// -
///
///
"testing"
///
/// -
///
///
"failed"
///
/// -
///
///
"deleting"
///
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}