/** * 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 #include namespace Aws { namespace IoT { namespace Model { /** */ class CreateDimensionRequest : public IoTRequest { public: AWS_IOT_API CreateDimensionRequest(); // 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 "CreateDimension"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

A unique identifier for the dimension. Choose something that describes the * type and value to make it easy to remember what it does.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A unique identifier for the dimension. Choose something that describes the * type and value to make it easy to remember what it does.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A unique identifier for the dimension. Choose something that describes the * type and value to make it easy to remember what it does.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A unique identifier for the dimension. Choose something that describes the * type and value to make it easy to remember what it does.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A unique identifier for the dimension. Choose something that describes the * type and value to make it easy to remember what it does.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A unique identifier for the dimension. Choose something that describes the * type and value to make it easy to remember what it does.

*/ inline CreateDimensionRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A unique identifier for the dimension. Choose something that describes the * type and value to make it easy to remember what it does.

*/ inline CreateDimensionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A unique identifier for the dimension. Choose something that describes the * type and value to make it easy to remember what it does.

*/ inline CreateDimensionRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Specifies the type of dimension. Supported types: TOPIC_FILTER. *

*/ inline const DimensionType& GetType() const{ return m_type; } /** *

Specifies the type of dimension. Supported types: TOPIC_FILTER. *

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Specifies the type of dimension. Supported types: TOPIC_FILTER. *

*/ inline void SetType(const DimensionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Specifies the type of dimension. Supported types: TOPIC_FILTER. *

*/ inline void SetType(DimensionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Specifies the type of dimension. Supported types: TOPIC_FILTER. *

*/ inline CreateDimensionRequest& WithType(const DimensionType& value) { SetType(value); return *this;} /** *

Specifies the type of dimension. Supported types: TOPIC_FILTER. *

*/ inline CreateDimensionRequest& WithType(DimensionType&& value) { SetType(std::move(value)); return *this;} /** *

Specifies the value or list of values for the dimension. For * TOPIC_FILTER dimensions, this is a pattern used to match the MQTT * topic (for example, "admin/#").

*/ inline const Aws::Vector& GetStringValues() const{ return m_stringValues; } /** *

Specifies the value or list of values for the dimension. For * TOPIC_FILTER dimensions, this is a pattern used to match the MQTT * topic (for example, "admin/#").

*/ inline bool StringValuesHasBeenSet() const { return m_stringValuesHasBeenSet; } /** *

Specifies the value or list of values for the dimension. For * TOPIC_FILTER dimensions, this is a pattern used to match the MQTT * topic (for example, "admin/#").

*/ inline void SetStringValues(const Aws::Vector& value) { m_stringValuesHasBeenSet = true; m_stringValues = value; } /** *

Specifies the value or list of values for the dimension. For * TOPIC_FILTER dimensions, this is a pattern used to match the MQTT * topic (for example, "admin/#").

*/ inline void SetStringValues(Aws::Vector&& value) { m_stringValuesHasBeenSet = true; m_stringValues = std::move(value); } /** *

Specifies the value or list of values for the dimension. For * TOPIC_FILTER dimensions, this is a pattern used to match the MQTT * topic (for example, "admin/#").

*/ inline CreateDimensionRequest& WithStringValues(const Aws::Vector& value) { SetStringValues(value); return *this;} /** *

Specifies the value or list of values for the dimension. For * TOPIC_FILTER dimensions, this is a pattern used to match the MQTT * topic (for example, "admin/#").

*/ inline CreateDimensionRequest& WithStringValues(Aws::Vector&& value) { SetStringValues(std::move(value)); return *this;} /** *

Specifies the value or list of values for the dimension. For * TOPIC_FILTER dimensions, this is a pattern used to match the MQTT * topic (for example, "admin/#").

*/ inline CreateDimensionRequest& AddStringValues(const Aws::String& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; } /** *

Specifies the value or list of values for the dimension. For * TOPIC_FILTER dimensions, this is a pattern used to match the MQTT * topic (for example, "admin/#").

*/ inline CreateDimensionRequest& AddStringValues(Aws::String&& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(std::move(value)); return *this; } /** *

Specifies the value or list of values for the dimension. For * TOPIC_FILTER dimensions, this is a pattern used to match the MQTT * topic (for example, "admin/#").

*/ inline CreateDimensionRequest& AddStringValues(const char* value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; } /** *

Metadata that can be used to manage the dimension.

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

Metadata that can be used to manage the dimension.

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

Metadata that can be used to manage the dimension.

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

Metadata that can be used to manage the dimension.

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

Metadata that can be used to manage the dimension.

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

Metadata that can be used to manage the dimension.

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

Metadata that can be used to manage the dimension.

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

Metadata that can be used to manage the dimension.

*/ inline CreateDimensionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Each dimension must have a unique client request token. If you try to create * a new dimension with the same token as a dimension that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Each dimension must have a unique client request token. If you try to create * a new dimension with the same token as a dimension that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Each dimension must have a unique client request token. If you try to create * a new dimension with the same token as a dimension that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Each dimension must have a unique client request token. If you try to create * a new dimension with the same token as a dimension that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Each dimension must have a unique client request token. If you try to create * a new dimension with the same token as a dimension that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Each dimension must have a unique client request token. If you try to create * a new dimension with the same token as a dimension that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline CreateDimensionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Each dimension must have a unique client request token. If you try to create * a new dimension with the same token as a dimension that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline CreateDimensionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Each dimension must have a unique client request token. If you try to create * a new dimension with the same token as a dimension that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline CreateDimensionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; DimensionType m_type; bool m_typeHasBeenSet = false; Aws::Vector m_stringValues; bool m_stringValuesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws