/** * 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 { /** *

Metadata structure for an analysis in Amazon QuickSight

See * Also:

AWS * API Reference

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

The ID of the analysis.

*/ inline const Aws::String& GetAnalysisId() const{ return m_analysisId; } /** *

The ID of the analysis.

*/ inline bool AnalysisIdHasBeenSet() const { return m_analysisIdHasBeenSet; } /** *

The ID of the analysis.

*/ inline void SetAnalysisId(const Aws::String& value) { m_analysisIdHasBeenSet = true; m_analysisId = value; } /** *

The ID of the analysis.

*/ inline void SetAnalysisId(Aws::String&& value) { m_analysisIdHasBeenSet = true; m_analysisId = std::move(value); } /** *

The ID of the analysis.

*/ inline void SetAnalysisId(const char* value) { m_analysisIdHasBeenSet = true; m_analysisId.assign(value); } /** *

The ID of the analysis.

*/ inline Analysis& WithAnalysisId(const Aws::String& value) { SetAnalysisId(value); return *this;} /** *

The ID of the analysis.

*/ inline Analysis& WithAnalysisId(Aws::String&& value) { SetAnalysisId(std::move(value)); return *this;} /** *

The ID of the analysis.

*/ inline Analysis& WithAnalysisId(const char* value) { SetAnalysisId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the analysis.

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

The Amazon Resource Name (ARN) of the analysis.

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

The Amazon Resource Name (ARN) of the analysis.

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

The Amazon Resource Name (ARN) of the analysis.

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

The Amazon Resource Name (ARN) of the analysis.

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

The Amazon Resource Name (ARN) of the analysis.

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

The Amazon Resource Name (ARN) of the analysis.

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

The Amazon Resource Name (ARN) of the analysis.

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

The descriptive name of the analysis.

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

The descriptive name of the analysis.

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

The descriptive name of the analysis.

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

The descriptive name of the analysis.

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

The descriptive name of the analysis.

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

The descriptive name of the analysis.

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

The descriptive name of the analysis.

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

The descriptive name of the analysis.

*/ inline Analysis& WithName(const char* value) { SetName(value); return *this;} /** *

Status associated with the analysis.

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

Status associated with the analysis.

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

Status associated with the analysis.

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

Status associated with the analysis.

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

Status associated with the analysis.

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

Status associated with the analysis.

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

Errors associated with the analysis.

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

Errors associated with the analysis.

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

Errors associated with the analysis.

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

Errors associated with the analysis.

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

Errors associated with the analysis.

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

Errors associated with the analysis.

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

Errors associated with the analysis.

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

Errors associated with the analysis.

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

The ARNs of the datasets of the analysis.

*/ inline const Aws::Vector& GetDataSetArns() const{ return m_dataSetArns; } /** *

The ARNs of the datasets of the analysis.

*/ inline bool DataSetArnsHasBeenSet() const { return m_dataSetArnsHasBeenSet; } /** *

The ARNs of the datasets of the analysis.

*/ inline void SetDataSetArns(const Aws::Vector& value) { m_dataSetArnsHasBeenSet = true; m_dataSetArns = value; } /** *

The ARNs of the datasets of the analysis.

*/ inline void SetDataSetArns(Aws::Vector&& value) { m_dataSetArnsHasBeenSet = true; m_dataSetArns = std::move(value); } /** *

The ARNs of the datasets of the analysis.

*/ inline Analysis& WithDataSetArns(const Aws::Vector& value) { SetDataSetArns(value); return *this;} /** *

The ARNs of the datasets of the analysis.

*/ inline Analysis& WithDataSetArns(Aws::Vector&& value) { SetDataSetArns(std::move(value)); return *this;} /** *

The ARNs of the datasets of the analysis.

*/ inline Analysis& AddDataSetArns(const Aws::String& value) { m_dataSetArnsHasBeenSet = true; m_dataSetArns.push_back(value); return *this; } /** *

The ARNs of the datasets of the analysis.

*/ inline Analysis& AddDataSetArns(Aws::String&& value) { m_dataSetArnsHasBeenSet = true; m_dataSetArns.push_back(std::move(value)); return *this; } /** *

The ARNs of the datasets of the analysis.

*/ inline Analysis& AddDataSetArns(const char* value) { m_dataSetArnsHasBeenSet = true; m_dataSetArns.push_back(value); return *this; } /** *

The ARN of the theme of the analysis.

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

The ARN of the theme of the analysis.

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

The ARN of the theme of the analysis.

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

The ARN of the theme of the analysis.

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

The ARN of the theme of the analysis.

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

The ARN of the theme of the analysis.

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

The ARN of the theme of the analysis.

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

The ARN of the theme of the analysis.

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

The time that the analysis was created.

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

The time that the analysis was created.

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

The time that the analysis was created.

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

The time that the analysis was created.

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

The time that the analysis was created.

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

The time that the analysis was created.

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

The time that the analysis was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The time that the analysis was last updated.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The time that the analysis was last updated.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The time that the analysis was last updated.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

The time that the analysis was last updated.

*/ inline Analysis& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The time that the analysis was last updated.

*/ inline Analysis& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(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 Analysis& 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 Analysis& 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 Analysis& 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 Analysis& AddSheets(Sheet&& value) { m_sheetsHasBeenSet = true; m_sheets.push_back(std::move(value)); return *this; } private: Aws::String m_analysisId; bool m_analysisIdHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ResourceStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_errors; bool m_errorsHasBeenSet = false; Aws::Vector m_dataSetArns; bool m_dataSetArnsHasBeenSet = false; Aws::String m_themeArn; bool m_themeArnHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::Vector m_sheets; bool m_sheetsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws