Class Connection
- java.lang.Object
-
- com.amazonaws.services.databasemigrationservice.model.Connection
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Connection extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Connection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
clone()
boolean
equals(Object obj)
String
getEndpointArn()
The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.String
getEndpointIdentifier()
The identifier of the endpoint.String
getLastFailureMessage()
The error message when the connection last failed.String
getReplicationInstanceArn()
The Amazon Resource Name (ARN) of the replication instance.String
getReplicationInstanceIdentifier()
The replication instance identifier.String
getStatus()
The connection status.int
hashCode()
void
setEndpointArn(String endpointArn)
The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.void
setEndpointIdentifier(String endpointIdentifier)
The identifier of the endpoint.void
setLastFailureMessage(String lastFailureMessage)
The error message when the connection last failed.void
setReplicationInstanceArn(String replicationInstanceArn)
The Amazon Resource Name (ARN) of the replication instance.void
setReplicationInstanceIdentifier(String replicationInstanceIdentifier)
The replication instance identifier.void
setStatus(String status)
The connection status.String
toString()
Returns a string representation of this object; useful for testing and debugging.Connection
withEndpointArn(String endpointArn)
The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.Connection
withEndpointIdentifier(String endpointIdentifier)
The identifier of the endpoint.Connection
withLastFailureMessage(String lastFailureMessage)
The error message when the connection last failed.Connection
withReplicationInstanceArn(String replicationInstanceArn)
The Amazon Resource Name (ARN) of the replication instance.Connection
withReplicationInstanceIdentifier(String replicationInstanceIdentifier)
The replication instance identifier.Connection
withStatus(String status)
The connection status.
-
-
-
Method Detail
-
setReplicationInstanceArn
public void setReplicationInstanceArn(String replicationInstanceArn)
The Amazon Resource Name (ARN) of the replication instance.
- Parameters:
replicationInstanceArn
- The Amazon Resource Name (ARN) of the replication instance.
-
getReplicationInstanceArn
public String getReplicationInstanceArn()
The Amazon Resource Name (ARN) of the replication instance.
- Returns:
- The Amazon Resource Name (ARN) of the replication instance.
-
withReplicationInstanceArn
public Connection withReplicationInstanceArn(String replicationInstanceArn)
The Amazon Resource Name (ARN) of the replication instance.
- Parameters:
replicationInstanceArn
- The Amazon Resource Name (ARN) of the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndpointArn
public void setEndpointArn(String endpointArn)
The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
- Parameters:
endpointArn
- The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
-
getEndpointArn
public String getEndpointArn()
The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
- Returns:
- The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
-
withEndpointArn
public Connection withEndpointArn(String endpointArn)
The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
- Parameters:
endpointArn
- The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The connection status.
- Parameters:
status
- The connection status.
-
getStatus
public String getStatus()
The connection status.
- Returns:
- The connection status.
-
withStatus
public Connection withStatus(String status)
The connection status.
- Parameters:
status
- The connection status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastFailureMessage
public void setLastFailureMessage(String lastFailureMessage)
The error message when the connection last failed.
- Parameters:
lastFailureMessage
- The error message when the connection last failed.
-
getLastFailureMessage
public String getLastFailureMessage()
The error message when the connection last failed.
- Returns:
- The error message when the connection last failed.
-
withLastFailureMessage
public Connection withLastFailureMessage(String lastFailureMessage)
The error message when the connection last failed.
- Parameters:
lastFailureMessage
- The error message when the connection last failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndpointIdentifier
public void setEndpointIdentifier(String endpointIdentifier)
The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
- Parameters:
endpointIdentifier
- The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
-
getEndpointIdentifier
public String getEndpointIdentifier()
The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
- Returns:
- The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
-
withEndpointIdentifier
public Connection withEndpointIdentifier(String endpointIdentifier)
The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
- Parameters:
endpointIdentifier
- The identifier of the endpoint. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReplicationInstanceIdentifier
public void setReplicationInstanceIdentifier(String replicationInstanceIdentifier)
The replication instance identifier. This parameter is stored as a lowercase string.
- Parameters:
replicationInstanceIdentifier
- The replication instance identifier. This parameter is stored as a lowercase string.
-
getReplicationInstanceIdentifier
public String getReplicationInstanceIdentifier()
The replication instance identifier. This parameter is stored as a lowercase string.
- Returns:
- The replication instance identifier. This parameter is stored as a lowercase string.
-
withReplicationInstanceIdentifier
public Connection withReplicationInstanceIdentifier(String replicationInstanceIdentifier)
The replication instance identifier. This parameter is stored as a lowercase string.
- Parameters:
replicationInstanceIdentifier
- The replication instance identifier. This parameter is stored as a lowercase string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Connection clone()
-
-