/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details of an EC2 AMI. See Also:
AWS
* API Reference
The AWS Region of the EC2 AMI.
*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *The AWS Region of the EC2 AMI.
*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *The AWS Region of the EC2 AMI.
*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *The AWS Region of the EC2 AMI.
*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *The AWS Region of the EC2 AMI.
*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *The AWS Region of the EC2 AMI.
*/ inline Ami& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *The AWS Region of the EC2 AMI.
*/ inline Ami& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *The AWS Region of the EC2 AMI.
*/ inline Ami& WithRegion(const char* value) { SetRegion(value); return *this;} /** *The AMI ID of the EC2 AMI.
*/ inline const Aws::String& GetImage() const{ return m_image; } /** *The AMI ID of the EC2 AMI.
*/ inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } /** *The AMI ID of the EC2 AMI.
*/ inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; } /** *The AMI ID of the EC2 AMI.
*/ inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } /** *The AMI ID of the EC2 AMI.
*/ inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); } /** *The AMI ID of the EC2 AMI.
*/ inline Ami& WithImage(const Aws::String& value) { SetImage(value); return *this;} /** *The AMI ID of the EC2 AMI.
*/ inline Ami& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;} /** *The AMI ID of the EC2 AMI.
*/ inline Ami& WithImage(const char* value) { SetImage(value); return *this;} /** *The name of the EC2 AMI.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the EC2 AMI.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the EC2 AMI.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the EC2 AMI.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the EC2 AMI.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the EC2 AMI.
*/ inline Ami& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the EC2 AMI.
*/ inline Ami& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the EC2 AMI.
*/ inline Ami& WithName(const char* value) { SetName(value); return *this;} /** *The description of the EC2 AMI.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the EC2 AMI.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the EC2 AMI.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the EC2 AMI.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the EC2 AMI.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the EC2 AMI.
*/ inline Ami& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the EC2 AMI.
*/ inline Ami& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the EC2 AMI.
*/ inline Ami& WithDescription(const char* value) { SetDescription(value); return *this;} inline const ImageState& GetState() const{ return m_state; } inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } inline void SetState(const ImageState& value) { m_stateHasBeenSet = true; m_state = value; } inline void SetState(ImageState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } inline Ami& WithState(const ImageState& value) { SetState(value); return *this;} inline Ami& WithState(ImageState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_region; bool m_regionHasBeenSet; Aws::String m_image; bool m_imageHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; ImageState m_state; bool m_stateHasBeenSet; }; } // namespace Model } // namespace imagebuilder } // namespace Aws