/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Connect { namespace Model { /** *

A toggle for an individual feature at the instance level.

See * Also:

AWS * API Reference

*/ class Attribute { public: AWS_CONNECT_API Attribute(); AWS_CONNECT_API Attribute(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Attribute& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of attribute.

*/ inline const InstanceAttributeType& GetAttributeType() const{ return m_attributeType; } /** *

The type of attribute.

*/ inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; } /** *

The type of attribute.

*/ inline void SetAttributeType(const InstanceAttributeType& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; } /** *

The type of attribute.

*/ inline void SetAttributeType(InstanceAttributeType&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); } /** *

The type of attribute.

*/ inline Attribute& WithAttributeType(const InstanceAttributeType& value) { SetAttributeType(value); return *this;} /** *

The type of attribute.

*/ inline Attribute& WithAttributeType(InstanceAttributeType&& value) { SetAttributeType(std::move(value)); return *this;} /** *

The value of the attribute.

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

The value of the attribute.

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

The value of the attribute.

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

The value of the attribute.

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

The value of the attribute.

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

The value of the attribute.

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

The value of the attribute.

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

The value of the attribute.

*/ inline Attribute& WithValue(const char* value) { SetValue(value); return *this;} private: InstanceAttributeType m_attributeType; bool m_attributeTypeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws