This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-resource-groups/include/aws/resource-groups/model/GroupConfigurationItem.h

192 lines
9.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/resource-groups/model/GroupConfigurationParameter.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ResourceGroups
{
namespace Model
{
/**
* <p>An item in a group configuration. A group configuration can have one or more
* items.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupConfigurationItem">AWS
* API Reference</a></p>
*/
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;
/**
* <p>Specifies the type of group configuration item. Each item must have a unique
* value for <code>type</code>.</p> <p>You can specify the following string
* values:</p> <ul> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p>
* <p>For more information about EC2 capacity reservation groups, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group">Working
* with capacity reservation groups</a> in the <i>EC2 Users Guide</i>.</p> </li>
* <li> <p> <code>AWS::ResourceGroups::Generic</code> - Supports parameters that
* configure the behavior of resource groups of any type.</p> </li> </ul>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Specifies the type of group configuration item. Each item must have a unique
* value for <code>type</code>.</p> <p>You can specify the following string
* values:</p> <ul> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p>
* <p>For more information about EC2 capacity reservation groups, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group">Working
* with capacity reservation groups</a> in the <i>EC2 Users Guide</i>.</p> </li>
* <li> <p> <code>AWS::ResourceGroups::Generic</code> - Supports parameters that
* configure the behavior of resource groups of any type.</p> </li> </ul>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Specifies the type of group configuration item. Each item must have a unique
* value for <code>type</code>.</p> <p>You can specify the following string
* values:</p> <ul> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p>
* <p>For more information about EC2 capacity reservation groups, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group">Working
* with capacity reservation groups</a> in the <i>EC2 Users Guide</i>.</p> </li>
* <li> <p> <code>AWS::ResourceGroups::Generic</code> - Supports parameters that
* configure the behavior of resource groups of any type.</p> </li> </ul>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Specifies the type of group configuration item. Each item must have a unique
* value for <code>type</code>.</p> <p>You can specify the following string
* values:</p> <ul> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p>
* <p>For more information about EC2 capacity reservation groups, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group">Working
* with capacity reservation groups</a> in the <i>EC2 Users Guide</i>.</p> </li>
* <li> <p> <code>AWS::ResourceGroups::Generic</code> - Supports parameters that
* configure the behavior of resource groups of any type.</p> </li> </ul>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Specifies the type of group configuration item. Each item must have a unique
* value for <code>type</code>.</p> <p>You can specify the following string
* values:</p> <ul> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p>
* <p>For more information about EC2 capacity reservation groups, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group">Working
* with capacity reservation groups</a> in the <i>EC2 Users Guide</i>.</p> </li>
* <li> <p> <code>AWS::ResourceGroups::Generic</code> - Supports parameters that
* configure the behavior of resource groups of any type.</p> </li> </ul>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Specifies the type of group configuration item. Each item must have a unique
* value for <code>type</code>.</p> <p>You can specify the following string
* values:</p> <ul> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p>
* <p>For more information about EC2 capacity reservation groups, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group">Working
* with capacity reservation groups</a> in the <i>EC2 Users Guide</i>.</p> </li>
* <li> <p> <code>AWS::ResourceGroups::Generic</code> - Supports parameters that
* configure the behavior of resource groups of any type.</p> </li> </ul>
*/
inline GroupConfigurationItem& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Specifies the type of group configuration item. Each item must have a unique
* value for <code>type</code>.</p> <p>You can specify the following string
* values:</p> <ul> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p>
* <p>For more information about EC2 capacity reservation groups, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group">Working
* with capacity reservation groups</a> in the <i>EC2 Users Guide</i>.</p> </li>
* <li> <p> <code>AWS::ResourceGroups::Generic</code> - Supports parameters that
* configure the behavior of resource groups of any type.</p> </li> </ul>
*/
inline GroupConfigurationItem& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Specifies the type of group configuration item. Each item must have a unique
* value for <code>type</code>.</p> <p>You can specify the following string
* values:</p> <ul> <li> <p> <code>AWS::EC2::CapacityReservationPool</code> </p>
* <p>For more information about EC2 capacity reservation groups, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group">Working
* with capacity reservation groups</a> in the <i>EC2 Users Guide</i>.</p> </li>
* <li> <p> <code>AWS::ResourceGroups::Generic</code> - Supports parameters that
* configure the behavior of resource groups of any type.</p> </li> </ul>
*/
inline GroupConfigurationItem& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>A collection of parameters for this group configuration item.</p>
*/
inline const Aws::Vector<GroupConfigurationParameter>& GetParameters() const{ return m_parameters; }
/**
* <p>A collection of parameters for this group configuration item.</p>
*/
inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
/**
* <p>A collection of parameters for this group configuration item.</p>
*/
inline void SetParameters(const Aws::Vector<GroupConfigurationParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
/**
* <p>A collection of parameters for this group configuration item.</p>
*/
inline void SetParameters(Aws::Vector<GroupConfigurationParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
/**
* <p>A collection of parameters for this group configuration item.</p>
*/
inline GroupConfigurationItem& WithParameters(const Aws::Vector<GroupConfigurationParameter>& value) { SetParameters(value); return *this;}
/**
* <p>A collection of parameters for this group configuration item.</p>
*/
inline GroupConfigurationItem& WithParameters(Aws::Vector<GroupConfigurationParameter>&& value) { SetParameters(std::move(value)); return *this;}
/**
* <p>A collection of parameters for this group configuration item.</p>
*/
inline GroupConfigurationItem& AddParameters(const GroupConfigurationParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
/**
* <p>A collection of parameters for this group configuration item.</p>
*/
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<GroupConfigurationParameter> m_parameters;
bool m_parametersHasBeenSet;
};
} // namespace Model
} // namespace ResourceGroups
} // namespace Aws