/* * Copyright 2018-2023 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. */ package com.amazonaws.services.databasemigrationservice.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Status of the connection between an endpoint and a replication instance, including Amazon Resource Names (ARNs) and * the last error message issued. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Connection implements Serializable, Cloneable, StructuredPojo { /** *

* The ARN of the replication instance. *

*/ private String replicationInstanceArn; /** *

* The ARN string that uniquely identifies the endpoint. *

*/ private String endpointArn; /** *

* The connection status. This parameter can return one of the following values: *

* */ private String status; /** *

* The error message when the connection last failed. *

*/ private String lastFailureMessage; /** *

* 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. *

*/ private String endpointIdentifier; /** *

* The replication instance identifier. This parameter is stored as a lowercase string. *

*/ private String replicationInstanceIdentifier; /** *

* The ARN of the replication instance. *

* * @param replicationInstanceArn * The ARN of the replication instance. */ public void setReplicationInstanceArn(String replicationInstanceArn) { this.replicationInstanceArn = replicationInstanceArn; } /** *

* The ARN of the replication instance. *

* * @return The ARN of the replication instance. */ public String getReplicationInstanceArn() { return this.replicationInstanceArn; } /** *

* The ARN of the replication instance. *

* * @param replicationInstanceArn * The ARN of the replication instance. * @return Returns a reference to this object so that method calls can be chained together. */ public Connection withReplicationInstanceArn(String replicationInstanceArn) { setReplicationInstanceArn(replicationInstanceArn); return this; } /** *

* The ARN string that uniquely identifies the endpoint. *

* * @param endpointArn * The ARN string that uniquely identifies the endpoint. */ public void setEndpointArn(String endpointArn) { this.endpointArn = endpointArn; } /** *

* The ARN string that uniquely identifies the endpoint. *

* * @return The ARN string that uniquely identifies the endpoint. */ public String getEndpointArn() { return this.endpointArn; } /** *

* The ARN string that uniquely identifies the endpoint. *

* * @param endpointArn * The ARN string that uniquely identifies the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Connection withEndpointArn(String endpointArn) { setEndpointArn(endpointArn); return this; } /** *

* The connection status. This parameter can return one of the following values: *

* * * @param status * The connection status. This parameter can return one of the following values:

*