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

Indicates a field that is read-only to an agent.

See Also:

* AWS * API Reference

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

Identifier of the read-only field.

*/ inline const TaskTemplateFieldIdentifier& GetId() const{ return m_id; } /** *

Identifier of the read-only field.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

Identifier of the read-only field.

*/ inline void SetId(const TaskTemplateFieldIdentifier& value) { m_idHasBeenSet = true; m_id = value; } /** *

Identifier of the read-only field.

*/ inline void SetId(TaskTemplateFieldIdentifier&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

Identifier of the read-only field.

*/ inline ReadOnlyFieldInfo& WithId(const TaskTemplateFieldIdentifier& value) { SetId(value); return *this;} /** *

Identifier of the read-only field.

*/ inline ReadOnlyFieldInfo& WithId(TaskTemplateFieldIdentifier&& value) { SetId(std::move(value)); return *this;} private: TaskTemplateFieldIdentifier m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws