/** * 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 { /** *

Describes a product code.

See Also:

AWS API * Reference

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

*/ inline const Aws::String& GetProductCodeId() const{ return m_productCodeId; } /** *

The product code.

*/ inline bool ProductCodeIdHasBeenSet() const { return m_productCodeIdHasBeenSet; } /** *

The product code.

*/ inline void SetProductCodeId(const Aws::String& value) { m_productCodeIdHasBeenSet = true; m_productCodeId = value; } /** *

The product code.

*/ inline void SetProductCodeId(Aws::String&& value) { m_productCodeIdHasBeenSet = true; m_productCodeId = std::move(value); } /** *

The product code.

*/ inline void SetProductCodeId(const char* value) { m_productCodeIdHasBeenSet = true; m_productCodeId.assign(value); } /** *

The product code.

*/ inline ProductCode& WithProductCodeId(const Aws::String& value) { SetProductCodeId(value); return *this;} /** *

The product code.

*/ inline ProductCode& WithProductCodeId(Aws::String&& value) { SetProductCodeId(std::move(value)); return *this;} /** *

The product code.

*/ inline ProductCode& WithProductCodeId(const char* value) { SetProductCodeId(value); return *this;} /** *

The type of product code.

*/ inline const ProductCodeValues& GetProductCodeType() const{ return m_productCodeType; } /** *

The type of product code.

*/ inline bool ProductCodeTypeHasBeenSet() const { return m_productCodeTypeHasBeenSet; } /** *

The type of product code.

*/ inline void SetProductCodeType(const ProductCodeValues& value) { m_productCodeTypeHasBeenSet = true; m_productCodeType = value; } /** *

The type of product code.

*/ inline void SetProductCodeType(ProductCodeValues&& value) { m_productCodeTypeHasBeenSet = true; m_productCodeType = std::move(value); } /** *

The type of product code.

*/ inline ProductCode& WithProductCodeType(const ProductCodeValues& value) { SetProductCodeType(value); return *this;} /** *

The type of product code.

*/ inline ProductCode& WithProductCodeType(ProductCodeValues&& value) { SetProductCodeType(std::move(value)); return *this;} private: Aws::String m_productCodeId; bool m_productCodeIdHasBeenSet = false; ProductCodeValues m_productCodeType; bool m_productCodeTypeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws