/** * 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 configuration can have one or more * items.

See Also:

AWS * API Reference

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

Specifies the type of group configuration item. Each item must have a unique * value for type.

You can specify the following string * values:

  • AWS::EC2::CapacityReservationPool

    *

    For more information about EC2 capacity reservation groups, see Working * with capacity reservation groups in the EC2 Users Guide.

  • *
  • AWS::ResourceGroups::Generic - Supports parameters that * configure the behavior of resource groups of any type.

*/ 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.

You can specify the following string * values:

  • AWS::EC2::CapacityReservationPool

    *

    For more information about EC2 capacity reservation groups, see Working * with capacity reservation groups in the EC2 Users Guide.

  • *
  • AWS::ResourceGroups::Generic - Supports parameters that * configure the behavior of resource groups of any type.

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

Specifies the type of group configuration item. Each item must have a unique * value for type.

You can specify the following string * values:

  • AWS::EC2::CapacityReservationPool

    *

    For more information about EC2 capacity reservation groups, see Working * with capacity reservation groups in the EC2 Users Guide.

  • *
  • AWS::ResourceGroups::Generic - Supports parameters that * configure the behavior of resource groups of any type.

*/ 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.

You can specify the following string * values:

  • AWS::EC2::CapacityReservationPool

    *

    For more information about EC2 capacity reservation groups, see Working * with capacity reservation groups in the EC2 Users Guide.

  • *
  • AWS::ResourceGroups::Generic - Supports parameters that * configure the behavior of resource groups of any type.

*/ 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.

You can specify the following string * values:

  • AWS::EC2::CapacityReservationPool

    *

    For more information about EC2 capacity reservation groups, see Working * with capacity reservation groups in the EC2 Users Guide.

  • *
  • AWS::ResourceGroups::Generic - Supports parameters that * configure the behavior of resource groups of any type.

*/ 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.

You can specify the following string * values:

  • AWS::EC2::CapacityReservationPool

    *

    For more information about EC2 capacity reservation groups, see Working * with capacity reservation groups in the EC2 Users Guide.

  • *
  • AWS::ResourceGroups::Generic - Supports parameters that * configure the behavior of resource groups of any type.

*/ 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.

You can specify the following string * values:

  • AWS::EC2::CapacityReservationPool

    *

    For more information about EC2 capacity reservation groups, see Working * with capacity reservation groups in the EC2 Users Guide.

  • *
  • AWS::ResourceGroups::Generic - Supports parameters that * configure the behavior of resource groups of any type.

*/ 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.

You can specify the following string * values:

  • AWS::EC2::CapacityReservationPool

    *

    For more information about EC2 capacity reservation groups, see Working * with capacity reservation groups in the EC2 Users Guide.

  • *
  • AWS::ResourceGroups::Generic - Supports parameters that * configure the behavior of resource groups of any type.

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

A collection of parameters for this group configuration item.

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

A collection of parameters for this group configuration item.

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

A collection of parameters for this group configuration item.

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

A collection of parameters for this group configuration item.

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

A collection of parameters for this group configuration item.

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

A collection of parameters for this group configuration item.

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

A collection of parameters for this group configuration item.

*/ 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.

*/ 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; Aws::Vector m_parameters; bool m_parametersHasBeenSet; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws