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

Describes a value for a resource attribute that is a String.

See * Also:

AWS * API Reference

*/ class AttributeValue { public: AWS_EC2_API AttributeValue(); AWS_EC2_API AttributeValue(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AttributeValue& 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 attribute value. The value is case-sensitive.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The attribute value. The value is case-sensitive.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The attribute value. The value is case-sensitive.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The attribute value. The value is case-sensitive.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The attribute value. The value is case-sensitive.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The attribute value. The value is case-sensitive.

*/ inline AttributeValue& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The attribute value. The value is case-sensitive.

*/ inline AttributeValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The attribute value. The value is case-sensitive.

*/ inline AttributeValue& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws