/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace FraudDetector { namespace Model { /** */ class UpdateVariableRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API UpdateVariableRequest(); // 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 "UpdateVariable"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the variable.

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

The name of the variable.

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

The name of the variable.

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

The name of the variable.

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

The name of the variable.

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

The name of the variable.

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

The name of the variable.

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

The name of the variable.

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

The new default value of the variable.

*/ inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; } /** *

The new default value of the variable.

*/ inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } /** *

The new default value of the variable.

*/ inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } /** *

The new default value of the variable.

*/ inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } /** *

The new default value of the variable.

*/ inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); } /** *

The new default value of the variable.

*/ inline UpdateVariableRequest& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;} /** *

The new default value of the variable.

*/ inline UpdateVariableRequest& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;} /** *

The new default value of the variable.

*/ inline UpdateVariableRequest& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} /** *

The new description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The new description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The new description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The new description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The new description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The new description.

*/ inline UpdateVariableRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The new description.

*/ inline UpdateVariableRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The new description.

*/ inline UpdateVariableRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The variable type. For more information see Variable * types.

*/ inline const Aws::String& GetVariableType() const{ return m_variableType; } /** *

The variable type. For more information see Variable * types.

*/ inline bool VariableTypeHasBeenSet() const { return m_variableTypeHasBeenSet; } /** *

The variable type. For more information see Variable * types.

*/ inline void SetVariableType(const Aws::String& value) { m_variableTypeHasBeenSet = true; m_variableType = value; } /** *

The variable type. For more information see Variable * types.

*/ inline void SetVariableType(Aws::String&& value) { m_variableTypeHasBeenSet = true; m_variableType = std::move(value); } /** *

The variable type. For more information see Variable * types.

*/ inline void SetVariableType(const char* value) { m_variableTypeHasBeenSet = true; m_variableType.assign(value); } /** *

The variable type. For more information see Variable * types.

*/ inline UpdateVariableRequest& WithVariableType(const Aws::String& value) { SetVariableType(value); return *this;} /** *

The variable type. For more information see Variable * types.

*/ inline UpdateVariableRequest& WithVariableType(Aws::String&& value) { SetVariableType(std::move(value)); return *this;} /** *

The variable type. For more information see Variable * types.

*/ inline UpdateVariableRequest& WithVariableType(const char* value) { SetVariableType(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_variableType; bool m_variableTypeHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws