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

Parameters used when defining a mitigation action that move a set of things * to a thing group.

See Also:

AWS * API Reference

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

The list of groups to which you want to add the things that triggered the * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline const Aws::Vector& GetThingGroupNames() const{ return m_thingGroupNames; } /** *

The list of groups to which you want to add the things that triggered the * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline bool ThingGroupNamesHasBeenSet() const { return m_thingGroupNamesHasBeenSet; } /** *

The list of groups to which you want to add the things that triggered the * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline void SetThingGroupNames(const Aws::Vector& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames = value; } /** *

The list of groups to which you want to add the things that triggered the * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline void SetThingGroupNames(Aws::Vector&& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames = std::move(value); } /** *

The list of groups to which you want to add the things that triggered the * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& WithThingGroupNames(const Aws::Vector& value) { SetThingGroupNames(value); return *this;} /** *

The list of groups to which you want to add the things that triggered the * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& WithThingGroupNames(Aws::Vector&& value) { SetThingGroupNames(std::move(value)); return *this;} /** *

The list of groups to which you want to add the things that triggered the * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& AddThingGroupNames(const Aws::String& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(value); return *this; } /** *

The list of groups to which you want to add the things that triggered the * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& AddThingGroupNames(Aws::String&& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(std::move(value)); return *this; } /** *

The list of groups to which you want to add the things that triggered the * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& AddThingGroupNames(const char* value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(value); return *this; } /** *

Specifies if this mitigation action can move the things that triggered the * mitigation action even if they are part of one or more dynamic thing groups.

*/ inline bool GetOverrideDynamicGroups() const{ return m_overrideDynamicGroups; } /** *

Specifies if this mitigation action can move the things that triggered the * mitigation action even if they are part of one or more dynamic thing groups.

*/ inline bool OverrideDynamicGroupsHasBeenSet() const { return m_overrideDynamicGroupsHasBeenSet; } /** *

Specifies if this mitigation action can move the things that triggered the * mitigation action even if they are part of one or more dynamic thing groups.

*/ inline void SetOverrideDynamicGroups(bool value) { m_overrideDynamicGroupsHasBeenSet = true; m_overrideDynamicGroups = value; } /** *

Specifies if this mitigation action can move the things that triggered the * mitigation action even if they are part of one or more dynamic thing groups.

*/ inline AddThingsToThingGroupParams& WithOverrideDynamicGroups(bool value) { SetOverrideDynamicGroups(value); return *this;} private: Aws::Vector m_thingGroupNames; bool m_thingGroupNamesHasBeenSet = false; bool m_overrideDynamicGroups; bool m_overrideDynamicGroupsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws