This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-dms/include/aws/dms/model/ReplicationTaskStats.h

379 lines
14 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DatabaseMigrationService
{
namespace Model
{
/**
* <p>In response to a request by the <code>DescribeReplicationTasks</code>
* operation, this object provides a collection of statistics about a replication
* task.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReplicationTaskStats">AWS
* API Reference</a></p>
*/
class AWS_DATABASEMIGRATIONSERVICE_API ReplicationTaskStats
{
public:
ReplicationTaskStats();
ReplicationTaskStats(Aws::Utils::Json::JsonView jsonValue);
ReplicationTaskStats& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The percent complete for the full load migration task.</p>
*/
inline int GetFullLoadProgressPercent() const{ return m_fullLoadProgressPercent; }
/**
* <p>The percent complete for the full load migration task.</p>
*/
inline bool FullLoadProgressPercentHasBeenSet() const { return m_fullLoadProgressPercentHasBeenSet; }
/**
* <p>The percent complete for the full load migration task.</p>
*/
inline void SetFullLoadProgressPercent(int value) { m_fullLoadProgressPercentHasBeenSet = true; m_fullLoadProgressPercent = value; }
/**
* <p>The percent complete for the full load migration task.</p>
*/
inline ReplicationTaskStats& WithFullLoadProgressPercent(int value) { SetFullLoadProgressPercent(value); return *this;}
/**
* <p>The elapsed time of the task, in milliseconds.</p>
*/
inline long long GetElapsedTimeMillis() const{ return m_elapsedTimeMillis; }
/**
* <p>The elapsed time of the task, in milliseconds.</p>
*/
inline bool ElapsedTimeMillisHasBeenSet() const { return m_elapsedTimeMillisHasBeenSet; }
/**
* <p>The elapsed time of the task, in milliseconds.</p>
*/
inline void SetElapsedTimeMillis(long long value) { m_elapsedTimeMillisHasBeenSet = true; m_elapsedTimeMillis = value; }
/**
* <p>The elapsed time of the task, in milliseconds.</p>
*/
inline ReplicationTaskStats& WithElapsedTimeMillis(long long value) { SetElapsedTimeMillis(value); return *this;}
/**
* <p>The number of tables loaded for this task.</p>
*/
inline int GetTablesLoaded() const{ return m_tablesLoaded; }
/**
* <p>The number of tables loaded for this task.</p>
*/
inline bool TablesLoadedHasBeenSet() const { return m_tablesLoadedHasBeenSet; }
/**
* <p>The number of tables loaded for this task.</p>
*/
inline void SetTablesLoaded(int value) { m_tablesLoadedHasBeenSet = true; m_tablesLoaded = value; }
/**
* <p>The number of tables loaded for this task.</p>
*/
inline ReplicationTaskStats& WithTablesLoaded(int value) { SetTablesLoaded(value); return *this;}
/**
* <p>The number of tables currently loading for this task.</p>
*/
inline int GetTablesLoading() const{ return m_tablesLoading; }
/**
* <p>The number of tables currently loading for this task.</p>
*/
inline bool TablesLoadingHasBeenSet() const { return m_tablesLoadingHasBeenSet; }
/**
* <p>The number of tables currently loading for this task.</p>
*/
inline void SetTablesLoading(int value) { m_tablesLoadingHasBeenSet = true; m_tablesLoading = value; }
/**
* <p>The number of tables currently loading for this task.</p>
*/
inline ReplicationTaskStats& WithTablesLoading(int value) { SetTablesLoading(value); return *this;}
/**
* <p>The number of tables queued for this task.</p>
*/
inline int GetTablesQueued() const{ return m_tablesQueued; }
/**
* <p>The number of tables queued for this task.</p>
*/
inline bool TablesQueuedHasBeenSet() const { return m_tablesQueuedHasBeenSet; }
/**
* <p>The number of tables queued for this task.</p>
*/
inline void SetTablesQueued(int value) { m_tablesQueuedHasBeenSet = true; m_tablesQueued = value; }
/**
* <p>The number of tables queued for this task.</p>
*/
inline ReplicationTaskStats& WithTablesQueued(int value) { SetTablesQueued(value); return *this;}
/**
* <p>The number of errors that have occurred during this task.</p>
*/
inline int GetTablesErrored() const{ return m_tablesErrored; }
/**
* <p>The number of errors that have occurred during this task.</p>
*/
inline bool TablesErroredHasBeenSet() const { return m_tablesErroredHasBeenSet; }
/**
* <p>The number of errors that have occurred during this task.</p>
*/
inline void SetTablesErrored(int value) { m_tablesErroredHasBeenSet = true; m_tablesErrored = value; }
/**
* <p>The number of errors that have occurred during this task.</p>
*/
inline ReplicationTaskStats& WithTablesErrored(int value) { SetTablesErrored(value); return *this;}
/**
* <p>The date the replication task was started either with a fresh start or a
* target reload.</p>
*/
inline const Aws::Utils::DateTime& GetFreshStartDate() const{ return m_freshStartDate; }
/**
* <p>The date the replication task was started either with a fresh start or a
* target reload.</p>
*/
inline bool FreshStartDateHasBeenSet() const { return m_freshStartDateHasBeenSet; }
/**
* <p>The date the replication task was started either with a fresh start or a
* target reload.</p>
*/
inline void SetFreshStartDate(const Aws::Utils::DateTime& value) { m_freshStartDateHasBeenSet = true; m_freshStartDate = value; }
/**
* <p>The date the replication task was started either with a fresh start or a
* target reload.</p>
*/
inline void SetFreshStartDate(Aws::Utils::DateTime&& value) { m_freshStartDateHasBeenSet = true; m_freshStartDate = std::move(value); }
/**
* <p>The date the replication task was started either with a fresh start or a
* target reload.</p>
*/
inline ReplicationTaskStats& WithFreshStartDate(const Aws::Utils::DateTime& value) { SetFreshStartDate(value); return *this;}
/**
* <p>The date the replication task was started either with a fresh start or a
* target reload.</p>
*/
inline ReplicationTaskStats& WithFreshStartDate(Aws::Utils::DateTime&& value) { SetFreshStartDate(std::move(value)); return *this;}
/**
* <p>The date the replication task was started either with a fresh start or a
* resume. For more information, see <a
* href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html#DMS-StartReplicationTask-request-StartReplicationTaskType">StartReplicationTaskType</a>.</p>
*/
inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
/**
* <p>The date the replication task was started either with a fresh start or a
* resume. For more information, see <a
* href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html#DMS-StartReplicationTask-request-StartReplicationTaskType">StartReplicationTaskType</a>.</p>
*/
inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
/**
* <p>The date the replication task was started either with a fresh start or a
* resume. For more information, see <a
* href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html#DMS-StartReplicationTask-request-StartReplicationTaskType">StartReplicationTaskType</a>.</p>
*/
inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
/**
* <p>The date the replication task was started either with a fresh start or a
* resume. For more information, see <a
* href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html#DMS-StartReplicationTask-request-StartReplicationTaskType">StartReplicationTaskType</a>.</p>
*/
inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
/**
* <p>The date the replication task was started either with a fresh start or a
* resume. For more information, see <a
* href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html#DMS-StartReplicationTask-request-StartReplicationTaskType">StartReplicationTaskType</a>.</p>
*/
inline ReplicationTaskStats& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
/**
* <p>The date the replication task was started either with a fresh start or a
* resume. For more information, see <a
* href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html#DMS-StartReplicationTask-request-StartReplicationTaskType">StartReplicationTaskType</a>.</p>
*/
inline ReplicationTaskStats& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
/**
* <p>The date the replication task was stopped.</p>
*/
inline const Aws::Utils::DateTime& GetStopDate() const{ return m_stopDate; }
/**
* <p>The date the replication task was stopped.</p>
*/
inline bool StopDateHasBeenSet() const { return m_stopDateHasBeenSet; }
/**
* <p>The date the replication task was stopped.</p>
*/
inline void SetStopDate(const Aws::Utils::DateTime& value) { m_stopDateHasBeenSet = true; m_stopDate = value; }
/**
* <p>The date the replication task was stopped.</p>
*/
inline void SetStopDate(Aws::Utils::DateTime&& value) { m_stopDateHasBeenSet = true; m_stopDate = std::move(value); }
/**
* <p>The date the replication task was stopped.</p>
*/
inline ReplicationTaskStats& WithStopDate(const Aws::Utils::DateTime& value) { SetStopDate(value); return *this;}
/**
* <p>The date the replication task was stopped.</p>
*/
inline ReplicationTaskStats& WithStopDate(Aws::Utils::DateTime&& value) { SetStopDate(std::move(value)); return *this;}
/**
* <p>The date the replication task full load was started.</p>
*/
inline const Aws::Utils::DateTime& GetFullLoadStartDate() const{ return m_fullLoadStartDate; }
/**
* <p>The date the replication task full load was started.</p>
*/
inline bool FullLoadStartDateHasBeenSet() const { return m_fullLoadStartDateHasBeenSet; }
/**
* <p>The date the replication task full load was started.</p>
*/
inline void SetFullLoadStartDate(const Aws::Utils::DateTime& value) { m_fullLoadStartDateHasBeenSet = true; m_fullLoadStartDate = value; }
/**
* <p>The date the replication task full load was started.</p>
*/
inline void SetFullLoadStartDate(Aws::Utils::DateTime&& value) { m_fullLoadStartDateHasBeenSet = true; m_fullLoadStartDate = std::move(value); }
/**
* <p>The date the replication task full load was started.</p>
*/
inline ReplicationTaskStats& WithFullLoadStartDate(const Aws::Utils::DateTime& value) { SetFullLoadStartDate(value); return *this;}
/**
* <p>The date the replication task full load was started.</p>
*/
inline ReplicationTaskStats& WithFullLoadStartDate(Aws::Utils::DateTime&& value) { SetFullLoadStartDate(std::move(value)); return *this;}
/**
* <p>The date the replication task full load was completed.</p>
*/
inline const Aws::Utils::DateTime& GetFullLoadFinishDate() const{ return m_fullLoadFinishDate; }
/**
* <p>The date the replication task full load was completed.</p>
*/
inline bool FullLoadFinishDateHasBeenSet() const { return m_fullLoadFinishDateHasBeenSet; }
/**
* <p>The date the replication task full load was completed.</p>
*/
inline void SetFullLoadFinishDate(const Aws::Utils::DateTime& value) { m_fullLoadFinishDateHasBeenSet = true; m_fullLoadFinishDate = value; }
/**
* <p>The date the replication task full load was completed.</p>
*/
inline void SetFullLoadFinishDate(Aws::Utils::DateTime&& value) { m_fullLoadFinishDateHasBeenSet = true; m_fullLoadFinishDate = std::move(value); }
/**
* <p>The date the replication task full load was completed.</p>
*/
inline ReplicationTaskStats& WithFullLoadFinishDate(const Aws::Utils::DateTime& value) { SetFullLoadFinishDate(value); return *this;}
/**
* <p>The date the replication task full load was completed.</p>
*/
inline ReplicationTaskStats& WithFullLoadFinishDate(Aws::Utils::DateTime&& value) { SetFullLoadFinishDate(std::move(value)); return *this;}
private:
int m_fullLoadProgressPercent;
bool m_fullLoadProgressPercentHasBeenSet;
long long m_elapsedTimeMillis;
bool m_elapsedTimeMillisHasBeenSet;
int m_tablesLoaded;
bool m_tablesLoadedHasBeenSet;
int m_tablesLoading;
bool m_tablesLoadingHasBeenSet;
int m_tablesQueued;
bool m_tablesQueuedHasBeenSet;
int m_tablesErrored;
bool m_tablesErroredHasBeenSet;
Aws::Utils::DateTime m_freshStartDate;
bool m_freshStartDateHasBeenSet;
Aws::Utils::DateTime m_startDate;
bool m_startDateHasBeenSet;
Aws::Utils::DateTime m_stopDate;
bool m_stopDateHasBeenSet;
Aws::Utils::DateTime m_fullLoadStartDate;
bool m_fullLoadStartDateHasBeenSet;
Aws::Utils::DateTime m_fullLoadFinishDate;
bool m_fullLoadFinishDateHasBeenSet;
};
} // namespace Model
} // namespace DatabaseMigrationService
} // namespace Aws