/** * 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 CreateDynamicThingGroupRequest : public IoTRequest { public: AWS_IOT_API CreateDynamicThingGroupRequest(); // 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 "CreateDynamicThingGroup"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The dynamic thing group name to create.

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

The dynamic thing group name to create.

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

The dynamic thing group name to create.

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

The dynamic thing group name to create.

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

The dynamic thing group name to create.

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

The dynamic thing group name to create.

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

The dynamic thing group name to create.

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

The dynamic thing group name to create.

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

The dynamic thing group properties.

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

The dynamic thing group properties.

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

The dynamic thing group properties.

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

The dynamic thing group properties.

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

The dynamic thing group properties.

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

The dynamic thing group properties.

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

The dynamic thing group index name.

Currently one index is * supported: AWS_Things.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The dynamic thing group index name.

Currently one index is * supported: AWS_Things.

*/ inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; } /** *

The dynamic thing group index name.

Currently one index is * supported: AWS_Things.

*/ inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; } /** *

The dynamic thing group index name.

Currently one index is * supported: AWS_Things.

*/ inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); } /** *

The dynamic thing group index name.

Currently one index is * supported: AWS_Things.

*/ inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); } /** *

The dynamic thing group index name.

Currently one index is * supported: AWS_Things.

*/ inline CreateDynamicThingGroupRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The dynamic thing group index name.

Currently one index is * supported: AWS_Things.

*/ inline CreateDynamicThingGroupRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The dynamic thing group index name.

Currently one index is * supported: AWS_Things.

*/ inline CreateDynamicThingGroupRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

The dynamic thing group search query string.

See Query * Syntax for information about query string syntax.

*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *

The dynamic thing group search query string.

See Query * Syntax for information about query string syntax.

*/ inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; } /** *

The dynamic thing group search query string.

See Query * Syntax for information about query string syntax.

*/ inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; } /** *

The dynamic thing group search query string.

See Query * Syntax for information about query string syntax.

*/ inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); } /** *

The dynamic thing group search query string.

See Query * Syntax for information about query string syntax.

*/ inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); } /** *

The dynamic thing group search query string.

See Query * Syntax for information about query string syntax.

*/ inline CreateDynamicThingGroupRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *

The dynamic thing group search query string.

See Query * Syntax for information about query string syntax.

*/ inline CreateDynamicThingGroupRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *

The dynamic thing group search query string.

See Query * Syntax for information about query string syntax.

*/ inline CreateDynamicThingGroupRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *

The dynamic thing group query version.

Currently one query * version is supported: "2017-09-30". If not specified, the query version defaults * to this value.

*/ inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; } /** *

The dynamic thing group query version.

Currently one query * version is supported: "2017-09-30". If not specified, the query version defaults * to this value.

*/ inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; } /** *

The dynamic thing group query version.

Currently one query * version is supported: "2017-09-30". If not specified, the query version defaults * to this value.

*/ inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; } /** *

The dynamic thing group query version.

Currently one query * version is supported: "2017-09-30". If not specified, the query version defaults * to this value.

*/ inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); } /** *

The dynamic thing group query version.

Currently one query * version is supported: "2017-09-30". If not specified, the query version defaults * to this value.

*/ inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); } /** *

The dynamic thing group query version.

Currently one query * version is supported: "2017-09-30". If not specified, the query version defaults * to this value.

*/ inline CreateDynamicThingGroupRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;} /** *

The dynamic thing group query version.

Currently one query * version is supported: "2017-09-30". If not specified, the query version defaults * to this value.

*/ inline CreateDynamicThingGroupRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;} /** *

The dynamic thing group query version.

Currently one query * version is supported: "2017-09-30". If not specified, the query version defaults * to this value.

*/ inline CreateDynamicThingGroupRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;} /** *

Metadata which can be used to manage the dynamic thing group.

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

Metadata which can be used to manage the dynamic thing group.

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

Metadata which can be used to manage the dynamic thing group.

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

Metadata which can be used to manage the dynamic thing group.

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

Metadata which can be used to manage the dynamic thing group.

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

Metadata which can be used to manage the dynamic thing group.

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

Metadata which can be used to manage the dynamic thing group.

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

Metadata which can be used to manage the dynamic thing group.

*/ inline CreateDynamicThingGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_thingGroupName; bool m_thingGroupNameHasBeenSet = false; ThingGroupProperties m_thingGroupProperties; bool m_thingGroupPropertiesHasBeenSet = false; Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::String m_queryString; bool m_queryStringHasBeenSet = false; Aws::String m_queryVersion; bool m_queryVersionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws