/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace IoT { namespace Model { /** */ class CreateThingGroupRequest : public IoTRequest { public: AWS_IOT_API CreateThingGroupRequest(); // 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 "CreateThingGroup"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The thing group name to create.

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

The thing group name to create.

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

The thing group name to create.

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

The thing group name to create.

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

The thing group name to create.

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

The thing group name to create.

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

The thing group name to create.

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

The thing group name to create.

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

The name of the parent thing group.

*/ inline const Aws::String& GetParentGroupName() const{ return m_parentGroupName; } /** *

The name of the parent thing group.

*/ inline bool ParentGroupNameHasBeenSet() const { return m_parentGroupNameHasBeenSet; } /** *

The name of the parent thing group.

*/ inline void SetParentGroupName(const Aws::String& value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName = value; } /** *

The name of the parent thing group.

*/ inline void SetParentGroupName(Aws::String&& value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName = std::move(value); } /** *

The name of the parent thing group.

*/ inline void SetParentGroupName(const char* value) { m_parentGroupNameHasBeenSet = true; m_parentGroupName.assign(value); } /** *

The name of the parent thing group.

*/ inline CreateThingGroupRequest& WithParentGroupName(const Aws::String& value) { SetParentGroupName(value); return *this;} /** *

The name of the parent thing group.

*/ inline CreateThingGroupRequest& WithParentGroupName(Aws::String&& value) { SetParentGroupName(std::move(value)); return *this;} /** *

The name of the parent thing group.

*/ inline CreateThingGroupRequest& WithParentGroupName(const char* value) { SetParentGroupName(value); return *this;} /** *

The thing group properties.

*/ inline const ThingGroupProperties& GetThingGroupProperties() const{ return m_thingGroupProperties; } /** *

The thing group properties.

*/ inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; } /** *

The thing group properties.

*/ inline void SetThingGroupProperties(const ThingGroupProperties& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = value; } /** *

The thing group properties.

*/ inline void SetThingGroupProperties(ThingGroupProperties&& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = std::move(value); } /** *

The thing group properties.

*/ inline CreateThingGroupRequest& WithThingGroupProperties(const ThingGroupProperties& value) { SetThingGroupProperties(value); return *this;} /** *

The thing group properties.

*/ inline CreateThingGroupRequest& WithThingGroupProperties(ThingGroupProperties&& value) { SetThingGroupProperties(std::move(value)); return *this;} /** *

Metadata which can be used to manage the thing group.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Metadata which can be used to manage the thing group.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata which can be used to manage the thing group.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata which can be used to manage the thing group.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata which can be used to manage the thing group.

*/ inline CreateThingGroupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Metadata which can be used to manage the thing group.

*/ inline CreateThingGroupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata which can be used to manage the thing group.

*/ inline CreateThingGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Metadata which can be used to manage the thing group.

*/ inline CreateThingGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_thingGroupName; bool m_thingGroupNameHasBeenSet = false; Aws::String m_parentGroupName; bool m_parentGroupNameHasBeenSet = false; ThingGroupProperties m_thingGroupProperties; bool m_thingGroupPropertiesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws