/** * 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 EMRContainers { namespace Model { /** *

The configuration of a job template parameter.

See Also:

AWS * API Reference

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

The type of the job template parameter. Allowed values are: ‘STRING’, * ‘NUMBER’.

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

The type of the job template parameter. Allowed values are: ‘STRING’, * ‘NUMBER’.

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

The type of the job template parameter. Allowed values are: ‘STRING’, * ‘NUMBER’.

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

The type of the job template parameter. Allowed values are: ‘STRING’, * ‘NUMBER’.

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

The type of the job template parameter. Allowed values are: ‘STRING’, * ‘NUMBER’.

*/ inline TemplateParameterConfiguration& WithType(const TemplateParameterDataType& value) { SetType(value); return *this;} /** *

The type of the job template parameter. Allowed values are: ‘STRING’, * ‘NUMBER’.

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

The default value for the job template parameter.

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

The default value for the job template parameter.

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

The default value for the job template parameter.

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

The default value for the job template parameter.

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

The default value for the job template parameter.

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

The default value for the job template parameter.

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

The default value for the job template parameter.

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

The default value for the job template parameter.

*/ inline TemplateParameterConfiguration& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} private: TemplateParameterDataType m_type; bool m_typeHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; }; } // namespace Model } // namespace EMRContainers } // namespace Aws