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

Describes a single task template field.

See Also:

AWS * API Reference

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

The unique identifier for the field.

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

The unique identifier for the field.

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

The unique identifier for the field.

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

The unique identifier for the field.

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

The unique identifier for the field.

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

The unique identifier for the field.

*/ inline TaskTemplateField& WithId(TaskTemplateFieldIdentifier&& value) { SetId(std::move(value)); return *this;} /** *

The description of the field.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the field.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the field.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the field.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the field.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the field.

*/ inline TaskTemplateField& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the field.

*/ inline TaskTemplateField& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the field.

*/ inline TaskTemplateField& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Indicates the type of field.

*/ inline const TaskTemplateFieldType& GetType() const{ return m_type; } /** *

Indicates the type of field.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Indicates the type of field.

*/ inline void SetType(const TaskTemplateFieldType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Indicates the type of field.

*/ inline void SetType(TaskTemplateFieldType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Indicates the type of field.

*/ inline TaskTemplateField& WithType(const TaskTemplateFieldType& value) { SetType(value); return *this;} /** *

Indicates the type of field.

*/ inline TaskTemplateField& WithType(TaskTemplateFieldType&& value) { SetType(std::move(value)); return *this;} /** *

A list of options for a single select field.

*/ inline const Aws::Vector& GetSingleSelectOptions() const{ return m_singleSelectOptions; } /** *

A list of options for a single select field.

*/ inline bool SingleSelectOptionsHasBeenSet() const { return m_singleSelectOptionsHasBeenSet; } /** *

A list of options for a single select field.

*/ inline void SetSingleSelectOptions(const Aws::Vector& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions = value; } /** *

A list of options for a single select field.

*/ inline void SetSingleSelectOptions(Aws::Vector&& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions = std::move(value); } /** *

A list of options for a single select field.

*/ inline TaskTemplateField& WithSingleSelectOptions(const Aws::Vector& value) { SetSingleSelectOptions(value); return *this;} /** *

A list of options for a single select field.

*/ inline TaskTemplateField& WithSingleSelectOptions(Aws::Vector&& value) { SetSingleSelectOptions(std::move(value)); return *this;} /** *

A list of options for a single select field.

*/ inline TaskTemplateField& AddSingleSelectOptions(const Aws::String& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions.push_back(value); return *this; } /** *

A list of options for a single select field.

*/ inline TaskTemplateField& AddSingleSelectOptions(Aws::String&& value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions.push_back(std::move(value)); return *this; } /** *

A list of options for a single select field.

*/ inline TaskTemplateField& AddSingleSelectOptions(const char* value) { m_singleSelectOptionsHasBeenSet = true; m_singleSelectOptions.push_back(value); return *this; } private: TaskTemplateFieldIdentifier m_id; bool m_idHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; TaskTemplateFieldType m_type; bool m_typeHasBeenSet = false; Aws::Vector m_singleSelectOptions; bool m_singleSelectOptionsHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws