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

Properties of a conversion job

See Also:

AWS * API Reference

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

The timestamp of when the snapshot being converted was taken

*/ inline const Aws::String& GetDataTimestamp() const{ return m_dataTimestamp; } /** *

The timestamp of when the snapshot being converted was taken

*/ inline bool DataTimestampHasBeenSet() const { return m_dataTimestampHasBeenSet; } /** *

The timestamp of when the snapshot being converted was taken

*/ inline void SetDataTimestamp(const Aws::String& value) { m_dataTimestampHasBeenSet = true; m_dataTimestamp = value; } /** *

The timestamp of when the snapshot being converted was taken

*/ inline void SetDataTimestamp(Aws::String&& value) { m_dataTimestampHasBeenSet = true; m_dataTimestamp = std::move(value); } /** *

The timestamp of when the snapshot being converted was taken

*/ inline void SetDataTimestamp(const char* value) { m_dataTimestampHasBeenSet = true; m_dataTimestamp.assign(value); } /** *

The timestamp of when the snapshot being converted was taken

*/ inline ConversionProperties& WithDataTimestamp(const Aws::String& value) { SetDataTimestamp(value); return *this;} /** *

The timestamp of when the snapshot being converted was taken

*/ inline ConversionProperties& WithDataTimestamp(Aws::String&& value) { SetDataTimestamp(std::move(value)); return *this;} /** *

The timestamp of when the snapshot being converted was taken

*/ inline ConversionProperties& WithDataTimestamp(const char* value) { SetDataTimestamp(value); return *this;} /** *

Whether the volume being converted uses UEFI or not

*/ inline bool GetForceUefi() const{ return m_forceUefi; } /** *

Whether the volume being converted uses UEFI or not

*/ inline bool ForceUefiHasBeenSet() const { return m_forceUefiHasBeenSet; } /** *

Whether the volume being converted uses UEFI or not

*/ inline void SetForceUefi(bool value) { m_forceUefiHasBeenSet = true; m_forceUefi = value; } /** *

Whether the volume being converted uses UEFI or not

*/ inline ConversionProperties& WithForceUefi(bool value) { SetForceUefi(value); return *this;} /** *

The root volume name of a conversion job

*/ inline const Aws::String& GetRootVolumeName() const{ return m_rootVolumeName; } /** *

The root volume name of a conversion job

*/ inline bool RootVolumeNameHasBeenSet() const { return m_rootVolumeNameHasBeenSet; } /** *

The root volume name of a conversion job

*/ inline void SetRootVolumeName(const Aws::String& value) { m_rootVolumeNameHasBeenSet = true; m_rootVolumeName = value; } /** *

The root volume name of a conversion job

*/ inline void SetRootVolumeName(Aws::String&& value) { m_rootVolumeNameHasBeenSet = true; m_rootVolumeName = std::move(value); } /** *

The root volume name of a conversion job

*/ inline void SetRootVolumeName(const char* value) { m_rootVolumeNameHasBeenSet = true; m_rootVolumeName.assign(value); } /** *

The root volume name of a conversion job

*/ inline ConversionProperties& WithRootVolumeName(const Aws::String& value) { SetRootVolumeName(value); return *this;} /** *

The root volume name of a conversion job

*/ inline ConversionProperties& WithRootVolumeName(Aws::String&& value) { SetRootVolumeName(std::move(value)); return *this;} /** *

The root volume name of a conversion job

*/ inline ConversionProperties& WithRootVolumeName(const char* value) { SetRootVolumeName(value); return *this;} /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline const Aws::Map>& GetVolumeToConversionMap() const{ return m_volumeToConversionMap; } /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline bool VolumeToConversionMapHasBeenSet() const { return m_volumeToConversionMapHasBeenSet; } /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline void SetVolumeToConversionMap(const Aws::Map>& value) { m_volumeToConversionMapHasBeenSet = true; m_volumeToConversionMap = value; } /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline void SetVolumeToConversionMap(Aws::Map>&& value) { m_volumeToConversionMapHasBeenSet = true; m_volumeToConversionMap = std::move(value); } /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline ConversionProperties& WithVolumeToConversionMap(const Aws::Map>& value) { SetVolumeToConversionMap(value); return *this;} /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline ConversionProperties& WithVolumeToConversionMap(Aws::Map>&& value) { SetVolumeToConversionMap(std::move(value)); return *this;} /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline ConversionProperties& AddVolumeToConversionMap(const Aws::String& key, const Aws::Map& value) { m_volumeToConversionMapHasBeenSet = true; m_volumeToConversionMap.emplace(key, value); return *this; } /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline ConversionProperties& AddVolumeToConversionMap(Aws::String&& key, const Aws::Map& value) { m_volumeToConversionMapHasBeenSet = true; m_volumeToConversionMap.emplace(std::move(key), value); return *this; } /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline ConversionProperties& AddVolumeToConversionMap(const Aws::String& key, Aws::Map&& value) { m_volumeToConversionMapHasBeenSet = true; m_volumeToConversionMap.emplace(key, std::move(value)); return *this; } /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline ConversionProperties& AddVolumeToConversionMap(Aws::String&& key, Aws::Map&& value) { m_volumeToConversionMapHasBeenSet = true; m_volumeToConversionMap.emplace(std::move(key), std::move(value)); return *this; } /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline ConversionProperties& AddVolumeToConversionMap(const char* key, Aws::Map&& value) { m_volumeToConversionMapHasBeenSet = true; m_volumeToConversionMap.emplace(key, std::move(value)); return *this; } /** *

A mapping between the volumes being converted and the converted snapshot * ids

*/ inline ConversionProperties& AddVolumeToConversionMap(const char* key, const Aws::Map& value) { m_volumeToConversionMapHasBeenSet = true; m_volumeToConversionMap.emplace(key, value); return *this; } /** *

A mapping between the volumes and their sizes

*/ inline const Aws::Map& GetVolumeToVolumeSize() const{ return m_volumeToVolumeSize; } /** *

A mapping between the volumes and their sizes

*/ inline bool VolumeToVolumeSizeHasBeenSet() const { return m_volumeToVolumeSizeHasBeenSet; } /** *

A mapping between the volumes and their sizes

*/ inline void SetVolumeToVolumeSize(const Aws::Map& value) { m_volumeToVolumeSizeHasBeenSet = true; m_volumeToVolumeSize = value; } /** *

A mapping between the volumes and their sizes

*/ inline void SetVolumeToVolumeSize(Aws::Map&& value) { m_volumeToVolumeSizeHasBeenSet = true; m_volumeToVolumeSize = std::move(value); } /** *

A mapping between the volumes and their sizes

*/ inline ConversionProperties& WithVolumeToVolumeSize(const Aws::Map& value) { SetVolumeToVolumeSize(value); return *this;} /** *

A mapping between the volumes and their sizes

*/ inline ConversionProperties& WithVolumeToVolumeSize(Aws::Map&& value) { SetVolumeToVolumeSize(std::move(value)); return *this;} /** *

A mapping between the volumes and their sizes

*/ inline ConversionProperties& AddVolumeToVolumeSize(const Aws::String& key, long long value) { m_volumeToVolumeSizeHasBeenSet = true; m_volumeToVolumeSize.emplace(key, value); return *this; } /** *

A mapping between the volumes and their sizes

*/ inline ConversionProperties& AddVolumeToVolumeSize(Aws::String&& key, long long value) { m_volumeToVolumeSizeHasBeenSet = true; m_volumeToVolumeSize.emplace(std::move(key), value); return *this; } /** *

A mapping between the volumes and their sizes

*/ inline ConversionProperties& AddVolumeToVolumeSize(const char* key, long long value) { m_volumeToVolumeSizeHasBeenSet = true; m_volumeToVolumeSize.emplace(key, value); return *this; } private: Aws::String m_dataTimestamp; bool m_dataTimestampHasBeenSet = false; bool m_forceUefi; bool m_forceUefiHasBeenSet = false; Aws::String m_rootVolumeName; bool m_rootVolumeNameHasBeenSet = false; Aws::Map> m_volumeToConversionMap; bool m_volumeToConversionMapHasBeenSet = false; Aws::Map m_volumeToVolumeSize; bool m_volumeToVolumeSizeHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws