/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 date time parameter for a dataset.

See Also:

AWS * API Reference

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

An identifier for the parameter that is created in the dataset.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

An identifier for the parameter that is created in the dataset.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

An identifier for the parameter that is created in the dataset.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

An identifier for the parameter that is created in the dataset.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

An identifier for the parameter that is created in the dataset.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

An identifier for the parameter that is created in the dataset.

*/ inline DateTimeDatasetParameter& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

An identifier for the parameter that is created in the dataset.

*/ inline DateTimeDatasetParameter& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

An identifier for the parameter that is created in the dataset.

*/ inline DateTimeDatasetParameter& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the date time parameter that is created in the dataset.

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

The name of the date time parameter that is created in the dataset.

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

The name of the date time parameter that is created in the dataset.

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

The name of the date time parameter that is created in the dataset.

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

The name of the date time parameter that is created in the dataset.

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

The name of the date time parameter that is created in the dataset.

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

The name of the date time parameter that is created in the dataset.

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

The name of the date time parameter that is created in the dataset.

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

The value type of the dataset parameter. Valid values are single * value or multi value.

*/ inline const DatasetParameterValueType& GetValueType() const{ return m_valueType; } /** *

The value type of the dataset parameter. Valid values are single * value or multi value.

*/ inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; } /** *

The value type of the dataset parameter. Valid values are single * value or multi value.

*/ inline void SetValueType(const DatasetParameterValueType& value) { m_valueTypeHasBeenSet = true; m_valueType = value; } /** *

The value type of the dataset parameter. Valid values are single * value or multi value.

*/ inline void SetValueType(DatasetParameterValueType&& value) { m_valueTypeHasBeenSet = true; m_valueType = std::move(value); } /** *

The value type of the dataset parameter. Valid values are single * value or multi value.

*/ inline DateTimeDatasetParameter& WithValueType(const DatasetParameterValueType& value) { SetValueType(value); return *this;} /** *

The value type of the dataset parameter. Valid values are single * value or multi value.

*/ inline DateTimeDatasetParameter& WithValueType(DatasetParameterValueType&& value) { SetValueType(std::move(value)); return *this;} /** *

The time granularity of the date time parameter.

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

The time granularity of the date time parameter.

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

The time granularity of the date time parameter.

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

The time granularity of the date time parameter.

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

The time granularity of the date time parameter.

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

The time granularity of the date time parameter.

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

A list of default values for a given date time parameter. This structure only * accepts static values.

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

A list of default values for a given date time parameter. This structure only * accepts static values.

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

A list of default values for a given date time parameter. This structure only * accepts static values.

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

A list of default values for a given date time parameter. This structure only * accepts static values.

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

A list of default values for a given date time parameter. This structure only * accepts static values.

*/ inline DateTimeDatasetParameter& WithDefaultValues(const DateTimeDatasetParameterDefaultValues& value) { SetDefaultValues(value); return *this;} /** *

A list of default values for a given date time parameter. This structure only * accepts static values.

*/ inline DateTimeDatasetParameter& WithDefaultValues(DateTimeDatasetParameterDefaultValues&& value) { SetDefaultValues(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; DatasetParameterValueType m_valueType; bool m_valueTypeHasBeenSet = false; TimeGranularity m_timeGranularity; bool m_timeGranularityHasBeenSet = false; DateTimeDatasetParameterDefaultValues m_defaultValues; bool m_defaultValuesHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws