/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { class DescribeTemplateDefinitionResult { public: AWS_QUICKSIGHT_API DescribeTemplateDefinitionResult(); AWS_QUICKSIGHT_API DescribeTemplateDefinitionResult(const Aws::AmazonWebServiceResult& result); AWS_QUICKSIGHT_API DescribeTemplateDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The descriptive name of the template.

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

The descriptive name of the template.

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

The descriptive name of the template.

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

The descriptive name of the template.

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

The descriptive name of the template.

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

The descriptive name of the template.

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

The descriptive name of the template.

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

The ID of the template described.

*/ inline const Aws::String& GetTemplateId() const{ return m_templateId; } /** *

The ID of the template described.

*/ inline void SetTemplateId(const Aws::String& value) { m_templateId = value; } /** *

The ID of the template described.

*/ inline void SetTemplateId(Aws::String&& value) { m_templateId = std::move(value); } /** *

The ID of the template described.

*/ inline void SetTemplateId(const char* value) { m_templateId.assign(value); } /** *

The ID of the template described.

*/ inline DescribeTemplateDefinitionResult& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;} /** *

The ID of the template described.

*/ inline DescribeTemplateDefinitionResult& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;} /** *

The ID of the template described.

*/ inline DescribeTemplateDefinitionResult& WithTemplateId(const char* value) { SetTemplateId(value); return *this;} /** *

Errors associated with the template version.

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

Errors associated with the template version.

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

Errors associated with the template version.

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

Errors associated with the template version.

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

Errors associated with the template version.

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

Errors associated with the template version.

*/ inline DescribeTemplateDefinitionResult& AddErrors(const TemplateError& value) { m_errors.push_back(value); return *this; } /** *

Errors associated with the template version.

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

Status associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

  • *
*/ inline const ResourceStatus& GetResourceStatus() const{ return m_resourceStatus; } /** *

Status associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

  • *
*/ inline void SetResourceStatus(const ResourceStatus& value) { m_resourceStatus = value; } /** *

Status associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

  • *
*/ inline void SetResourceStatus(ResourceStatus&& value) { m_resourceStatus = std::move(value); } /** *

Status associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

  • *
*/ inline DescribeTemplateDefinitionResult& WithResourceStatus(const ResourceStatus& value) { SetResourceStatus(value); return *this;} /** *

Status associated with the template.

  • * CREATION_IN_PROGRESS

  • * CREATION_SUCCESSFUL

  • * CREATION_FAILED

  • UPDATE_IN_PROGRESS *

  • UPDATE_SUCCESSFUL

  • * UPDATE_FAILED

  • DELETED

  • *
*/ inline DescribeTemplateDefinitionResult& WithResourceStatus(ResourceStatus&& value) { SetResourceStatus(std::move(value)); return *this;} /** *

The ARN of the theme of the template.

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

The ARN of the theme of the template.

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

The ARN of the theme of the template.

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

The ARN of the theme of the template.

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

The ARN of the theme of the template.

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

The ARN of the theme of the template.

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

The ARN of the theme of the template.

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

The definition of the template.

A definition is the data model of all * features in a Dashboard, Template, or Analysis.

*/ inline const TemplateVersionDefinition& GetDefinition() const{ return m_definition; } /** *

The definition of the template.

A definition is the data model of all * features in a Dashboard, Template, or Analysis.

*/ inline void SetDefinition(const TemplateVersionDefinition& value) { m_definition = value; } /** *

The definition of the template.

A definition is the data model of all * features in a Dashboard, Template, or Analysis.

*/ inline void SetDefinition(TemplateVersionDefinition&& value) { m_definition = std::move(value); } /** *

The definition of the template.

A definition is the data model of all * features in a Dashboard, Template, or Analysis.

*/ inline DescribeTemplateDefinitionResult& WithDefinition(const TemplateVersionDefinition& value) { SetDefinition(value); return *this;} /** *

The definition of the template.

A definition is the data model of all * features in a Dashboard, Template, or Analysis.

*/ inline DescribeTemplateDefinitionResult& WithDefinition(TemplateVersionDefinition&& value) { SetDefinition(std::move(value)); return *this;} /** *

The HTTP status of the request.

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

The HTTP status of the request.

*/ inline void SetStatus(int value) { m_status = value; } /** *

The HTTP status of the request.

*/ inline DescribeTemplateDefinitionResult& WithStatus(int value) { SetStatus(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeTemplateDefinitionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeTemplateDefinitionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeTemplateDefinitionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_templateId; Aws::Vector m_errors; ResourceStatus m_resourceStatus; Aws::String m_themeArn; TemplateVersionDefinition m_definition; int m_status; Aws::String m_requestId; }; } // namespace Model } // namespace QuickSight } // namespace Aws