/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace imagebuilder { namespace Model { /** *

Defines a parameter that is used to provide configuration details for the * component.

See Also:

AWS * API Reference

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

The name of this input parameter.

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

The name of this input parameter.

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

The name of this input parameter.

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

The name of this input parameter.

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

The name of this input parameter.

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

The name of this input parameter.

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

The name of this input parameter.

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

The name of this input parameter.

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

The type of input this parameter provides. The currently supported value is * "string".

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of input this parameter provides. The currently supported value is * "string".

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

The type of input this parameter provides. The currently supported value is * "string".

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

The type of input this parameter provides. The currently supported value is * "string".

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

The type of input this parameter provides. The currently supported value is * "string".

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of input this parameter provides. The currently supported value is * "string".

*/ inline ComponentParameterDetail& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of input this parameter provides. The currently supported value is * "string".

*/ inline ComponentParameterDetail& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of input this parameter provides. The currently supported value is * "string".

*/ inline ComponentParameterDetail& WithType(const char* value) { SetType(value); return *this;} /** *

The default value of this parameter if no input is provided.

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

The default value of this parameter if no input is provided.

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

The default value of this parameter if no input is provided.

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

The default value of this parameter if no input is provided.

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

The default value of this parameter if no input is provided.

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

The default value of this parameter if no input is provided.

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

The default value of this parameter if no input is provided.

*/ inline ComponentParameterDetail& AddDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue.push_back(value); return *this; } /** *

The default value of this parameter if no input is provided.

*/ inline ComponentParameterDetail& AddDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue.push_back(std::move(value)); return *this; } /** *

The default value of this parameter if no input is provided.

*/ inline ComponentParameterDetail& AddDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.push_back(value); return *this; } /** *

Describes this parameter.

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

Describes this parameter.

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

Describes this parameter.

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

Describes this parameter.

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

Describes this parameter.

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

Describes this parameter.

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

Describes this parameter.

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

Describes this parameter.

*/ inline ComponentParameterDetail& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::Vector m_defaultValue; bool m_defaultValueHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws