/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTEvents { namespace Model { /** *

Information about the variable and its new value.

See Also:

* AWS * API Reference

*/ class SetVariableAction { public: AWS_IOTEVENTS_API SetVariableAction(); AWS_IOTEVENTS_API SetVariableAction(Aws::Utils::Json::JsonView jsonValue); AWS_IOTEVENTS_API SetVariableAction& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the variable.

*/ inline const Aws::String& GetVariableName() const{ return m_variableName; } /** *

The name of the variable.

*/ inline bool VariableNameHasBeenSet() const { return m_variableNameHasBeenSet; } /** *

The name of the variable.

*/ inline void SetVariableName(const Aws::String& value) { m_variableNameHasBeenSet = true; m_variableName = value; } /** *

The name of the variable.

*/ inline void SetVariableName(Aws::String&& value) { m_variableNameHasBeenSet = true; m_variableName = std::move(value); } /** *

The name of the variable.

*/ inline void SetVariableName(const char* value) { m_variableNameHasBeenSet = true; m_variableName.assign(value); } /** *

The name of the variable.

*/ inline SetVariableAction& WithVariableName(const Aws::String& value) { SetVariableName(value); return *this;} /** *

The name of the variable.

*/ inline SetVariableAction& WithVariableName(Aws::String&& value) { SetVariableName(std::move(value)); return *this;} /** *

The name of the variable.

*/ inline SetVariableAction& WithVariableName(const char* value) { SetVariableName(value); return *this;} /** *

The new value of the variable.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The new value of the variable.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The new value of the variable.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The new value of the variable.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The new value of the variable.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The new value of the variable.

*/ inline SetVariableAction& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The new value of the variable.

*/ inline SetVariableAction& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The new value of the variable.

*/ inline SetVariableAction& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_variableName; bool m_variableNameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws