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

Describes an account attribute.

See Also:

AWS * API Reference

*/ class AccountAttribute { public: AWS_EC2_API AccountAttribute(); AWS_EC2_API AccountAttribute(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AccountAttribute& 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 name of the account attribute.

*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *

The name of the account attribute.

*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *

The name of the account attribute.

*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *

The name of the account attribute.

*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *

The name of the account attribute.

*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *

The name of the account attribute.

*/ inline AccountAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *

The name of the account attribute.

*/ inline AccountAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *

The name of the account attribute.

*/ inline AccountAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *

The values for the account attribute.

*/ inline const Aws::Vector& GetAttributeValues() const{ return m_attributeValues; } /** *

The values for the account attribute.

*/ inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; } /** *

The values for the account attribute.

*/ inline void SetAttributeValues(const Aws::Vector& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; } /** *

The values for the account attribute.

*/ inline void SetAttributeValues(Aws::Vector&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::move(value); } /** *

The values for the account attribute.

*/ inline AccountAttribute& WithAttributeValues(const Aws::Vector& value) { SetAttributeValues(value); return *this;} /** *

The values for the account attribute.

*/ inline AccountAttribute& WithAttributeValues(Aws::Vector&& value) { SetAttributeValues(std::move(value)); return *this;} /** *

The values for the account attribute.

*/ inline AccountAttribute& AddAttributeValues(const AccountAttributeValue& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; } /** *

The values for the account attribute.

*/ inline AccountAttribute& AddAttributeValues(AccountAttributeValue&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(std::move(value)); return *this; } private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; Aws::Vector m_attributeValues; bool m_attributeValuesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws