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

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

See Also:

AWS * API Reference

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

The built-in options for default values. The value can be one of the * following:

  • RECOMMENDED: The recommended * value.

  • NULL: The NULL value.

    *
*/ inline const ValueWhenUnsetOption& GetValueWhenUnsetOption() const{ return m_valueWhenUnsetOption; } /** *

The built-in options for default values. The value can be one of the * following:

  • RECOMMENDED: The recommended * value.

  • NULL: The NULL value.

    *
*/ inline bool ValueWhenUnsetOptionHasBeenSet() const { return m_valueWhenUnsetOptionHasBeenSet; } /** *

The built-in options for default values. The value can be one of the * following:

  • RECOMMENDED: The recommended * value.

  • NULL: The NULL value.

    *
*/ inline void SetValueWhenUnsetOption(const ValueWhenUnsetOption& value) { m_valueWhenUnsetOptionHasBeenSet = true; m_valueWhenUnsetOption = value; } /** *

The built-in options for default values. The value can be one of the * following:

  • RECOMMENDED: The recommended * value.

  • NULL: The NULL value.

    *
*/ inline void SetValueWhenUnsetOption(ValueWhenUnsetOption&& value) { m_valueWhenUnsetOptionHasBeenSet = true; m_valueWhenUnsetOption = std::move(value); } /** *

The built-in options for default values. The value can be one of the * following:

  • RECOMMENDED: The recommended * value.

  • NULL: The NULL value.

    *
*/ inline DateTimeValueWhenUnsetConfiguration& WithValueWhenUnsetOption(const ValueWhenUnsetOption& value) { SetValueWhenUnsetOption(value); return *this;} /** *

The built-in options for default values. The value can be one of the * following:

  • RECOMMENDED: The recommended * value.

  • NULL: The NULL value.

    *
*/ inline DateTimeValueWhenUnsetConfiguration& WithValueWhenUnsetOption(ValueWhenUnsetOption&& value) { SetValueWhenUnsetOption(std::move(value)); return *this;} /** *

A custom value that's used when the value of a parameter isn't set.

*/ inline const Aws::Utils::DateTime& GetCustomValue() const{ return m_customValue; } /** *

A custom value that's used when the value of a parameter isn't set.

*/ inline bool CustomValueHasBeenSet() const { return m_customValueHasBeenSet; } /** *

A custom value that's used when the value of a parameter isn't set.

*/ inline void SetCustomValue(const Aws::Utils::DateTime& value) { m_customValueHasBeenSet = true; m_customValue = value; } /** *

A custom value that's used when the value of a parameter isn't set.

*/ inline void SetCustomValue(Aws::Utils::DateTime&& value) { m_customValueHasBeenSet = true; m_customValue = std::move(value); } /** *

A custom value that's used when the value of a parameter isn't set.

*/ inline DateTimeValueWhenUnsetConfiguration& WithCustomValue(const Aws::Utils::DateTime& value) { SetCustomValue(value); return *this;} /** *

A custom value that's used when the value of a parameter isn't set.

*/ inline DateTimeValueWhenUnsetConfiguration& WithCustomValue(Aws::Utils::DateTime&& value) { SetCustomValue(std::move(value)); return *this;} private: ValueWhenUnsetOption m_valueWhenUnsetOption; bool m_valueWhenUnsetOptionHasBeenSet = false; Aws::Utils::DateTime m_customValue; bool m_customValueHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws