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

Information about a license type conversion task.

See Also:

* AWS * API Reference

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

The ID of the license type conversion task.

*/ inline const Aws::String& GetLicenseConversionTaskId() const{ return m_licenseConversionTaskId; } /** *

The ID of the license type conversion task.

*/ inline bool LicenseConversionTaskIdHasBeenSet() const { return m_licenseConversionTaskIdHasBeenSet; } /** *

The ID of the license type conversion task.

*/ inline void SetLicenseConversionTaskId(const Aws::String& value) { m_licenseConversionTaskIdHasBeenSet = true; m_licenseConversionTaskId = value; } /** *

The ID of the license type conversion task.

*/ inline void SetLicenseConversionTaskId(Aws::String&& value) { m_licenseConversionTaskIdHasBeenSet = true; m_licenseConversionTaskId = std::move(value); } /** *

The ID of the license type conversion task.

*/ inline void SetLicenseConversionTaskId(const char* value) { m_licenseConversionTaskIdHasBeenSet = true; m_licenseConversionTaskId.assign(value); } /** *

The ID of the license type conversion task.

*/ inline LicenseConversionTask& WithLicenseConversionTaskId(const Aws::String& value) { SetLicenseConversionTaskId(value); return *this;} /** *

The ID of the license type conversion task.

*/ inline LicenseConversionTask& WithLicenseConversionTaskId(Aws::String&& value) { SetLicenseConversionTaskId(std::move(value)); return *this;} /** *

The ID of the license type conversion task.

*/ inline LicenseConversionTask& WithLicenseConversionTaskId(const char* value) { SetLicenseConversionTaskId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource associated with the license * type conversion task.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the resource associated with the license * type conversion task.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the resource associated with the license * type conversion task.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the resource associated with the license * type conversion task.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the resource associated with the license * type conversion task.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the resource associated with the license * type conversion task.

*/ inline LicenseConversionTask& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource associated with the license * type conversion task.

*/ inline LicenseConversionTask& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the resource associated with the license * type conversion task.

*/ inline LicenseConversionTask& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

Information about the license type this conversion task converted from.

*/ inline const LicenseConversionContext& GetSourceLicenseContext() const{ return m_sourceLicenseContext; } /** *

Information about the license type this conversion task converted from.

*/ inline bool SourceLicenseContextHasBeenSet() const { return m_sourceLicenseContextHasBeenSet; } /** *

Information about the license type this conversion task converted from.

*/ inline void SetSourceLicenseContext(const LicenseConversionContext& value) { m_sourceLicenseContextHasBeenSet = true; m_sourceLicenseContext = value; } /** *

Information about the license type this conversion task converted from.

*/ inline void SetSourceLicenseContext(LicenseConversionContext&& value) { m_sourceLicenseContextHasBeenSet = true; m_sourceLicenseContext = std::move(value); } /** *

Information about the license type this conversion task converted from.

*/ inline LicenseConversionTask& WithSourceLicenseContext(const LicenseConversionContext& value) { SetSourceLicenseContext(value); return *this;} /** *

Information about the license type this conversion task converted from.

*/ inline LicenseConversionTask& WithSourceLicenseContext(LicenseConversionContext&& value) { SetSourceLicenseContext(std::move(value)); return *this;} /** *

Information about the license type this conversion task converted to.

*/ inline const LicenseConversionContext& GetDestinationLicenseContext() const{ return m_destinationLicenseContext; } /** *

Information about the license type this conversion task converted to.

*/ inline bool DestinationLicenseContextHasBeenSet() const { return m_destinationLicenseContextHasBeenSet; } /** *

Information about the license type this conversion task converted to.

*/ inline void SetDestinationLicenseContext(const LicenseConversionContext& value) { m_destinationLicenseContextHasBeenSet = true; m_destinationLicenseContext = value; } /** *

Information about the license type this conversion task converted to.

*/ inline void SetDestinationLicenseContext(LicenseConversionContext&& value) { m_destinationLicenseContextHasBeenSet = true; m_destinationLicenseContext = std::move(value); } /** *

Information about the license type this conversion task converted to.

*/ inline LicenseConversionTask& WithDestinationLicenseContext(const LicenseConversionContext& value) { SetDestinationLicenseContext(value); return *this;} /** *

Information about the license type this conversion task converted to.

*/ inline LicenseConversionTask& WithDestinationLicenseContext(LicenseConversionContext&& value) { SetDestinationLicenseContext(std::move(value)); return *this;} /** *

The status of the conversion task.

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

The status of the conversion task.

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

The status of the conversion task.

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

The status of the conversion task.

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

The status of the conversion task.

*/ inline LicenseConversionTask& WithStatus(const LicenseConversionTaskStatus& value) { SetStatus(value); return *this;} /** *

The status of the conversion task.

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

The status message for the conversion task.

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

The status message for the conversion task.

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

The status message for the conversion task.

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

The status message for the conversion task.

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

The status message for the conversion task.

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

The status message for the conversion task.

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

The status message for the conversion task.

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

The status message for the conversion task.

*/ inline LicenseConversionTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The time the conversion task was started at.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time the conversion task was started at.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The time the conversion task was started at.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The time the conversion task was started at.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The time the conversion task was started at.

*/ inline LicenseConversionTask& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time the conversion task was started at.

*/ inline LicenseConversionTask& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The time the usage operation value of the resource was changed.

*/ inline const Aws::Utils::DateTime& GetLicenseConversionTime() const{ return m_licenseConversionTime; } /** *

The time the usage operation value of the resource was changed.

*/ inline bool LicenseConversionTimeHasBeenSet() const { return m_licenseConversionTimeHasBeenSet; } /** *

The time the usage operation value of the resource was changed.

*/ inline void SetLicenseConversionTime(const Aws::Utils::DateTime& value) { m_licenseConversionTimeHasBeenSet = true; m_licenseConversionTime = value; } /** *

The time the usage operation value of the resource was changed.

*/ inline void SetLicenseConversionTime(Aws::Utils::DateTime&& value) { m_licenseConversionTimeHasBeenSet = true; m_licenseConversionTime = std::move(value); } /** *

The time the usage operation value of the resource was changed.

*/ inline LicenseConversionTask& WithLicenseConversionTime(const Aws::Utils::DateTime& value) { SetLicenseConversionTime(value); return *this;} /** *

The time the usage operation value of the resource was changed.

*/ inline LicenseConversionTask& WithLicenseConversionTime(Aws::Utils::DateTime&& value) { SetLicenseConversionTime(std::move(value)); return *this;} /** *

The time the conversion task was completed.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The time the conversion task was completed.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The time the conversion task was completed.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The time the conversion task was completed.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The time the conversion task was completed.

*/ inline LicenseConversionTask& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The time the conversion task was completed.

*/ inline LicenseConversionTask& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} private: Aws::String m_licenseConversionTaskId; bool m_licenseConversionTaskIdHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; LicenseConversionContext m_sourceLicenseContext; bool m_sourceLicenseContextHasBeenSet = false; LicenseConversionContext m_destinationLicenseContext; bool m_destinationLicenseContextHasBeenSet = false; LicenseConversionTaskStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_licenseConversionTime; bool m_licenseConversionTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws