/** * 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 ResourceGroups { namespace Model { /** *

An item in a group configuration. A group service configuration can have one * or more items. For details about group service configuration syntax, see Service * configurations for resource groups.

See Also:

AWS * API Reference

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

Specifies the type of group configuration item. Each item must have a unique * value for type. For the list of types that you can specify for a * configuration item, see Supported * resource types and parameters.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

Specifies the type of group configuration item. Each item must have a unique * value for type. For the list of types that you can specify for a * configuration item, see Supported * resource types and parameters.

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

Specifies the type of group configuration item. Each item must have a unique * value for type. For the list of types that you can specify for a * configuration item, see Supported * resource types and parameters.

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

Specifies the type of group configuration item. Each item must have a unique * value for type. For the list of types that you can specify for a * configuration item, see Supported * resource types and parameters.

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

Specifies the type of group configuration item. Each item must have a unique * value for type. For the list of types that you can specify for a * configuration item, see Supported * resource types and parameters.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

Specifies the type of group configuration item. Each item must have a unique * value for type. For the list of types that you can specify for a * configuration item, see Supported * resource types and parameters.

*/ inline GroupConfigurationItem& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

Specifies the type of group configuration item. Each item must have a unique * value for type. For the list of types that you can specify for a * configuration item, see Supported * resource types and parameters.

*/ inline GroupConfigurationItem& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

Specifies the type of group configuration item. Each item must have a unique * value for type. For the list of types that you can specify for a * configuration item, see Supported * resource types and parameters.

*/ inline GroupConfigurationItem& WithType(const char* value) { SetType(value); return *this;} /** *

A collection of parameters for this group configuration item. For the list of * parameters that you can use with each configuration item type, see Supported * resource types and parameters.

*/ inline const Aws::Vector& GetParameters() const{ return m_parameters; } /** *

A collection of parameters for this group configuration item. For the list of * parameters that you can use with each configuration item type, see Supported * resource types and parameters.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

A collection of parameters for this group configuration item. For the list of * parameters that you can use with each configuration item type, see Supported * resource types and parameters.

*/ inline void SetParameters(const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

A collection of parameters for this group configuration item. For the list of * parameters that you can use with each configuration item type, see Supported * resource types and parameters.

*/ inline void SetParameters(Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

A collection of parameters for this group configuration item. For the list of * parameters that you can use with each configuration item type, see Supported * resource types and parameters.

*/ inline GroupConfigurationItem& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} /** *

A collection of parameters for this group configuration item. For the list of * parameters that you can use with each configuration item type, see Supported * resource types and parameters.

*/ inline GroupConfigurationItem& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} /** *

A collection of parameters for this group configuration item. For the list of * parameters that you can use with each configuration item type, see Supported * resource types and parameters.

*/ inline GroupConfigurationItem& AddParameters(const GroupConfigurationParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; } /** *

A collection of parameters for this group configuration item. For the list of * parameters that you can use with each configuration item type, see Supported * resource types and parameters.

*/ inline GroupConfigurationItem& AddParameters(GroupConfigurationParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } private: Aws::String m_type; bool m_typeHasBeenSet = false; Aws::Vector m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws