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

A string parameter for a dataset.

See Also:

AWS * API Reference

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

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

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

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

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

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

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

An identifier for the string 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 string parameter that is created in the dataset.

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

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

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

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

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

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

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

The name of the string parameter that is created in the dataset.

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

The name of the string parameter that is created in the dataset.

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

The name of the string parameter that is created in the dataset.

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

The name of the string 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 string parameter that is created in the dataset.

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

The name of the string parameter that is created in the dataset.

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

The name of the string parameter that is created in the dataset.

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

The name of the string parameter that is created in the dataset.

*/ inline StringDatasetParameter& 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 StringDatasetParameter& WithValueType(const DatasetParameterValueType& value) { SetValueType(value); return *this;} /** *

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

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

A list of default values for a given string dataset parameter type. This * structure only accepts static values.

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

A list of default values for a given string dataset parameter type. This * structure only accepts static values.

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

A list of default values for a given string dataset parameter type. This * structure only accepts static values.

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

A list of default values for a given string dataset parameter type. This * structure only accepts static values.

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

A list of default values for a given string dataset parameter type. This * structure only accepts static values.

*/ inline StringDatasetParameter& WithDefaultValues(const StringDatasetParameterDefaultValues& value) { SetDefaultValues(value); return *this;} /** *

A list of default values for a given string dataset parameter type. This * structure only accepts static values.

*/ inline StringDatasetParameter& WithDefaultValues(StringDatasetParameterDefaultValues&& 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; StringDatasetParameterDefaultValues m_defaultValues; bool m_defaultValuesHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws