/** * 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 DateTime data * type.

See Also:

AWS * API Reference

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

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 DateTimeParameterDeclaration& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the parameter that is being declared.

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

The name of the parameter that is being declared.

*/ inline DateTimeParameterDeclaration& 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 DateTimeDefaultValues& 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 DateTimeDefaultValues& 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(DateTimeDefaultValues&& 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 DateTimeParameterDeclaration& WithDefaultValues(const DateTimeDefaultValues& 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 DateTimeParameterDeclaration& WithDefaultValues(DateTimeDefaultValues&& value) { SetDefaultValues(std::move(value)); return *this;} /** *

The level of time precision that is used to aggregate DateTime * values.

*/ inline const TimeGranularity& GetTimeGranularity() const{ return m_timeGranularity; } /** *

The level of time precision that is used to aggregate DateTime * values.

*/ inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; } /** *

The level of time precision that is used to aggregate DateTime * values.

*/ inline void SetTimeGranularity(const TimeGranularity& value) { m_timeGranularityHasBeenSet = true; m_timeGranularity = value; } /** *

The level of time precision that is used to aggregate DateTime * values.

*/ inline void SetTimeGranularity(TimeGranularity&& value) { m_timeGranularityHasBeenSet = true; m_timeGranularity = std::move(value); } /** *

The level of time precision that is used to aggregate DateTime * values.

*/ inline DateTimeParameterDeclaration& WithTimeGranularity(const TimeGranularity& value) { SetTimeGranularity(value); return *this;} /** *

The level of time precision that is used to aggregate DateTime * values.

*/ inline DateTimeParameterDeclaration& WithTimeGranularity(TimeGranularity&& value) { SetTimeGranularity(std::move(value)); return *this;} /** *

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

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

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

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

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

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

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

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

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

*/ inline DateTimeParameterDeclaration& WithValueWhenUnset(const DateTimeValueWhenUnsetConfiguration& value) { SetValueWhenUnset(value); return *this;} /** *

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

*/ inline DateTimeParameterDeclaration& WithValueWhenUnset(DateTimeValueWhenUnsetConfiguration&& 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 DateTimeParameterDeclaration& WithMappedDataSetParameters(const Aws::Vector& value) { SetMappedDataSetParameters(value); return *this;} inline DateTimeParameterDeclaration& WithMappedDataSetParameters(Aws::Vector&& value) { SetMappedDataSetParameters(std::move(value)); return *this;} inline DateTimeParameterDeclaration& AddMappedDataSetParameters(const MappedDataSetParameter& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters.push_back(value); return *this; } inline DateTimeParameterDeclaration& AddMappedDataSetParameters(MappedDataSetParameter&& value) { m_mappedDataSetParametersHasBeenSet = true; m_mappedDataSetParameters.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; DateTimeDefaultValues m_defaultValues; bool m_defaultValuesHasBeenSet = false; TimeGranularity m_timeGranularity; bool m_timeGranularityHasBeenSet = false; DateTimeValueWhenUnsetConfiguration m_valueWhenUnset; bool m_valueWhenUnsetHasBeenSet = false; Aws::Vector m_mappedDataSetParameters; bool m_mappedDataSetParametersHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws