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

The detailed definition of a template.

See Also:

AWS * API Reference

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

An array of dataset configurations. These configurations define the required * columns for each dataset used within a template.

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

An array of dataset configurations. These configurations define the required * columns for each dataset used within a template.

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

An array of dataset configurations. These configurations define the required * columns for each dataset used within a template.

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

An array of dataset configurations. These configurations define the required * columns for each dataset used within a template.

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

An array of dataset configurations. These configurations define the required * columns for each dataset used within a template.

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

An array of dataset configurations. These configurations define the required * columns for each dataset used within a template.

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

An array of dataset configurations. These configurations define the required * columns for each dataset used within a template.

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

An array of dataset configurations. These configurations define the required * columns for each dataset used within a template.

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

An array of sheet definitions for a template.

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

An array of sheet definitions for a template.

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

An array of sheet definitions for a template.

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

An array of sheet definitions for a template.

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

An array of sheet definitions for a template.

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

An array of sheet definitions for a template.

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

An array of sheet definitions for a template.

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

An array of sheet definitions for a template.

*/ inline TemplateVersionDefinition& AddSheets(SheetDefinition&& value) { m_sheetsHasBeenSet = true; m_sheets.push_back(std::move(value)); return *this; } /** *

An array of calculated field definitions for the template.

*/ inline const Aws::Vector& GetCalculatedFields() const{ return m_calculatedFields; } /** *

An array of calculated field definitions for the template.

*/ inline bool CalculatedFieldsHasBeenSet() const { return m_calculatedFieldsHasBeenSet; } /** *

An array of calculated field definitions for the template.

*/ inline void SetCalculatedFields(const Aws::Vector& value) { m_calculatedFieldsHasBeenSet = true; m_calculatedFields = value; } /** *

An array of calculated field definitions for the template.

*/ inline void SetCalculatedFields(Aws::Vector&& value) { m_calculatedFieldsHasBeenSet = true; m_calculatedFields = std::move(value); } /** *

An array of calculated field definitions for the template.

*/ inline TemplateVersionDefinition& WithCalculatedFields(const Aws::Vector& value) { SetCalculatedFields(value); return *this;} /** *

An array of calculated field definitions for the template.

*/ inline TemplateVersionDefinition& WithCalculatedFields(Aws::Vector&& value) { SetCalculatedFields(std::move(value)); return *this;} /** *

An array of calculated field definitions for the template.

*/ inline TemplateVersionDefinition& AddCalculatedFields(const CalculatedField& value) { m_calculatedFieldsHasBeenSet = true; m_calculatedFields.push_back(value); return *this; } /** *

An array of calculated field definitions for the template.

*/ inline TemplateVersionDefinition& AddCalculatedFields(CalculatedField&& value) { m_calculatedFieldsHasBeenSet = true; m_calculatedFields.push_back(std::move(value)); return *this; } /** *

An array of parameter declarations for a template.

Parameters * are named variables that can transfer a value for use by an action or an * object.

For more information, see Parameters * in Amazon QuickSight in the Amazon QuickSight User Guide.

*/ inline const Aws::Vector& GetParameterDeclarations() const{ return m_parameterDeclarations; } /** *

An array of parameter declarations for a template.

Parameters * are named variables that can transfer a value for use by an action or an * object.

For more information, see Parameters * in Amazon QuickSight in the Amazon QuickSight User Guide.

*/ inline bool ParameterDeclarationsHasBeenSet() const { return m_parameterDeclarationsHasBeenSet; } /** *

An array of parameter declarations for a template.

Parameters * are named variables that can transfer a value for use by an action or an * object.

For more information, see Parameters * in Amazon QuickSight in the Amazon QuickSight User Guide.

*/ inline void SetParameterDeclarations(const Aws::Vector& value) { m_parameterDeclarationsHasBeenSet = true; m_parameterDeclarations = value; } /** *

An array of parameter declarations for a template.

Parameters * are named variables that can transfer a value for use by an action or an * object.

For more information, see Parameters * in Amazon QuickSight in the Amazon QuickSight User Guide.

*/ inline void SetParameterDeclarations(Aws::Vector&& value) { m_parameterDeclarationsHasBeenSet = true; m_parameterDeclarations = std::move(value); } /** *

An array of parameter declarations for a template.

Parameters * are named variables that can transfer a value for use by an action or an * object.

For more information, see Parameters * in Amazon QuickSight in the Amazon QuickSight User Guide.

*/ inline TemplateVersionDefinition& WithParameterDeclarations(const Aws::Vector& value) { SetParameterDeclarations(value); return *this;} /** *

An array of parameter declarations for a template.

Parameters * are named variables that can transfer a value for use by an action or an * object.

For more information, see Parameters * in Amazon QuickSight in the Amazon QuickSight User Guide.

*/ inline TemplateVersionDefinition& WithParameterDeclarations(Aws::Vector&& value) { SetParameterDeclarations(std::move(value)); return *this;} /** *

An array of parameter declarations for a template.

Parameters * are named variables that can transfer a value for use by an action or an * object.

For more information, see Parameters * in Amazon QuickSight in the Amazon QuickSight User Guide.

*/ inline TemplateVersionDefinition& AddParameterDeclarations(const ParameterDeclaration& value) { m_parameterDeclarationsHasBeenSet = true; m_parameterDeclarations.push_back(value); return *this; } /** *

An array of parameter declarations for a template.

Parameters * are named variables that can transfer a value for use by an action or an * object.

For more information, see Parameters * in Amazon QuickSight in the Amazon QuickSight User Guide.

*/ inline TemplateVersionDefinition& AddParameterDeclarations(ParameterDeclaration&& value) { m_parameterDeclarationsHasBeenSet = true; m_parameterDeclarations.push_back(std::move(value)); return *this; } /** *

Filter definitions for a template.

For more information, see Filtering * Data in the Amazon QuickSight User Guide.

*/ inline const Aws::Vector& GetFilterGroups() const{ return m_filterGroups; } /** *

Filter definitions for a template.

For more information, see Filtering * Data in the Amazon QuickSight User Guide.

*/ inline bool FilterGroupsHasBeenSet() const { return m_filterGroupsHasBeenSet; } /** *

Filter definitions for a template.

For more information, see Filtering * Data in the Amazon QuickSight User Guide.

*/ inline void SetFilterGroups(const Aws::Vector& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = value; } /** *

Filter definitions for a template.

For more information, see Filtering * Data in the Amazon QuickSight User Guide.

*/ inline void SetFilterGroups(Aws::Vector&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups = std::move(value); } /** *

Filter definitions for a template.

For more information, see Filtering * Data in the Amazon QuickSight User Guide.

*/ inline TemplateVersionDefinition& WithFilterGroups(const Aws::Vector& value) { SetFilterGroups(value); return *this;} /** *

Filter definitions for a template.

For more information, see Filtering * Data in the Amazon QuickSight User Guide.

*/ inline TemplateVersionDefinition& WithFilterGroups(Aws::Vector&& value) { SetFilterGroups(std::move(value)); return *this;} /** *

Filter definitions for a template.

For more information, see Filtering * Data in the Amazon QuickSight User Guide.

*/ inline TemplateVersionDefinition& AddFilterGroups(const FilterGroup& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(value); return *this; } /** *

Filter definitions for a template.

For more information, see Filtering * Data in the Amazon QuickSight User Guide.

*/ inline TemplateVersionDefinition& AddFilterGroups(FilterGroup&& value) { m_filterGroupsHasBeenSet = true; m_filterGroups.push_back(std::move(value)); return *this; } /** *

An array of template-level column configurations. Column configurations are * used to set default formatting for a column that's used throughout a template. *

*/ inline const Aws::Vector& GetColumnConfigurations() const{ return m_columnConfigurations; } /** *

An array of template-level column configurations. Column configurations are * used to set default formatting for a column that's used throughout a template. *

*/ inline bool ColumnConfigurationsHasBeenSet() const { return m_columnConfigurationsHasBeenSet; } /** *

An array of template-level column configurations. Column configurations are * used to set default formatting for a column that's used throughout a template. *

*/ inline void SetColumnConfigurations(const Aws::Vector& value) { m_columnConfigurationsHasBeenSet = true; m_columnConfigurations = value; } /** *

An array of template-level column configurations. Column configurations are * used to set default formatting for a column that's used throughout a template. *

*/ inline void SetColumnConfigurations(Aws::Vector&& value) { m_columnConfigurationsHasBeenSet = true; m_columnConfigurations = std::move(value); } /** *

An array of template-level column configurations. Column configurations are * used to set default formatting for a column that's used throughout a template. *

*/ inline TemplateVersionDefinition& WithColumnConfigurations(const Aws::Vector& value) { SetColumnConfigurations(value); return *this;} /** *

An array of template-level column configurations. Column configurations are * used to set default formatting for a column that's used throughout a template. *

*/ inline TemplateVersionDefinition& WithColumnConfigurations(Aws::Vector&& value) { SetColumnConfigurations(std::move(value)); return *this;} /** *

An array of template-level column configurations. Column configurations are * used to set default formatting for a column that's used throughout a template. *

*/ inline TemplateVersionDefinition& AddColumnConfigurations(const ColumnConfiguration& value) { m_columnConfigurationsHasBeenSet = true; m_columnConfigurations.push_back(value); return *this; } /** *

An array of template-level column configurations. Column configurations are * used to set default formatting for a column that's used throughout a template. *

*/ inline TemplateVersionDefinition& AddColumnConfigurations(ColumnConfiguration&& value) { m_columnConfigurationsHasBeenSet = true; m_columnConfigurations.push_back(std::move(value)); return *this; } inline const AnalysisDefaults& GetAnalysisDefaults() const{ return m_analysisDefaults; } inline bool AnalysisDefaultsHasBeenSet() const { return m_analysisDefaultsHasBeenSet; } inline void SetAnalysisDefaults(const AnalysisDefaults& value) { m_analysisDefaultsHasBeenSet = true; m_analysisDefaults = value; } inline void SetAnalysisDefaults(AnalysisDefaults&& value) { m_analysisDefaultsHasBeenSet = true; m_analysisDefaults = std::move(value); } inline TemplateVersionDefinition& WithAnalysisDefaults(const AnalysisDefaults& value) { SetAnalysisDefaults(value); return *this;} inline TemplateVersionDefinition& WithAnalysisDefaults(AnalysisDefaults&& value) { SetAnalysisDefaults(std::move(value)); return *this;} private: Aws::Vector m_dataSetConfigurations; bool m_dataSetConfigurationsHasBeenSet = false; Aws::Vector m_sheets; bool m_sheetsHasBeenSet = false; Aws::Vector m_calculatedFields; bool m_calculatedFieldsHasBeenSet = false; Aws::Vector m_parameterDeclarations; bool m_parameterDeclarationsHasBeenSet = false; Aws::Vector m_filterGroups; bool m_filterGroupsHasBeenSet = false; Aws::Vector m_columnConfigurations; bool m_columnConfigurationsHasBeenSet = false; AnalysisDefaults m_analysisDefaults; bool m_analysisDefaultsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws