/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoT { namespace Model { /** */ class UpdateDimensionRequest : public IoTRequest { public: AWS_IOT_API UpdateDimensionRequest(); // 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 "UpdateDimension"; } 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 UpdateDimensionRequest& 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 UpdateDimensionRequest& 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 UpdateDimensionRequest& WithName(const char* value) { SetName(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 UpdateDimensionRequest& 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 UpdateDimensionRequest& 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 UpdateDimensionRequest& 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 UpdateDimensionRequest& 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 UpdateDimensionRequest& AddStringValues(const char* value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_stringValues; bool m_stringValuesHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws