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

Describes an import instance task.

See Also:

AWS * API Reference

*/ class ImportInstanceTaskDetails { public: AWS_EC2_API ImportInstanceTaskDetails(); AWS_EC2_API ImportInstanceTaskDetails(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ImportInstanceTaskDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

A description of the task.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the task.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the task.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the task.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the task.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the task.

*/ inline ImportInstanceTaskDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the task.

*/ inline ImportInstanceTaskDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the task.

*/ inline ImportInstanceTaskDetails& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ID of the instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of the instance.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The ID of the instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The ID of the instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The ID of the instance.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The ID of the instance.

*/ inline ImportInstanceTaskDetails& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of the instance.

*/ inline ImportInstanceTaskDetails& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of the instance.

*/ inline ImportInstanceTaskDetails& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The instance operating system.

*/ inline const PlatformValues& GetPlatform() const{ return m_platform; } /** *

The instance operating system.

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The instance operating system.

*/ inline void SetPlatform(const PlatformValues& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The instance operating system.

*/ inline void SetPlatform(PlatformValues&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The instance operating system.

*/ inline ImportInstanceTaskDetails& WithPlatform(const PlatformValues& value) { SetPlatform(value); return *this;} /** *

The instance operating system.

*/ inline ImportInstanceTaskDetails& WithPlatform(PlatformValues&& value) { SetPlatform(std::move(value)); return *this;} /** *

The volumes.

*/ inline const Aws::Vector& GetVolumes() const{ return m_volumes; } /** *

The volumes.

*/ inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; } /** *

The volumes.

*/ inline void SetVolumes(const Aws::Vector& value) { m_volumesHasBeenSet = true; m_volumes = value; } /** *

The volumes.

*/ inline void SetVolumes(Aws::Vector&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); } /** *

The volumes.

*/ inline ImportInstanceTaskDetails& WithVolumes(const Aws::Vector& value) { SetVolumes(value); return *this;} /** *

The volumes.

*/ inline ImportInstanceTaskDetails& WithVolumes(Aws::Vector&& value) { SetVolumes(std::move(value)); return *this;} /** *

The volumes.

*/ inline ImportInstanceTaskDetails& AddVolumes(const ImportInstanceVolumeDetailItem& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; } /** *

The volumes.

*/ inline ImportInstanceTaskDetails& AddVolumes(ImportInstanceVolumeDetailItem&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; } private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; PlatformValues m_platform; bool m_platformHasBeenSet = false; Aws::Vector m_volumes; bool m_volumesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws