/** * 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 IoT { namespace Model { /** */ class AddThingToThingGroupRequest : public IoTRequest { public: AWS_IOT_API AddThingToThingGroupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AddThingToThingGroup"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The name of the group to which you are adding a thing.

*/ inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; } /** *

The name of the group to which you are adding a thing.

*/ inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; } /** *

The name of the group to which you are adding a thing.

*/ inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; } /** *

The name of the group to which you are adding a thing.

*/ inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); } /** *

The name of the group to which you are adding a thing.

*/ inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); } /** *

The name of the group to which you are adding a thing.

*/ inline AddThingToThingGroupRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;} /** *

The name of the group to which you are adding a thing.

*/ inline AddThingToThingGroupRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;} /** *

The name of the group to which you are adding a thing.

*/ inline AddThingToThingGroupRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;} /** *

The ARN of the group to which you are adding a thing.

*/ inline const Aws::String& GetThingGroupArn() const{ return m_thingGroupArn; } /** *

The ARN of the group to which you are adding a thing.

*/ inline bool ThingGroupArnHasBeenSet() const { return m_thingGroupArnHasBeenSet; } /** *

The ARN of the group to which you are adding a thing.

*/ inline void SetThingGroupArn(const Aws::String& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = value; } /** *

The ARN of the group to which you are adding a thing.

*/ inline void SetThingGroupArn(Aws::String&& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = std::move(value); } /** *

The ARN of the group to which you are adding a thing.

*/ inline void SetThingGroupArn(const char* value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn.assign(value); } /** *

The ARN of the group to which you are adding a thing.

*/ inline AddThingToThingGroupRequest& WithThingGroupArn(const Aws::String& value) { SetThingGroupArn(value); return *this;} /** *

The ARN of the group to which you are adding a thing.

*/ inline AddThingToThingGroupRequest& WithThingGroupArn(Aws::String&& value) { SetThingGroupArn(std::move(value)); return *this;} /** *

The ARN of the group to which you are adding a thing.

*/ inline AddThingToThingGroupRequest& WithThingGroupArn(const char* value) { SetThingGroupArn(value); return *this;} /** *

The name of the thing to add to a group.

*/ inline const Aws::String& GetThingName() const{ return m_thingName; } /** *

The name of the thing to add to a group.

*/ inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; } /** *

The name of the thing to add to a group.

*/ inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; } /** *

The name of the thing to add to a group.

*/ inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); } /** *

The name of the thing to add to a group.

*/ inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); } /** *

The name of the thing to add to a group.

*/ inline AddThingToThingGroupRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} /** *

The name of the thing to add to a group.

*/ inline AddThingToThingGroupRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} /** *

The name of the thing to add to a group.

*/ inline AddThingToThingGroupRequest& WithThingName(const char* value) { SetThingName(value); return *this;} /** *

The ARN of the thing to add to a group.

*/ inline const Aws::String& GetThingArn() const{ return m_thingArn; } /** *

The ARN of the thing to add to a group.

*/ inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; } /** *

The ARN of the thing to add to a group.

*/ inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; } /** *

The ARN of the thing to add to a group.

*/ inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); } /** *

The ARN of the thing to add to a group.

*/ inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); } /** *

The ARN of the thing to add to a group.

*/ inline AddThingToThingGroupRequest& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;} /** *

The ARN of the thing to add to a group.

*/ inline AddThingToThingGroupRequest& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;} /** *

The ARN of the thing to add to a group.

*/ inline AddThingToThingGroupRequest& WithThingArn(const char* value) { SetThingArn(value); return *this;} /** *

Override dynamic thing groups with static thing groups when 10-group limit is * reached. If a thing belongs to 10 thing groups, and one or more of those groups * are dynamic thing groups, adding a thing to a static group removes the thing * from the last dynamic group.

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

Override dynamic thing groups with static thing groups when 10-group limit is * reached. If a thing belongs to 10 thing groups, and one or more of those groups * are dynamic thing groups, adding a thing to a static group removes the thing * from the last dynamic group.

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

Override dynamic thing groups with static thing groups when 10-group limit is * reached. If a thing belongs to 10 thing groups, and one or more of those groups * are dynamic thing groups, adding a thing to a static group removes the thing * from the last dynamic group.

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

Override dynamic thing groups with static thing groups when 10-group limit is * reached. If a thing belongs to 10 thing groups, and one or more of those groups * are dynamic thing groups, adding a thing to a static group removes the thing * from the last dynamic group.

*/ inline AddThingToThingGroupRequest& WithOverrideDynamicGroups(bool value) { SetOverrideDynamicGroups(value); return *this;} private: Aws::String m_thingGroupName; bool m_thingGroupNameHasBeenSet = false; Aws::String m_thingGroupArn; bool m_thingGroupArnHasBeenSet = false; Aws::String m_thingName; bool m_thingNameHasBeenSet = false; Aws::String m_thingArn; bool m_thingArnHasBeenSet = false; bool m_overrideDynamicGroups; bool m_overrideDynamicGroupsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws