/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

A custom AMI available to platforms.

See Also:

AWS * API Reference

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

The type of virtualization used to create the custom AMI.

*/ inline const Aws::String& GetVirtualizationType() const{ return m_virtualizationType; } /** *

The type of virtualization used to create the custom AMI.

*/ inline bool VirtualizationTypeHasBeenSet() const { return m_virtualizationTypeHasBeenSet; } /** *

The type of virtualization used to create the custom AMI.

*/ inline void SetVirtualizationType(const Aws::String& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = value; } /** *

The type of virtualization used to create the custom AMI.

*/ inline void SetVirtualizationType(Aws::String&& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = std::move(value); } /** *

The type of virtualization used to create the custom AMI.

*/ inline void SetVirtualizationType(const char* value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType.assign(value); } /** *

The type of virtualization used to create the custom AMI.

*/ inline CustomAmi& WithVirtualizationType(const Aws::String& value) { SetVirtualizationType(value); return *this;} /** *

The type of virtualization used to create the custom AMI.

*/ inline CustomAmi& WithVirtualizationType(Aws::String&& value) { SetVirtualizationType(std::move(value)); return *this;} /** *

The type of virtualization used to create the custom AMI.

*/ inline CustomAmi& WithVirtualizationType(const char* value) { SetVirtualizationType(value); return *this;} /** *

THe ID of the image used to create the custom AMI.

*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *

THe ID of the image used to create the custom AMI.

*/ inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; } /** *

THe ID of the image used to create the custom AMI.

*/ inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; } /** *

THe ID of the image used to create the custom AMI.

*/ inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); } /** *

THe ID of the image used to create the custom AMI.

*/ inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); } /** *

THe ID of the image used to create the custom AMI.

*/ inline CustomAmi& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *

THe ID of the image used to create the custom AMI.

*/ inline CustomAmi& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *

THe ID of the image used to create the custom AMI.

*/ inline CustomAmi& WithImageId(const char* value) { SetImageId(value); return *this;} private: Aws::String m_virtualizationType; bool m_virtualizationTypeHasBeenSet = false; Aws::String m_imageId; bool m_imageIdHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws