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

Object for a group of fields and associated properties.

See * Also:

AWS * API Reference

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

Represents an ordered list containing field related information.

*/ inline const Aws::Vector& GetFields() const{ return m_fields; } /** *

Represents an ordered list containing field related information.

*/ inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *

Represents an ordered list containing field related information.

*/ inline void SetFields(const Aws::Vector& value) { m_fieldsHasBeenSet = true; m_fields = value; } /** *

Represents an ordered list containing field related information.

*/ inline void SetFields(Aws::Vector&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); } /** *

Represents an ordered list containing field related information.

*/ inline FieldGroup& WithFields(const Aws::Vector& value) { SetFields(value); return *this;} /** *

Represents an ordered list containing field related information.

*/ inline FieldGroup& WithFields(Aws::Vector&& value) { SetFields(std::move(value)); return *this;} /** *

Represents an ordered list containing field related information.

*/ inline FieldGroup& AddFields(const FieldItem& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } /** *

Represents an ordered list containing field related information.

*/ inline FieldGroup& AddFields(FieldItem&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; } /** *

Name of the field group.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Name of the field group.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Name of the field group.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Name of the field group.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Name of the field group.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Name of the field group.

*/ inline FieldGroup& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Name of the field group.

*/ inline FieldGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Name of the field group.

*/ inline FieldGroup& WithName(const char* value) { SetName(value); return *this;} private: Aws::Vector m_fields; bool m_fieldsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws