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

A parameter declaration for the String data type.

See * Also:

AWS * API Reference

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

The value type determines whether the parameter is a single-value or * multi-value parameter.

*/ inline const ParameterValueType& GetParameterValueType() const{ return m_parameterValueType; } /** *

The value type determines whether the parameter is a single-value or * multi-value parameter.

*/ inline bool ParameterValueTypeHasBeenSet() const { return m_parameterValueTypeHasBeenSet; } /** *

The value type determines whether the parameter is a single-value or * multi-value parameter.

*/ inline void SetParameterValueType(const ParameterValueType& value) { m_parameterValueTypeHasBeenSet = true; m_parameterValueType = value; } /** *

The value type determines whether the parameter is a single-value or * multi-value parameter.

*/ inline void SetParameterValueType(ParameterValueType&& value) { m_parameterValueTypeHasBeenSet = true; m_parameterValueType = std::move(value); } /** *

The value type determines whether the parameter is a single-value or * multi-value parameter.

*/ inline StringParameterDeclaration& WithParameterValueType(const ParameterValueType& value) { SetParameterValueType(value); return *this;} /** *

The value type determines whether the parameter is a single-value or * multi-value parameter.

*/ inline StringParameterDeclaration& WithParameterValueType(ParameterValueType&& value) { SetParameterValueType(std::move(value)); return *this;} /** *

The name of the parameter that is being declared.

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

The name of the parameter that is being declared.

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

The name of the parameter that is being declared.

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

The name of the parameter that is being declared.

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

The name of the parameter that is being declared.

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

The name of the parameter that is being declared.

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

The name of the parameter that is being declared.

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

The name of the parameter that is being declared.

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

The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.

*/ inline const StringDefaultValues& GetDefaultValues() const{ return m_defaultValues; } /** *

The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.

*/ inline bool DefaultValuesHasBeenSet() const { return m_defaultValuesHasBeenSet; } /** *

The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.

*/ inline void SetDefaultValues(const StringDefaultValues& value) { m_defaultValuesHasBeenSet = true; m_defaultValues = value; } /** *

The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.

*/ inline void SetDefaultValues(StringDefaultValues&& value) { m_defaultValuesHasBeenSet = true; m_defaultValues = std::move(value); } /** *

The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.

*/ inline StringParameterDeclaration& WithDefaultValues(const StringDefaultValues& value) { SetDefaultValues(value); return *this;} /** *

The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.

*/ inline StringParameterDeclaration& WithDefaultValues(StringDefaultValues&& value) { SetDefaultValues(std::move(value)); return *this;} /** *

The configuration that defines the default value of a String * parameter when a value has not been set.

*/ inline const StringValueWhenUnsetConfiguration& GetValueWhenUnset() const{ return m_valueWhenUnset; } /** *

The configuration that defines the default value of a String * parameter when a value has not been set.

*/ inline bool ValueWhenUnsetHasBeenSet() const { return m_valueWhenUnsetHasBeenSet; } /** *

The configuration that defines the default value of a String * parameter when a value has not been set.

*/ inline void SetValueWhenUnset(const StringValueWhenUnsetConfiguration& value) { m_valueWhenUnsetHasBeenSet = true; m_valueWhenUnset = value; } /** *

The configuration that defines the default value of a String * parameter when a value has not been set.

*/ inline void SetValueWhenUnset(StringValueWhenUnsetConfiguration&& value) { m_valueWhenUnsetHasBeenSet = true; m_valueWhenUnset = std::move(value); } /** *

The configuration that defines the default value of a String * parameter when a value has not been set.

*/ inline StringParameterDeclaration& WithValueWhenUnset(const StringValueWhenUnsetConfiguration& value) { SetValueWhenUnset(value); return *this;} /** *

The configuration that defines the default value of a String * parameter when a value has not been set.

*/ inline StringParameterDeclaration& WithValueWhenUnset(StringValueWhenUnsetConfiguration&& value) { SetValueWhenUnset(std::move(value)); return *this;} inline const Aws::Vector& GetMappedDataSetParameters() const{ return m_mappedDataSetParameters; } inline bool MappedDataSetParametersHasBeenSet() const { return m_mappedDataSetParametersHasBeenSet; } inline void SetMappedDataSetParameters(const Aws::Vector& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters = value; } inline void SetMappedDataSetParameters(Aws::Vector&& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters = std::move(value); } inline StringParameterDeclaration& WithMappedDataSetParameters(const Aws::Vector& value) { SetMappedDataSetParameters(value); return *this;} inline StringParameterDeclaration& WithMappedDataSetParameters(Aws::Vector&& value) { SetMappedDataSetParameters(std::move(value)); return *this;} inline StringParameterDeclaration& AddMappedDataSetParameters(const MappedDataSetParameter& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters.push_back(value); return *this; } inline StringParameterDeclaration& AddMappedDataSetParameters(MappedDataSetParameter&& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters.push_back(std::move(value)); return *this; } private: ParameterValueType m_parameterValueType; bool m_parameterValueTypeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; StringDefaultValues m_defaultValues; bool m_defaultValuesHasBeenSet = false; StringValueWhenUnsetConfiguration m_valueWhenUnset; bool m_valueWhenUnsetHasBeenSet = false; Aws::Vector m_mappedDataSetParameters; bool m_mappedDataSetParametersHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws