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

A JSON-formatted object that contains the IDs for an Amazon Machine Image * (AMI), including the Amazon EC2-compatible AMI ID and the Snow device AMI ID. * Each AMI has these two IDs to simplify identifying the AMI in both the Amazon * Web Services Cloud and on the device.

See Also:

AWS * API Reference

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

The ID of the AMI in Amazon EC2.

*/ inline const Aws::String& GetAmiId() const{ return m_amiId; } /** *

The ID of the AMI in Amazon EC2.

*/ inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; } /** *

The ID of the AMI in Amazon EC2.

*/ inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; } /** *

The ID of the AMI in Amazon EC2.

*/ inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); } /** *

The ID of the AMI in Amazon EC2.

*/ inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); } /** *

The ID of the AMI in Amazon EC2.

*/ inline Ec2AmiResource& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;} /** *

The ID of the AMI in Amazon EC2.

*/ inline Ec2AmiResource& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;} /** *

The ID of the AMI in Amazon EC2.

*/ inline Ec2AmiResource& WithAmiId(const char* value) { SetAmiId(value); return *this;} /** *

The ID of the AMI on the Snow device.

*/ inline const Aws::String& GetSnowballAmiId() const{ return m_snowballAmiId; } /** *

The ID of the AMI on the Snow device.

*/ inline bool SnowballAmiIdHasBeenSet() const { return m_snowballAmiIdHasBeenSet; } /** *

The ID of the AMI on the Snow device.

*/ inline void SetSnowballAmiId(const Aws::String& value) { m_snowballAmiIdHasBeenSet = true; m_snowballAmiId = value; } /** *

The ID of the AMI on the Snow device.

*/ inline void SetSnowballAmiId(Aws::String&& value) { m_snowballAmiIdHasBeenSet = true; m_snowballAmiId = std::move(value); } /** *

The ID of the AMI on the Snow device.

*/ inline void SetSnowballAmiId(const char* value) { m_snowballAmiIdHasBeenSet = true; m_snowballAmiId.assign(value); } /** *

The ID of the AMI on the Snow device.

*/ inline Ec2AmiResource& WithSnowballAmiId(const Aws::String& value) { SetSnowballAmiId(value); return *this;} /** *

The ID of the AMI on the Snow device.

*/ inline Ec2AmiResource& WithSnowballAmiId(Aws::String&& value) { SetSnowballAmiId(std::move(value)); return *this;} /** *

The ID of the AMI on the Snow device.

*/ inline Ec2AmiResource& WithSnowballAmiId(const char* value) { SetSnowballAmiId(value); return *this;} private: Aws::String m_amiId; bool m_amiIdHasBeenSet = false; Aws::String m_snowballAmiId; bool m_snowballAmiIdHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws