/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** *

A version of a template.

See Also:

AWS * API Reference

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

The time that this template version was created.

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

The time that this template version was created.

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

The time that this template version was created.

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

The time that this template version was created.

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

The time that this template version was created.

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

The time that this template version was created.

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

Errors associated with this template version.

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

Errors associated with this template version.

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

Errors associated with this template version.

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

Errors associated with this template version.

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

Errors associated with this template version.

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

Errors associated with this template version.

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

Errors associated with this template version.

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

Errors associated with this template version.

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

The version number of the template version.

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

The version number of the template version.

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

The version number of the template version.

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

The version number of the template version.

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

The status that is associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

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

The status that is associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

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

The status that is associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

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

The status that is associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

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

The status that is associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

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

The status that is associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

  • *
*/ inline TemplateVersion& WithStatus(ResourceStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Schema of the dataset identified by the placeholder. Any dashboard created * from this template should be bound to new datasets matching the same schema * described through this API operation.

*/ inline const Aws::Vector& GetDataSetConfigurations() const{ return m_dataSetConfigurations; } /** *

Schema of the dataset identified by the placeholder. Any dashboard created * from this template should be bound to new datasets matching the same schema * described through this API operation.

*/ inline bool DataSetConfigurationsHasBeenSet() const { return m_dataSetConfigurationsHasBeenSet; } /** *

Schema of the dataset identified by the placeholder. Any dashboard created * from this template should be bound to new datasets matching the same schema * described through this API operation.

*/ inline void SetDataSetConfigurations(const Aws::Vector& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations = value; } /** *

Schema of the dataset identified by the placeholder. Any dashboard created * from this template should be bound to new datasets matching the same schema * described through this API operation.

*/ inline void SetDataSetConfigurations(Aws::Vector&& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations = std::move(value); } /** *

Schema of the dataset identified by the placeholder. Any dashboard created * from this template should be bound to new datasets matching the same schema * described through this API operation.

*/ inline TemplateVersion& WithDataSetConfigurations(const Aws::Vector& value) { SetDataSetConfigurations(value); return *this;} /** *

Schema of the dataset identified by the placeholder. Any dashboard created * from this template should be bound to new datasets matching the same schema * described through this API operation.

*/ inline TemplateVersion& WithDataSetConfigurations(Aws::Vector&& value) { SetDataSetConfigurations(std::move(value)); return *this;} /** *

Schema of the dataset identified by the placeholder. Any dashboard created * from this template should be bound to new datasets matching the same schema * described through this API operation.

*/ inline TemplateVersion& AddDataSetConfigurations(const DataSetConfiguration& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations.push_back(value); return *this; } /** *

Schema of the dataset identified by the placeholder. Any dashboard created * from this template should be bound to new datasets matching the same schema * described through this API operation.

*/ inline TemplateVersion& AddDataSetConfigurations(DataSetConfiguration&& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations.push_back(std::move(value)); return *this; } /** *

The description of the template.

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

The description of the template.

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

The description of the template.

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

The description of the template.

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

The description of the template.

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

The description of the template.

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

The description of the template.

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

The description of the template.

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

The Amazon Resource Name (ARN) of an analysis or template that was used to * create this template.

*/ inline const Aws::String& GetSourceEntityArn() const{ return m_sourceEntityArn; } /** *

The Amazon Resource Name (ARN) of an analysis or template that was used to * create this template.

*/ inline bool SourceEntityArnHasBeenSet() const { return m_sourceEntityArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an analysis or template that was used to * create this template.

*/ inline void SetSourceEntityArn(const Aws::String& value) { m_sourceEntityArnHasBeenSet = true; m_sourceEntityArn = value; } /** *

The Amazon Resource Name (ARN) of an analysis or template that was used to * create this template.

*/ inline void SetSourceEntityArn(Aws::String&& value) { m_sourceEntityArnHasBeenSet = true; m_sourceEntityArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an analysis or template that was used to * create this template.

*/ inline void SetSourceEntityArn(const char* value) { m_sourceEntityArnHasBeenSet = true; m_sourceEntityArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an analysis or template that was used to * create this template.

*/ inline TemplateVersion& WithSourceEntityArn(const Aws::String& value) { SetSourceEntityArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an analysis or template that was used to * create this template.

*/ inline TemplateVersion& WithSourceEntityArn(Aws::String&& value) { SetSourceEntityArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an analysis or template that was used to * create this template.

*/ inline TemplateVersion& WithSourceEntityArn(const char* value) { SetSourceEntityArn(value); return *this;} /** *

The ARN of the theme associated with this version of the template.

*/ inline const Aws::String& GetThemeArn() const{ return m_themeArn; } /** *

The ARN of the theme associated with this version of the template.

*/ inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; } /** *

The ARN of the theme associated with this version of the template.

*/ inline void SetThemeArn(const Aws::String& value) { m_themeArnHasBeenSet = true; m_themeArn = value; } /** *

The ARN of the theme associated with this version of the template.

*/ inline void SetThemeArn(Aws::String&& value) { m_themeArnHasBeenSet = true; m_themeArn = std::move(value); } /** *

The ARN of the theme associated with this version of the template.

*/ inline void SetThemeArn(const char* value) { m_themeArnHasBeenSet = true; m_themeArn.assign(value); } /** *

The ARN of the theme associated with this version of the template.

*/ inline TemplateVersion& WithThemeArn(const Aws::String& value) { SetThemeArn(value); return *this;} /** *

The ARN of the theme associated with this version of the template.

*/ inline TemplateVersion& WithThemeArn(Aws::String&& value) { SetThemeArn(std::move(value)); return *this;} /** *

The ARN of the theme associated with this version of the template.

*/ inline TemplateVersion& WithThemeArn(const char* value) { SetThemeArn(value); return *this;} /** *

A list of the associated sheets with the unique identifier and name of each * sheet.

*/ inline const Aws::Vector& GetSheets() const{ return m_sheets; } /** *

A list of the associated sheets with the unique identifier and name of each * sheet.

*/ inline bool SheetsHasBeenSet() const { return m_sheetsHasBeenSet; } /** *

A list of the associated sheets with the unique identifier and name of each * sheet.

*/ inline void SetSheets(const Aws::Vector& value) { m_sheetsHasBeenSet = true; m_sheets = value; } /** *

A list of the associated sheets with the unique identifier and name of each * sheet.

*/ inline void SetSheets(Aws::Vector&& value) { m_sheetsHasBeenSet = true; m_sheets = std::move(value); } /** *

A list of the associated sheets with the unique identifier and name of each * sheet.

*/ inline TemplateVersion& WithSheets(const Aws::Vector& value) { SetSheets(value); return *this;} /** *

A list of the associated sheets with the unique identifier and name of each * sheet.

*/ inline TemplateVersion& WithSheets(Aws::Vector&& value) { SetSheets(std::move(value)); return *this;} /** *

A list of the associated sheets with the unique identifier and name of each * sheet.

*/ inline TemplateVersion& AddSheets(const Sheet& value) { m_sheetsHasBeenSet = true; m_sheets.push_back(value); return *this; } /** *

A list of the associated sheets with the unique identifier and name of each * sheet.

*/ inline TemplateVersion& AddSheets(Sheet&& value) { m_sheetsHasBeenSet = true; m_sheets.push_back(std::move(value)); return *this; } private: Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::Vector m_errors; bool m_errorsHasBeenSet = false; long long m_versionNumber; bool m_versionNumberHasBeenSet = false; ResourceStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_dataSetConfigurations; bool m_dataSetConfigurationsHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_sourceEntityArn; bool m_sourceEntityArnHasBeenSet = false; Aws::String m_themeArn; bool m_themeArnHasBeenSet = false; Aws::Vector m_sheets; bool m_sheetsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws