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

Describes an Amazon FPGA image (AFI) attribute.

See Also:

AWS * API Reference

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

*/ inline const Aws::String& GetFpgaImageId() const{ return m_fpgaImageId; } /** *

The ID of the AFI.

*/ inline bool FpgaImageIdHasBeenSet() const { return m_fpgaImageIdHasBeenSet; } /** *

The ID of the AFI.

*/ inline void SetFpgaImageId(const Aws::String& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = value; } /** *

The ID of the AFI.

*/ inline void SetFpgaImageId(Aws::String&& value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId = std::move(value); } /** *

The ID of the AFI.

*/ inline void SetFpgaImageId(const char* value) { m_fpgaImageIdHasBeenSet = true; m_fpgaImageId.assign(value); } /** *

The ID of the AFI.

*/ inline FpgaImageAttribute& WithFpgaImageId(const Aws::String& value) { SetFpgaImageId(value); return *this;} /** *

The ID of the AFI.

*/ inline FpgaImageAttribute& WithFpgaImageId(Aws::String&& value) { SetFpgaImageId(std::move(value)); return *this;} /** *

The ID of the AFI.

*/ inline FpgaImageAttribute& WithFpgaImageId(const char* value) { SetFpgaImageId(value); return *this;} /** *

The name of the AFI.

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

The name of the AFI.

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

The name of the AFI.

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

The name of the AFI.

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

The name of the AFI.

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

The name of the AFI.

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

The name of the AFI.

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

The name of the AFI.

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

The description of the AFI.

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

The description of the AFI.

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

The description of the AFI.

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

The description of the AFI.

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

The description of the AFI.

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

The description of the AFI.

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

The description of the AFI.

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

The description of the AFI.

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

The load permissions.

*/ inline const Aws::Vector& GetLoadPermissions() const{ return m_loadPermissions; } /** *

The load permissions.

*/ inline bool LoadPermissionsHasBeenSet() const { return m_loadPermissionsHasBeenSet; } /** *

The load permissions.

*/ inline void SetLoadPermissions(const Aws::Vector& value) { m_loadPermissionsHasBeenSet = true; m_loadPermissions = value; } /** *

The load permissions.

*/ inline void SetLoadPermissions(Aws::Vector&& value) { m_loadPermissionsHasBeenSet = true; m_loadPermissions = std::move(value); } /** *

The load permissions.

*/ inline FpgaImageAttribute& WithLoadPermissions(const Aws::Vector& value) { SetLoadPermissions(value); return *this;} /** *

The load permissions.

*/ inline FpgaImageAttribute& WithLoadPermissions(Aws::Vector&& value) { SetLoadPermissions(std::move(value)); return *this;} /** *

The load permissions.

*/ inline FpgaImageAttribute& AddLoadPermissions(const LoadPermission& value) { m_loadPermissionsHasBeenSet = true; m_loadPermissions.push_back(value); return *this; } /** *

The load permissions.

*/ inline FpgaImageAttribute& AddLoadPermissions(LoadPermission&& value) { m_loadPermissionsHasBeenSet = true; m_loadPermissions.push_back(std::move(value)); return *this; } /** *

The product codes.

*/ inline const Aws::Vector& GetProductCodes() const{ return m_productCodes; } /** *

The product codes.

*/ inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; } /** *

The product codes.

*/ inline void SetProductCodes(const Aws::Vector& value) { m_productCodesHasBeenSet = true; m_productCodes = value; } /** *

The product codes.

*/ inline void SetProductCodes(Aws::Vector&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::move(value); } /** *

The product codes.

*/ inline FpgaImageAttribute& WithProductCodes(const Aws::Vector& value) { SetProductCodes(value); return *this;} /** *

The product codes.

*/ inline FpgaImageAttribute& WithProductCodes(Aws::Vector&& value) { SetProductCodes(std::move(value)); return *this;} /** *

The product codes.

*/ inline FpgaImageAttribute& AddProductCodes(const ProductCode& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(value); return *this; } /** *

The product codes.

*/ inline FpgaImageAttribute& AddProductCodes(ProductCode&& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(std::move(value)); return *this; } private: Aws::String m_fpgaImageId; bool m_fpgaImageIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_loadPermissions; bool m_loadPermissionsHasBeenSet = false; Aws::Vector m_productCodes; bool m_productCodesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws