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

Information about an AMI that is currently in the Recycle Bin.

See * Also:

AWS * API Reference

*/ class ImageRecycleBinInfo { public: AWS_EC2_API ImageRecycleBinInfo(); AWS_EC2_API ImageRecycleBinInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ImageRecycleBinInfo& 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; /** *

The ID of the AMI.

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

The ID of the AMI.

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

The ID of the AMI.

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

The ID of the AMI.

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

The ID of the AMI.

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

The ID of the AMI.

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

The ID of the AMI.

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

The ID of the AMI.

*/ inline ImageRecycleBinInfo& WithImageId(const char* value) { SetImageId(value); return *this;} /** *

The name of the AMI.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the AMI.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the AMI.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the AMI.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the AMI.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the AMI.

*/ inline ImageRecycleBinInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the AMI.

*/ inline ImageRecycleBinInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the AMI.

*/ inline ImageRecycleBinInfo& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the AMI.

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

The description of the AMI.

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

The description of the AMI.

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

The description of the AMI.

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

The description of the AMI.

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

The description of the AMI.

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

The description of the AMI.

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

The description of the AMI.

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

The date and time when the AMI entered the Recycle Bin.

*/ inline const Aws::Utils::DateTime& GetRecycleBinEnterTime() const{ return m_recycleBinEnterTime; } /** *

The date and time when the AMI entered the Recycle Bin.

*/ inline bool RecycleBinEnterTimeHasBeenSet() const { return m_recycleBinEnterTimeHasBeenSet; } /** *

The date and time when the AMI entered the Recycle Bin.

*/ inline void SetRecycleBinEnterTime(const Aws::Utils::DateTime& value) { m_recycleBinEnterTimeHasBeenSet = true; m_recycleBinEnterTime = value; } /** *

The date and time when the AMI entered the Recycle Bin.

*/ inline void SetRecycleBinEnterTime(Aws::Utils::DateTime&& value) { m_recycleBinEnterTimeHasBeenSet = true; m_recycleBinEnterTime = std::move(value); } /** *

The date and time when the AMI entered the Recycle Bin.

*/ inline ImageRecycleBinInfo& WithRecycleBinEnterTime(const Aws::Utils::DateTime& value) { SetRecycleBinEnterTime(value); return *this;} /** *

The date and time when the AMI entered the Recycle Bin.

*/ inline ImageRecycleBinInfo& WithRecycleBinEnterTime(Aws::Utils::DateTime&& value) { SetRecycleBinEnterTime(std::move(value)); return *this;} /** *

The date and time when the AMI is to be permanently deleted from the Recycle * Bin.

*/ inline const Aws::Utils::DateTime& GetRecycleBinExitTime() const{ return m_recycleBinExitTime; } /** *

The date and time when the AMI is to be permanently deleted from the Recycle * Bin.

*/ inline bool RecycleBinExitTimeHasBeenSet() const { return m_recycleBinExitTimeHasBeenSet; } /** *

The date and time when the AMI is to be permanently deleted from the Recycle * Bin.

*/ inline void SetRecycleBinExitTime(const Aws::Utils::DateTime& value) { m_recycleBinExitTimeHasBeenSet = true; m_recycleBinExitTime = value; } /** *

The date and time when the AMI is to be permanently deleted from the Recycle * Bin.

*/ inline void SetRecycleBinExitTime(Aws::Utils::DateTime&& value) { m_recycleBinExitTimeHasBeenSet = true; m_recycleBinExitTime = std::move(value); } /** *

The date and time when the AMI is to be permanently deleted from the Recycle * Bin.

*/ inline ImageRecycleBinInfo& WithRecycleBinExitTime(const Aws::Utils::DateTime& value) { SetRecycleBinExitTime(value); return *this;} /** *

The date and time when the AMI is to be permanently deleted from the Recycle * Bin.

*/ inline ImageRecycleBinInfo& WithRecycleBinExitTime(Aws::Utils::DateTime&& value) { SetRecycleBinExitTime(std::move(value)); return *this;} private: Aws::String m_imageId; bool m_imageIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_recycleBinEnterTime; bool m_recycleBinEnterTimeHasBeenSet = false; Aws::Utils::DateTime m_recycleBinExitTime; bool m_recycleBinExitTimeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws