/** * 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 #include namespace Aws { namespace EC2 { namespace Model { /** */ class ImportInstanceRequest : public EC2Request { public: AWS_EC2_API ImportInstanceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ImportInstance"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

A description for the instance being imported.

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

A description for the instance being imported.

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

A description for the instance being imported.

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

A description for the instance being imported.

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

A description for the instance being imported.

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

A description for the instance being imported.

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

A description for the instance being imported.

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

A description for the instance being imported.

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

The disk image.

*/ inline const Aws::Vector& GetDiskImages() const{ return m_diskImages; } /** *

The disk image.

*/ inline bool DiskImagesHasBeenSet() const { return m_diskImagesHasBeenSet; } /** *

The disk image.

*/ inline void SetDiskImages(const Aws::Vector& value) { m_diskImagesHasBeenSet = true; m_diskImages = value; } /** *

The disk image.

*/ inline void SetDiskImages(Aws::Vector&& value) { m_diskImagesHasBeenSet = true; m_diskImages = std::move(value); } /** *

The disk image.

*/ inline ImportInstanceRequest& WithDiskImages(const Aws::Vector& value) { SetDiskImages(value); return *this;} /** *

The disk image.

*/ inline ImportInstanceRequest& WithDiskImages(Aws::Vector&& value) { SetDiskImages(std::move(value)); return *this;} /** *

The disk image.

*/ inline ImportInstanceRequest& AddDiskImages(const DiskImage& value) { m_diskImagesHasBeenSet = true; m_diskImages.push_back(value); return *this; } /** *

The disk image.

*/ inline ImportInstanceRequest& AddDiskImages(DiskImage&& value) { m_diskImagesHasBeenSet = true; m_diskImages.push_back(std::move(value)); return *this; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ImportInstanceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The launch specification.

*/ inline const ImportInstanceLaunchSpecification& GetLaunchSpecification() const{ return m_launchSpecification; } /** *

The launch specification.

*/ inline bool LaunchSpecificationHasBeenSet() const { return m_launchSpecificationHasBeenSet; } /** *

The launch specification.

*/ inline void SetLaunchSpecification(const ImportInstanceLaunchSpecification& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = value; } /** *

The launch specification.

*/ inline void SetLaunchSpecification(ImportInstanceLaunchSpecification&& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = std::move(value); } /** *

The launch specification.

*/ inline ImportInstanceRequest& WithLaunchSpecification(const ImportInstanceLaunchSpecification& value) { SetLaunchSpecification(value); return *this;} /** *

The launch specification.

*/ inline ImportInstanceRequest& WithLaunchSpecification(ImportInstanceLaunchSpecification&& value) { SetLaunchSpecification(std::move(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 ImportInstanceRequest& WithPlatform(const PlatformValues& value) { SetPlatform(value); return *this;} /** *

The instance operating system.

*/ inline ImportInstanceRequest& WithPlatform(PlatformValues&& value) { SetPlatform(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_diskImages; bool m_diskImagesHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; ImportInstanceLaunchSpecification m_launchSpecification; bool m_launchSpecificationHasBeenSet = false; PlatformValues m_platform; bool m_platformHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws