337 lines
13 KiB
C++
337 lines
13 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iot/IoT_EXPORTS.h>
|
|
#include <aws/iot/IoTRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/iot/model/ThingGroupProperties.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/iot/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace IoT
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_IOT_API CreateDynamicThingGroupRequest : public IoTRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The dynamic thing group name to create.</p>
|
|
*/
|
|
inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group name to create.</p>
|
|
*/
|
|
inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group name to create.</p>
|
|
*/
|
|
inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group name to create.</p>
|
|
*/
|
|
inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The dynamic thing group name to create.</p>
|
|
*/
|
|
inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
|
|
|
|
/**
|
|
* <p>The dynamic thing group name to create.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The dynamic thing group name to create.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The dynamic thing group name to create.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The dynamic thing group properties.</p>
|
|
*/
|
|
inline const ThingGroupProperties& GetThingGroupProperties() const{ return m_thingGroupProperties; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group properties.</p>
|
|
*/
|
|
inline bool ThingGroupPropertiesHasBeenSet() const { return m_thingGroupPropertiesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group properties.</p>
|
|
*/
|
|
inline void SetThingGroupProperties(const ThingGroupProperties& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = value; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group properties.</p>
|
|
*/
|
|
inline void SetThingGroupProperties(ThingGroupProperties&& value) { m_thingGroupPropertiesHasBeenSet = true; m_thingGroupProperties = std::move(value); }
|
|
|
|
/**
|
|
* <p>The dynamic thing group properties.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithThingGroupProperties(const ThingGroupProperties& value) { SetThingGroupProperties(value); return *this;}
|
|
|
|
/**
|
|
* <p>The dynamic thing group properties.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithThingGroupProperties(ThingGroupProperties&& value) { SetThingGroupProperties(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The dynamic thing group index name.</p> <p>Currently one index is
|
|
* supported: "AWS_Things".</p>
|
|
*/
|
|
inline const Aws::String& GetIndexName() const{ return m_indexName; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group index name.</p> <p>Currently one index is
|
|
* supported: "AWS_Things".</p>
|
|
*/
|
|
inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group index name.</p> <p>Currently one index is
|
|
* supported: "AWS_Things".</p>
|
|
*/
|
|
inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group index name.</p> <p>Currently one index is
|
|
* supported: "AWS_Things".</p>
|
|
*/
|
|
inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The dynamic thing group index name.</p> <p>Currently one index is
|
|
* supported: "AWS_Things".</p>
|
|
*/
|
|
inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
|
|
|
|
/**
|
|
* <p>The dynamic thing group index name.</p> <p>Currently one index is
|
|
* supported: "AWS_Things".</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The dynamic thing group index name.</p> <p>Currently one index is
|
|
* supported: "AWS_Things".</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The dynamic thing group index name.</p> <p>Currently one index is
|
|
* supported: "AWS_Things".</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The dynamic thing group search query string.</p> <p>See <a
|
|
* href="https://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html">Query
|
|
* Syntax</a> for information about query string syntax.</p>
|
|
*/
|
|
inline const Aws::String& GetQueryString() const{ return m_queryString; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group search query string.</p> <p>See <a
|
|
* href="https://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html">Query
|
|
* Syntax</a> for information about query string syntax.</p>
|
|
*/
|
|
inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group search query string.</p> <p>See <a
|
|
* href="https://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html">Query
|
|
* Syntax</a> for information about query string syntax.</p>
|
|
*/
|
|
inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group search query string.</p> <p>See <a
|
|
* href="https://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html">Query
|
|
* Syntax</a> for information about query string syntax.</p>
|
|
*/
|
|
inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
|
|
|
|
/**
|
|
* <p>The dynamic thing group search query string.</p> <p>See <a
|
|
* href="https://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html">Query
|
|
* Syntax</a> for information about query string syntax.</p>
|
|
*/
|
|
inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
|
|
|
|
/**
|
|
* <p>The dynamic thing group search query string.</p> <p>See <a
|
|
* href="https://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html">Query
|
|
* Syntax</a> for information about query string syntax.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
|
|
|
|
/**
|
|
* <p>The dynamic thing group search query string.</p> <p>See <a
|
|
* href="https://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html">Query
|
|
* Syntax</a> for information about query string syntax.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The dynamic thing group search query string.</p> <p>See <a
|
|
* href="https://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html">Query
|
|
* Syntax</a> for information about query string syntax.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The dynamic thing group query version.</p> <p>Currently one query
|
|
* version is supported: "2017-09-30". If not specified, the query version defaults
|
|
* to this value.</p>
|
|
*/
|
|
inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group query version.</p> <p>Currently one query
|
|
* version is supported: "2017-09-30". If not specified, the query version defaults
|
|
* to this value.</p>
|
|
*/
|
|
inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group query version.</p> <p>Currently one query
|
|
* version is supported: "2017-09-30". If not specified, the query version defaults
|
|
* to this value.</p>
|
|
*/
|
|
inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
|
|
|
|
/**
|
|
* <p>The dynamic thing group query version.</p> <p>Currently one query
|
|
* version is supported: "2017-09-30". If not specified, the query version defaults
|
|
* to this value.</p>
|
|
*/
|
|
inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
|
|
|
|
/**
|
|
* <p>The dynamic thing group query version.</p> <p>Currently one query
|
|
* version is supported: "2017-09-30". If not specified, the query version defaults
|
|
* to this value.</p>
|
|
*/
|
|
inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
|
|
|
|
/**
|
|
* <p>The dynamic thing group query version.</p> <p>Currently one query
|
|
* version is supported: "2017-09-30". If not specified, the query version defaults
|
|
* to this value.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
|
|
|
|
/**
|
|
* <p>The dynamic thing group query version.</p> <p>Currently one query
|
|
* version is supported: "2017-09-30". If not specified, the query version defaults
|
|
* to this value.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The dynamic thing group query version.</p> <p>Currently one query
|
|
* version is supported: "2017-09-30". If not specified, the query version defaults
|
|
* to this value.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Metadata which can be used to manage the dynamic thing group.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>Metadata which can be used to manage the dynamic thing group.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Metadata which can be used to manage the dynamic thing group.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>Metadata which can be used to manage the dynamic thing group.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>Metadata which can be used to manage the dynamic thing group.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>Metadata which can be used to manage the dynamic thing group.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Metadata which can be used to manage the dynamic thing group.</p>
|
|
*/
|
|
inline CreateDynamicThingGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Metadata which can be used to manage the dynamic thing group.</p>
|
|
*/
|
|
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;
|
|
|
|
ThingGroupProperties m_thingGroupProperties;
|
|
bool m_thingGroupPropertiesHasBeenSet;
|
|
|
|
Aws::String m_indexName;
|
|
bool m_indexNameHasBeenSet;
|
|
|
|
Aws::String m_queryString;
|
|
bool m_queryStringHasBeenSet;
|
|
|
|
Aws::String m_queryVersion;
|
|
bool m_queryVersionHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IoT
|
|
} // namespace Aws
|