/** * 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 version of a theme.

See Also:

AWS * API Reference

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

The version number of the theme.

*/ inline long long GetVersionNumber() const{ return m_versionNumber; } /** *

The version number of the theme.

*/ inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } /** *

The version number of the theme.

*/ inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } /** *

The version number of the theme.

*/ inline ThemeVersion& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the resource.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the resource.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the resource.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the resource.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the resource.

*/ inline ThemeVersion& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resource.

*/ inline ThemeVersion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the resource.

*/ inline ThemeVersion& WithArn(const char* value) { SetArn(value); return *this;} /** *

The description of the theme.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the theme.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the theme.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the theme.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the theme.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the theme.

*/ inline ThemeVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the theme.

*/ inline ThemeVersion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the theme.

*/ inline ThemeVersion& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The Amazon QuickSight-defined ID of the theme that a custom theme inherits * from. All themes initially inherit from a default Amazon QuickSight theme.

*/ inline const Aws::String& GetBaseThemeId() const{ return m_baseThemeId; } /** *

The Amazon QuickSight-defined ID of the theme that a custom theme inherits * from. All themes initially inherit from a default Amazon QuickSight theme.

*/ inline bool BaseThemeIdHasBeenSet() const { return m_baseThemeIdHasBeenSet; } /** *

The Amazon QuickSight-defined ID of the theme that a custom theme inherits * from. All themes initially inherit from a default Amazon QuickSight theme.

*/ inline void SetBaseThemeId(const Aws::String& value) { m_baseThemeIdHasBeenSet = true; m_baseThemeId = value; } /** *

The Amazon QuickSight-defined ID of the theme that a custom theme inherits * from. All themes initially inherit from a default Amazon QuickSight theme.

*/ inline void SetBaseThemeId(Aws::String&& value) { m_baseThemeIdHasBeenSet = true; m_baseThemeId = std::move(value); } /** *

The Amazon QuickSight-defined ID of the theme that a custom theme inherits * from. All themes initially inherit from a default Amazon QuickSight theme.

*/ inline void SetBaseThemeId(const char* value) { m_baseThemeIdHasBeenSet = true; m_baseThemeId.assign(value); } /** *

The Amazon QuickSight-defined ID of the theme that a custom theme inherits * from. All themes initially inherit from a default Amazon QuickSight theme.

*/ inline ThemeVersion& WithBaseThemeId(const Aws::String& value) { SetBaseThemeId(value); return *this;} /** *

The Amazon QuickSight-defined ID of the theme that a custom theme inherits * from. All themes initially inherit from a default Amazon QuickSight theme.

*/ inline ThemeVersion& WithBaseThemeId(Aws::String&& value) { SetBaseThemeId(std::move(value)); return *this;} /** *

The Amazon QuickSight-defined ID of the theme that a custom theme inherits * from. All themes initially inherit from a default Amazon QuickSight theme.

*/ inline ThemeVersion& WithBaseThemeId(const char* value) { SetBaseThemeId(value); return *this;} /** *

The date and time that this theme version was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

The date and time that this theme version was created.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

The date and time that this theme version was created.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

The date and time that this theme version was created.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

The date and time that this theme version was created.

*/ inline ThemeVersion& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The date and time that this theme version was created.

*/ inline ThemeVersion& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

The theme configuration, which contains all the theme display properties.

*/ inline const ThemeConfiguration& GetConfiguration() const{ return m_configuration; } /** *

The theme configuration, which contains all the theme display properties.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

The theme configuration, which contains all the theme display properties.

*/ inline void SetConfiguration(const ThemeConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

The theme configuration, which contains all the theme display properties.

*/ inline void SetConfiguration(ThemeConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

The theme configuration, which contains all the theme display properties.

*/ inline ThemeVersion& WithConfiguration(const ThemeConfiguration& value) { SetConfiguration(value); return *this;} /** *

The theme configuration, which contains all the theme display properties.

*/ inline ThemeVersion& WithConfiguration(ThemeConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} /** *

Errors associated with the theme.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

Errors associated with the theme.

*/ inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; } /** *

Errors associated with the theme.

*/ inline void SetErrors(const Aws::Vector& value) { m_errorsHasBeenSet = true; m_errors = value; } /** *

Errors associated with the theme.

*/ inline void SetErrors(Aws::Vector&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); } /** *

Errors associated with the theme.

*/ inline ThemeVersion& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

Errors associated with the theme.

*/ inline ThemeVersion& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

Errors associated with the theme.

*/ inline ThemeVersion& AddErrors(const ThemeError& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; } /** *

Errors associated with the theme.

*/ inline ThemeVersion& AddErrors(ThemeError&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; } /** *

The status of the theme version.

*/ inline const ResourceStatus& GetStatus() const{ return m_status; } /** *

The status of the theme version.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the theme version.

*/ inline void SetStatus(const ResourceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the theme version.

*/ inline void SetStatus(ResourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the theme version.

*/ inline ThemeVersion& WithStatus(const ResourceStatus& value) { SetStatus(value); return *this;} /** *

The status of the theme version.

*/ inline ThemeVersion& WithStatus(ResourceStatus&& value) { SetStatus(std::move(value)); return *this;} private: long long m_versionNumber; bool m_versionNumberHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_baseThemeId; bool m_baseThemeIdHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; ThemeConfiguration m_configuration; bool m_configurationHasBeenSet = false; Aws::Vector m_errors; bool m_errorsHasBeenSet = false; ResourceStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws