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

Import task.

See Also:

AWS API * Reference

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

Import task creation datetime.

*/ inline const Aws::String& GetCreationDateTime() const{ return m_creationDateTime; } /** *

Import task creation datetime.

*/ inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *

Import task creation datetime.

*/ inline void SetCreationDateTime(const Aws::String& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } /** *

Import task creation datetime.

*/ inline void SetCreationDateTime(Aws::String&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } /** *

Import task creation datetime.

*/ inline void SetCreationDateTime(const char* value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime.assign(value); } /** *

Import task creation datetime.

*/ inline ImportTask& WithCreationDateTime(const Aws::String& value) { SetCreationDateTime(value); return *this;} /** *

Import task creation datetime.

*/ inline ImportTask& WithCreationDateTime(Aws::String&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *

Import task creation datetime.

*/ inline ImportTask& WithCreationDateTime(const char* value) { SetCreationDateTime(value); return *this;} /** *

Import task end datetime.

*/ inline const Aws::String& GetEndDateTime() const{ return m_endDateTime; } /** *

Import task end datetime.

*/ inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; } /** *

Import task end datetime.

*/ inline void SetEndDateTime(const Aws::String& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; } /** *

Import task end datetime.

*/ inline void SetEndDateTime(Aws::String&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); } /** *

Import task end datetime.

*/ inline void SetEndDateTime(const char* value) { m_endDateTimeHasBeenSet = true; m_endDateTime.assign(value); } /** *

Import task end datetime.

*/ inline ImportTask& WithEndDateTime(const Aws::String& value) { SetEndDateTime(value); return *this;} /** *

Import task end datetime.

*/ inline ImportTask& WithEndDateTime(Aws::String&& value) { SetEndDateTime(std::move(value)); return *this;} /** *

Import task end datetime.

*/ inline ImportTask& WithEndDateTime(const char* value) { SetEndDateTime(value); return *this;} /** *

Import task id.

*/ inline const Aws::String& GetImportID() const{ return m_importID; } /** *

Import task id.

*/ inline bool ImportIDHasBeenSet() const { return m_importIDHasBeenSet; } /** *

Import task id.

*/ inline void SetImportID(const Aws::String& value) { m_importIDHasBeenSet = true; m_importID = value; } /** *

Import task id.

*/ inline void SetImportID(Aws::String&& value) { m_importIDHasBeenSet = true; m_importID = std::move(value); } /** *

Import task id.

*/ inline void SetImportID(const char* value) { m_importIDHasBeenSet = true; m_importID.assign(value); } /** *

Import task id.

*/ inline ImportTask& WithImportID(const Aws::String& value) { SetImportID(value); return *this;} /** *

Import task id.

*/ inline ImportTask& WithImportID(Aws::String&& value) { SetImportID(std::move(value)); return *this;} /** *

Import task id.

*/ inline ImportTask& WithImportID(const char* value) { SetImportID(value); return *this;} /** *

Import task progress percentage.

*/ inline double GetProgressPercentage() const{ return m_progressPercentage; } /** *

Import task progress percentage.

*/ inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; } /** *

Import task progress percentage.

*/ inline void SetProgressPercentage(double value) { m_progressPercentageHasBeenSet = true; m_progressPercentage = value; } /** *

Import task progress percentage.

*/ inline ImportTask& WithProgressPercentage(double value) { SetProgressPercentage(value); return *this;} /** *

Import task s3 bucket source.

*/ inline const S3BucketSource& GetS3BucketSource() const{ return m_s3BucketSource; } /** *

Import task s3 bucket source.

*/ inline bool S3BucketSourceHasBeenSet() const { return m_s3BucketSourceHasBeenSet; } /** *

Import task s3 bucket source.

*/ inline void SetS3BucketSource(const S3BucketSource& value) { m_s3BucketSourceHasBeenSet = true; m_s3BucketSource = value; } /** *

Import task s3 bucket source.

*/ inline void SetS3BucketSource(S3BucketSource&& value) { m_s3BucketSourceHasBeenSet = true; m_s3BucketSource = std::move(value); } /** *

Import task s3 bucket source.

*/ inline ImportTask& WithS3BucketSource(const S3BucketSource& value) { SetS3BucketSource(value); return *this;} /** *

Import task s3 bucket source.

*/ inline ImportTask& WithS3BucketSource(S3BucketSource&& value) { SetS3BucketSource(std::move(value)); return *this;} /** *

Import task status.

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

Import task status.

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

Import task status.

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

Import task status.

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

Import task status.

*/ inline ImportTask& WithStatus(const ImportStatus& value) { SetStatus(value); return *this;} /** *

Import task status.

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

Import task summary.

*/ inline const ImportTaskSummary& GetSummary() const{ return m_summary; } /** *

Import task summary.

*/ inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; } /** *

Import task summary.

*/ inline void SetSummary(const ImportTaskSummary& value) { m_summaryHasBeenSet = true; m_summary = value; } /** *

Import task summary.

*/ inline void SetSummary(ImportTaskSummary&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); } /** *

Import task summary.

*/ inline ImportTask& WithSummary(const ImportTaskSummary& value) { SetSummary(value); return *this;} /** *

Import task summary.

*/ inline ImportTask& WithSummary(ImportTaskSummary&& value) { SetSummary(std::move(value)); return *this;} private: Aws::String m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; Aws::String m_endDateTime; bool m_endDateTimeHasBeenSet = false; Aws::String m_importID; bool m_importIDHasBeenSet = false; double m_progressPercentage; bool m_progressPercentageHasBeenSet = false; S3BucketSource m_s3BucketSource; bool m_s3BucketSourceHasBeenSet = false; ImportStatus m_status; bool m_statusHasBeenSet = false; ImportTaskSummary m_summary; bool m_summaryHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws