/** * 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 Panorama { namespace Model { /** *

A job to import a package version.

See Also:

AWS * API Reference

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

When the job was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

When the job was created.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

When the job was created.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

When the job was created.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

When the job was created.

*/ inline PackageImportJob& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

When the job was created.

*/ inline PackageImportJob& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

The job's ID.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The job's ID.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The job's ID.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The job's ID.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The job's ID.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The job's ID.

*/ inline PackageImportJob& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The job's ID.

*/ inline PackageImportJob& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The job's ID.

*/ inline PackageImportJob& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The job's type.

*/ inline const PackageImportJobType& GetJobType() const{ return m_jobType; } /** *

The job's type.

*/ inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; } /** *

The job's type.

*/ inline void SetJobType(const PackageImportJobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; } /** *

The job's type.

*/ inline void SetJobType(PackageImportJobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); } /** *

The job's type.

*/ inline PackageImportJob& WithJobType(const PackageImportJobType& value) { SetJobType(value); return *this;} /** *

The job's type.

*/ inline PackageImportJob& WithJobType(PackageImportJobType&& value) { SetJobType(std::move(value)); return *this;} /** *

When the job was updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

When the job was updated.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

When the job was updated.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

When the job was updated.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

When the job was updated.

*/ inline PackageImportJob& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

When the job was updated.

*/ inline PackageImportJob& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

The job's status.

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

The job's status.

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

The job's status.

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

The job's status.

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

The job's status.

*/ inline PackageImportJob& WithStatus(const PackageImportJobStatus& value) { SetStatus(value); return *this;} /** *

The job's status.

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

The job's status message.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The job's status message.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

The job's status message.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

The job's status message.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

The job's status message.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

The job's status message.

*/ inline PackageImportJob& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The job's status message.

*/ inline PackageImportJob& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The job's status message.

*/ inline PackageImportJob& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} private: Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_jobId; bool m_jobIdHasBeenSet = false; PackageImportJobType m_jobType; bool m_jobTypeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; PackageImportJobStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws