/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/quicksight/QuickSight_EXPORTS.h> #include <aws/quicksight/model/ParameterValueType.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/quicksight/model/DecimalDefaultValues.h> #include <aws/quicksight/model/DecimalValueWhenUnsetConfiguration.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/quicksight/model/MappedDataSetParameter.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** * <p>A parameter declaration for the <code>Decimal</code> data type.</p><p><h3>See * Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DecimalParameterDeclaration">AWS * API Reference</a></p> */ class DecimalParameterDeclaration { public: AWS_QUICKSIGHT_API DecimalParameterDeclaration(); AWS_QUICKSIGHT_API DecimalParameterDeclaration(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API DecimalParameterDeclaration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The value type determines whether the parameter is a single-value or * multi-value parameter.</p> */ inline const ParameterValueType& GetParameterValueType() const{ return m_parameterValueType; } /** * <p>The value type determines whether the parameter is a single-value or * multi-value parameter.</p> */ inline bool ParameterValueTypeHasBeenSet() const { return m_parameterValueTypeHasBeenSet; } /** * <p>The value type determines whether the parameter is a single-value or * multi-value parameter.</p> */ inline void SetParameterValueType(const ParameterValueType& value) { m_parameterValueTypeHasBeenSet = true; m_parameterValueType = value; } /** * <p>The value type determines whether the parameter is a single-value or * multi-value parameter.</p> */ inline void SetParameterValueType(ParameterValueType&& value) { m_parameterValueTypeHasBeenSet = true; m_parameterValueType = std::move(value); } /** * <p>The value type determines whether the parameter is a single-value or * multi-value parameter.</p> */ inline DecimalParameterDeclaration& WithParameterValueType(const ParameterValueType& value) { SetParameterValueType(value); return *this;} /** * <p>The value type determines whether the parameter is a single-value or * multi-value parameter.</p> */ inline DecimalParameterDeclaration& WithParameterValueType(ParameterValueType&& value) { SetParameterValueType(std::move(value)); return *this;} /** * <p>The name of the parameter that is being declared.</p> */ inline const Aws::String& GetName() const{ return m_name; } /** * <p>The name of the parameter that is being declared.</p> */ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** * <p>The name of the parameter that is being declared.</p> */ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** * <p>The name of the parameter that is being declared.</p> */ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** * <p>The name of the parameter that is being declared.</p> */ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** * <p>The name of the parameter that is being declared.</p> */ inline DecimalParameterDeclaration& WithName(const Aws::String& value) { SetName(value); return *this;} /** * <p>The name of the parameter that is being declared.</p> */ inline DecimalParameterDeclaration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** * <p>The name of the parameter that is being declared.</p> */ inline DecimalParameterDeclaration& WithName(const char* value) { SetName(value); return *this;} /** * <p>The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.</p> */ inline const DecimalDefaultValues& GetDefaultValues() const{ return m_defaultValues; } /** * <p>The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.</p> */ inline bool DefaultValuesHasBeenSet() const { return m_defaultValuesHasBeenSet; } /** * <p>The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.</p> */ inline void SetDefaultValues(const DecimalDefaultValues& value) { m_defaultValuesHasBeenSet = true; m_defaultValues = value; } /** * <p>The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.</p> */ inline void SetDefaultValues(DecimalDefaultValues&& value) { m_defaultValuesHasBeenSet = true; m_defaultValues = std::move(value); } /** * <p>The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.</p> */ inline DecimalParameterDeclaration& WithDefaultValues(const DecimalDefaultValues& value) { SetDefaultValues(value); return *this;} /** * <p>The default values of a parameter. If the parameter is a single-value * parameter, a maximum of one default value can be provided.</p> */ inline DecimalParameterDeclaration& WithDefaultValues(DecimalDefaultValues&& value) { SetDefaultValues(std::move(value)); return *this;} /** * <p>The configuration that defines the default value of a <code>Decimal</code> * parameter when a value has not been set.</p> */ inline const DecimalValueWhenUnsetConfiguration& GetValueWhenUnset() const{ return m_valueWhenUnset; } /** * <p>The configuration that defines the default value of a <code>Decimal</code> * parameter when a value has not been set.</p> */ inline bool ValueWhenUnsetHasBeenSet() const { return m_valueWhenUnsetHasBeenSet; } /** * <p>The configuration that defines the default value of a <code>Decimal</code> * parameter when a value has not been set.</p> */ inline void SetValueWhenUnset(const DecimalValueWhenUnsetConfiguration& value) { m_valueWhenUnsetHasBeenSet = true; m_valueWhenUnset = value; } /** * <p>The configuration that defines the default value of a <code>Decimal</code> * parameter when a value has not been set.</p> */ inline void SetValueWhenUnset(DecimalValueWhenUnsetConfiguration&& value) { m_valueWhenUnsetHasBeenSet = true; m_valueWhenUnset = std::move(value); } /** * <p>The configuration that defines the default value of a <code>Decimal</code> * parameter when a value has not been set.</p> */ inline DecimalParameterDeclaration& WithValueWhenUnset(const DecimalValueWhenUnsetConfiguration& value) { SetValueWhenUnset(value); return *this;} /** * <p>The configuration that defines the default value of a <code>Decimal</code> * parameter when a value has not been set.</p> */ inline DecimalParameterDeclaration& WithValueWhenUnset(DecimalValueWhenUnsetConfiguration&& value) { SetValueWhenUnset(std::move(value)); return *this;} inline const Aws::Vector<MappedDataSetParameter>& GetMappedDataSetParameters() const{ return m_mappedDataSetParameters; } inline bool MappedDataSetParametersHasBeenSet() const { return m_mappedDataSetParametersHasBeenSet; } inline void SetMappedDataSetParameters(const Aws::Vector<MappedDataSetParameter>& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters = value; } inline void SetMappedDataSetParameters(Aws::Vector<MappedDataSetParameter>&& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters = std::move(value); } inline DecimalParameterDeclaration& WithMappedDataSetParameters(const Aws::Vector<MappedDataSetParameter>& value) { SetMappedDataSetParameters(value); return *this;} inline DecimalParameterDeclaration& WithMappedDataSetParameters(Aws::Vector<MappedDataSetParameter>&& value) { SetMappedDataSetParameters(std::move(value)); return *this;} inline DecimalParameterDeclaration& AddMappedDataSetParameters(const MappedDataSetParameter& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters.push_back(value); return *this; } inline DecimalParameterDeclaration& 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; DecimalDefaultValues m_defaultValues; bool m_defaultValuesHasBeenSet = false; DecimalValueWhenUnsetConfiguration m_valueWhenUnset; bool m_valueWhenUnsetHasBeenSet = false; Aws::Vector<MappedDataSetParameter> m_mappedDataSetParameters; bool m_mappedDataSetParametersHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws