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

Provides information that describes status of a schema at an endpoint * specified by the DescribeRefreshSchemaStatus * operation.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) string that uniquely identifies the * endpoint.

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

The Amazon Resource Name (ARN) string that uniquely identifies the * endpoint.

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

The Amazon Resource Name (ARN) string that uniquely identifies the * endpoint.

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

The Amazon Resource Name (ARN) string that uniquely identifies the * endpoint.

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

The Amazon Resource Name (ARN) string that uniquely identifies the * endpoint.

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

The Amazon Resource Name (ARN) string that uniquely identifies the * endpoint.

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

The Amazon Resource Name (ARN) string that uniquely identifies the * endpoint.

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

The Amazon Resource Name (ARN) string that uniquely identifies the * endpoint.

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

The Amazon Resource Name (ARN) of the replication instance.

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

The Amazon Resource Name (ARN) of the replication instance.

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

The Amazon Resource Name (ARN) of the replication instance.

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

The Amazon Resource Name (ARN) of the replication instance.

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

The Amazon Resource Name (ARN) of the replication instance.

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

The Amazon Resource Name (ARN) of the replication instance.

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

The Amazon Resource Name (ARN) of the replication instance.

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

The Amazon Resource Name (ARN) of the replication instance.

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

The status of the schema.

*/ inline const RefreshSchemasStatusTypeValue& GetStatus() const{ return m_status; } /** *

The status of the schema.

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

The status of the schema.

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

The status of the schema.

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

The status of the schema.

*/ inline RefreshSchemasStatus& WithStatus(const RefreshSchemasStatusTypeValue& value) { SetStatus(value); return *this;} /** *

The status of the schema.

*/ inline RefreshSchemasStatus& WithStatus(RefreshSchemasStatusTypeValue&& value) { SetStatus(std::move(value)); return *this;} /** *

The date the schema was last refreshed.

*/ inline const Aws::Utils::DateTime& GetLastRefreshDate() const{ return m_lastRefreshDate; } /** *

The date the schema was last refreshed.

*/ inline bool LastRefreshDateHasBeenSet() const { return m_lastRefreshDateHasBeenSet; } /** *

The date the schema was last refreshed.

*/ inline void SetLastRefreshDate(const Aws::Utils::DateTime& value) { m_lastRefreshDateHasBeenSet = true; m_lastRefreshDate = value; } /** *

The date the schema was last refreshed.

*/ inline void SetLastRefreshDate(Aws::Utils::DateTime&& value) { m_lastRefreshDateHasBeenSet = true; m_lastRefreshDate = std::move(value); } /** *

The date the schema was last refreshed.

*/ inline RefreshSchemasStatus& WithLastRefreshDate(const Aws::Utils::DateTime& value) { SetLastRefreshDate(value); return *this;} /** *

The date the schema was last refreshed.

*/ inline RefreshSchemasStatus& WithLastRefreshDate(Aws::Utils::DateTime&& value) { SetLastRefreshDate(std::move(value)); return *this;} /** *

The last failure message for the schema.

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

The last failure message for the schema.

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

The last failure message for the schema.

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

The last failure message for the schema.

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

The last failure message for the schema.

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

The last failure message for the schema.

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

The last failure message for the schema.

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

The last failure message for the schema.

*/ inline RefreshSchemasStatus& WithLastFailureMessage(const char* value) { SetLastFailureMessage(value); return *this;} private: Aws::String m_endpointArn; bool m_endpointArnHasBeenSet = false; Aws::String m_replicationInstanceArn; bool m_replicationInstanceArnHasBeenSet = false; RefreshSchemasStatusTypeValue m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_lastRefreshDate; bool m_lastRefreshDateHasBeenSet = false; Aws::String m_lastFailureMessage; bool m_lastFailureMessageHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws