/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DatabaseMigrationService { namespace Model { /** *

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

See Also:

AWS API * Reference

*/ class Connection { public: AWS_DATABASEMIGRATIONSERVICE_API Connection(); AWS_DATABASEMIGRATIONSERVICE_API Connection(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN of the replication instance.

*/ inline const Aws::String& GetReplicationInstanceArn() const{ return m_replicationInstanceArn; } /** *

The ARN of the replication instance.

*/ inline bool ReplicationInstanceArnHasBeenSet() const { return m_replicationInstanceArnHasBeenSet; } /** *

The ARN of the replication instance.

*/ inline void SetReplicationInstanceArn(const Aws::String& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = value; } /** *

The ARN of the replication instance.

*/ inline void SetReplicationInstanceArn(Aws::String&& value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn = std::move(value); } /** *

The ARN of the replication instance.

*/ inline void SetReplicationInstanceArn(const char* value) { m_replicationInstanceArnHasBeenSet = true; m_replicationInstanceArn.assign(value); } /** *

The ARN of the replication instance.

*/ inline Connection& WithReplicationInstanceArn(const Aws::String& value) { SetReplicationInstanceArn(value); return *this;} /** *

The ARN of the replication instance.

*/ inline Connection& WithReplicationInstanceArn(Aws::String&& value) { SetReplicationInstanceArn(std::move(value)); return *this;} /** *

The ARN of the replication instance.

*/ inline Connection& WithReplicationInstanceArn(const char* value) { SetReplicationInstanceArn(value); return *this;} /** *

The ARN string that uniquely identifies the endpoint.

*/ inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; } /** *

The ARN string that uniquely identifies the endpoint.

*/ inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; } /** *

The ARN string that uniquely identifies the endpoint.

*/ inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; } /** *

The ARN string that uniquely identifies the endpoint.

*/ inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); } /** *

The ARN string that uniquely identifies the endpoint.

*/ inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); } /** *

The ARN string that uniquely identifies the endpoint.

*/ inline Connection& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;} /** *

The ARN string that uniquely identifies the endpoint.

*/ inline Connection& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;} /** *

The ARN string that uniquely identifies the endpoint.

*/ inline Connection& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;} /** *

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

  • "successful"

  • * "testing"

  • "failed"

  • *

    "deleting"

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

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

  • "successful"

  • * "testing"

  • "failed"

  • *

    "deleting"

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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

  • "successful"

  • * "testing"

  • "failed"

  • *

    "deleting"

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

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

  • "successful"

  • * "testing"

  • "failed"

  • *

    "deleting"

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

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

  • "successful"

  • * "testing"

  • "failed"

  • *

    "deleting"

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

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

  • "successful"

  • * "testing"

  • "failed"

  • *

    "deleting"

*/ inline Connection& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

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

  • "successful"

  • * "testing"

  • "failed"

  • *

    "deleting"

*/ inline Connection& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

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

  • "successful"

  • * "testing"

  • "failed"

  • *

    "deleting"

*/ inline Connection& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The error message when the connection last failed.

*/ inline const Aws::String& GetLastFailureMessage() const{ return m_lastFailureMessage; } /** *

The error message when the connection last failed.

*/ inline bool LastFailureMessageHasBeenSet() const { return m_lastFailureMessageHasBeenSet; } /** *

The error message when the connection last failed.

*/ inline void SetLastFailureMessage(const Aws::String& value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage = value; } /** *

The error message when the connection last failed.

*/ inline void SetLastFailureMessage(Aws::String&& value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage = std::move(value); } /** *

The error message when the connection last failed.

*/ inline void SetLastFailureMessage(const char* value) { m_lastFailureMessageHasBeenSet = true; m_lastFailureMessage.assign(value); } /** *

The error message when the connection last failed.

*/ inline Connection& WithLastFailureMessage(const Aws::String& value) { SetLastFailureMessage(value); return *this;} /** *

The error message when the connection last failed.

*/ inline Connection& WithLastFailureMessage(Aws::String&& value) { SetLastFailureMessage(std::move(value)); return *this;} /** *

The error message when the connection last failed.

*/ inline Connection& WithLastFailureMessage(const char* value) { SetLastFailureMessage(value); return *this;} /** *

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.

*/ inline const Aws::String& GetEndpointIdentifier() const{ return m_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.

*/ inline bool EndpointIdentifierHasBeenSet() const { return m_endpointIdentifierHasBeenSet; } /** *

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.

*/ inline void SetEndpointIdentifier(const Aws::String& value) { m_endpointIdentifierHasBeenSet = true; m_endpointIdentifier = value; } /** *

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.

*/ inline void SetEndpointIdentifier(Aws::String&& value) { m_endpointIdentifierHasBeenSet = true; m_endpointIdentifier = std::move(value); } /** *

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.

*/ inline void SetEndpointIdentifier(const char* value) { m_endpointIdentifierHasBeenSet = true; m_endpointIdentifier.assign(value); } /** *

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.

*/ inline Connection& WithEndpointIdentifier(const Aws::String& value) { SetEndpointIdentifier(value); return *this;} /** *

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.

*/ inline Connection& WithEndpointIdentifier(Aws::String&& value) { SetEndpointIdentifier(std::move(value)); return *this;} /** *

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.

*/ inline Connection& WithEndpointIdentifier(const char* value) { SetEndpointIdentifier(value); return *this;} /** *

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

*/ inline const Aws::String& GetReplicationInstanceIdentifier() const{ return m_replicationInstanceIdentifier; } /** *

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

*/ inline bool ReplicationInstanceIdentifierHasBeenSet() const { return m_replicationInstanceIdentifierHasBeenSet; } /** *

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

*/ inline void SetReplicationInstanceIdentifier(const Aws::String& value) { m_replicationInstanceIdentifierHasBeenSet = true; m_replicationInstanceIdentifier = value; } /** *

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

*/ inline void SetReplicationInstanceIdentifier(Aws::String&& value) { m_replicationInstanceIdentifierHasBeenSet = true; m_replicationInstanceIdentifier = std::move(value); } /** *

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

*/ inline void SetReplicationInstanceIdentifier(const char* value) { m_replicationInstanceIdentifierHasBeenSet = true; m_replicationInstanceIdentifier.assign(value); } /** *

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

*/ inline Connection& WithReplicationInstanceIdentifier(const Aws::String& value) { SetReplicationInstanceIdentifier(value); return *this;} /** *

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

*/ inline Connection& WithReplicationInstanceIdentifier(Aws::String&& value) { SetReplicationInstanceIdentifier(std::move(value)); return *this;} /** *

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

*/ inline Connection& WithReplicationInstanceIdentifier(const char* value) { SetReplicationInstanceIdentifier(value); return *this;} private: Aws::String m_replicationInstanceArn; bool m_replicationInstanceArnHasBeenSet = false; Aws::String m_endpointArn; bool m_endpointArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_lastFailureMessage; bool m_lastFailureMessageHasBeenSet = false; Aws::String m_endpointIdentifier; bool m_endpointIdentifierHasBeenSet = false; Aws::String m_replicationInstanceIdentifier; bool m_replicationInstanceIdentifierHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws