/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a conversion task.See Also:
AWS
* API Reference
The ID of the conversion task.
*/ inline const Aws::String& GetConversionTaskId() const{ return m_conversionTaskId; } /** *The ID of the conversion task.
*/ inline bool ConversionTaskIdHasBeenSet() const { return m_conversionTaskIdHasBeenSet; } /** *The ID of the conversion task.
*/ inline void SetConversionTaskId(const Aws::String& value) { m_conversionTaskIdHasBeenSet = true; m_conversionTaskId = value; } /** *The ID of the conversion task.
*/ inline void SetConversionTaskId(Aws::String&& value) { m_conversionTaskIdHasBeenSet = true; m_conversionTaskId = std::move(value); } /** *The ID of the conversion task.
*/ inline void SetConversionTaskId(const char* value) { m_conversionTaskIdHasBeenSet = true; m_conversionTaskId.assign(value); } /** *The ID of the conversion task.
*/ inline ConversionTask& WithConversionTaskId(const Aws::String& value) { SetConversionTaskId(value); return *this;} /** *The ID of the conversion task.
*/ inline ConversionTask& WithConversionTaskId(Aws::String&& value) { SetConversionTaskId(std::move(value)); return *this;} /** *The ID of the conversion task.
*/ inline ConversionTask& WithConversionTaskId(const char* value) { SetConversionTaskId(value); return *this;} /** *The time when the task expires. If the upload isn't complete before the * expiration time, we automatically cancel the task.
*/ inline const Aws::String& GetExpirationTime() const{ return m_expirationTime; } /** *The time when the task expires. If the upload isn't complete before the * expiration time, we automatically cancel the task.
*/ inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; } /** *The time when the task expires. If the upload isn't complete before the * expiration time, we automatically cancel the task.
*/ inline void SetExpirationTime(const Aws::String& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; } /** *The time when the task expires. If the upload isn't complete before the * expiration time, we automatically cancel the task.
*/ inline void SetExpirationTime(Aws::String&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); } /** *The time when the task expires. If the upload isn't complete before the * expiration time, we automatically cancel the task.
*/ inline void SetExpirationTime(const char* value) { m_expirationTimeHasBeenSet = true; m_expirationTime.assign(value); } /** *The time when the task expires. If the upload isn't complete before the * expiration time, we automatically cancel the task.
*/ inline ConversionTask& WithExpirationTime(const Aws::String& value) { SetExpirationTime(value); return *this;} /** *The time when the task expires. If the upload isn't complete before the * expiration time, we automatically cancel the task.
*/ inline ConversionTask& WithExpirationTime(Aws::String&& value) { SetExpirationTime(std::move(value)); return *this;} /** *The time when the task expires. If the upload isn't complete before the * expiration time, we automatically cancel the task.
*/ inline ConversionTask& WithExpirationTime(const char* value) { SetExpirationTime(value); return *this;} /** *If the task is for importing an instance, this contains information about the * import instance task.
*/ inline const ImportInstanceTaskDetails& GetImportInstance() const{ return m_importInstance; } /** *If the task is for importing an instance, this contains information about the * import instance task.
*/ inline bool ImportInstanceHasBeenSet() const { return m_importInstanceHasBeenSet; } /** *If the task is for importing an instance, this contains information about the * import instance task.
*/ inline void SetImportInstance(const ImportInstanceTaskDetails& value) { m_importInstanceHasBeenSet = true; m_importInstance = value; } /** *If the task is for importing an instance, this contains information about the * import instance task.
*/ inline void SetImportInstance(ImportInstanceTaskDetails&& value) { m_importInstanceHasBeenSet = true; m_importInstance = std::move(value); } /** *If the task is for importing an instance, this contains information about the * import instance task.
*/ inline ConversionTask& WithImportInstance(const ImportInstanceTaskDetails& value) { SetImportInstance(value); return *this;} /** *If the task is for importing an instance, this contains information about the * import instance task.
*/ inline ConversionTask& WithImportInstance(ImportInstanceTaskDetails&& value) { SetImportInstance(std::move(value)); return *this;} /** *If the task is for importing a volume, this contains information about the * import volume task.
*/ inline const ImportVolumeTaskDetails& GetImportVolume() const{ return m_importVolume; } /** *If the task is for importing a volume, this contains information about the * import volume task.
*/ inline bool ImportVolumeHasBeenSet() const { return m_importVolumeHasBeenSet; } /** *If the task is for importing a volume, this contains information about the * import volume task.
*/ inline void SetImportVolume(const ImportVolumeTaskDetails& value) { m_importVolumeHasBeenSet = true; m_importVolume = value; } /** *If the task is for importing a volume, this contains information about the * import volume task.
*/ inline void SetImportVolume(ImportVolumeTaskDetails&& value) { m_importVolumeHasBeenSet = true; m_importVolume = std::move(value); } /** *If the task is for importing a volume, this contains information about the * import volume task.
*/ inline ConversionTask& WithImportVolume(const ImportVolumeTaskDetails& value) { SetImportVolume(value); return *this;} /** *If the task is for importing a volume, this contains information about the * import volume task.
*/ inline ConversionTask& WithImportVolume(ImportVolumeTaskDetails&& value) { SetImportVolume(std::move(value)); return *this;} /** *The state of the conversion task.
*/ inline const ConversionTaskState& GetState() const{ return m_state; } /** *The state of the conversion task.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the conversion task.
*/ inline void SetState(const ConversionTaskState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the conversion task.
*/ inline void SetState(ConversionTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the conversion task.
*/ inline ConversionTask& WithState(const ConversionTaskState& value) { SetState(value); return *this;} /** *The state of the conversion task.
*/ inline ConversionTask& WithState(ConversionTaskState&& value) { SetState(std::move(value)); return *this;} /** *The status message related to the conversion task.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *The status message related to the conversion task.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *The status message related to the conversion task.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *The status message related to the conversion task.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *The status message related to the conversion task.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *The status message related to the conversion task.
*/ inline ConversionTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *The status message related to the conversion task.
*/ inline ConversionTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *The status message related to the conversion task.
*/ inline ConversionTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *Any tags assigned to the task.
*/ inline const Aws::VectorAny tags assigned to the task.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Any tags assigned to the task.
*/ inline void SetTags(const Aws::VectorAny tags assigned to the task.
*/ inline void SetTags(Aws::VectorAny tags assigned to the task.
*/ inline ConversionTask& WithTags(const Aws::VectorAny tags assigned to the task.
*/ inline ConversionTask& WithTags(Aws::VectorAny tags assigned to the task.
*/ inline ConversionTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Any tags assigned to the task.
*/ inline ConversionTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_conversionTaskId; bool m_conversionTaskIdHasBeenSet = false; Aws::String m_expirationTime; bool m_expirationTimeHasBeenSet = false; ImportInstanceTaskDetails m_importInstance; bool m_importInstanceHasBeenSet = false; ImportVolumeTaskDetails m_importVolume; bool m_importVolumeHasBeenSet = false; ConversionTaskState m_state; bool m_stateHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::Vector