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

A brief description of the template.

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

A brief description of the template.

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

A brief description of the template.

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

A brief description of the template.

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

A brief description of the template.

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

A brief description of the template.

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

A brief description of the template.

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

Configuration of layouts associated to the template.

*/ inline const LayoutConfiguration& GetLayoutConfiguration() const{ return m_layoutConfiguration; } /** *

Configuration of layouts associated to the template.

*/ inline void SetLayoutConfiguration(const LayoutConfiguration& value) { m_layoutConfiguration = value; } /** *

Configuration of layouts associated to the template.

*/ inline void SetLayoutConfiguration(LayoutConfiguration&& value) { m_layoutConfiguration = std::move(value); } /** *

Configuration of layouts associated to the template.

*/ inline GetTemplateResult& WithLayoutConfiguration(const LayoutConfiguration& value) { SetLayoutConfiguration(value); return *this;} /** *

Configuration of layouts associated to the template.

*/ inline GetTemplateResult& WithLayoutConfiguration(LayoutConfiguration&& value) { SetLayoutConfiguration(std::move(value)); return *this;} /** *

The name of the template.

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

The name of the template.

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

The name of the template.

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

The name of the template.

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

The name of the template.

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

The name of the template.

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

The name of the template.

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

A list of fields that must contain a value for a case to be successfully * created with this template.

*/ inline const Aws::Vector& GetRequiredFields() const{ return m_requiredFields; } /** *

A list of fields that must contain a value for a case to be successfully * created with this template.

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

A list of fields that must contain a value for a case to be successfully * created with this template.

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

A list of fields that must contain a value for a case to be successfully * created with this template.

*/ inline GetTemplateResult& WithRequiredFields(const Aws::Vector& value) { SetRequiredFields(value); return *this;} /** *

A list of fields that must contain a value for a case to be successfully * created with this template.

*/ inline GetTemplateResult& WithRequiredFields(Aws::Vector&& value) { SetRequiredFields(std::move(value)); return *this;} /** *

A list of fields that must contain a value for a case to be successfully * created with this template.

*/ inline GetTemplateResult& AddRequiredFields(const RequiredField& value) { m_requiredFields.push_back(value); return *this; } /** *

A list of fields that must contain a value for a case to be successfully * created with this template.

*/ inline GetTemplateResult& AddRequiredFields(RequiredField&& value) { m_requiredFields.push_back(std::move(value)); return *this; } /** *

The status of the template.

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

The status of the template.

*/ inline void SetStatus(const TemplateStatus& value) { m_status = value; } /** *

The status of the template.

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

The status of the template.

*/ inline GetTemplateResult& WithStatus(const TemplateStatus& value) { SetStatus(value); return *this;} /** *

The status of the template.

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

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline GetTemplateResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline GetTemplateResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline GetTemplateResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline GetTemplateResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline GetTemplateResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline GetTemplateResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline GetTemplateResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline GetTemplateResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

A map of of key-value pairs that represent tags on a resource. Tags are used * to organize, track, or control access for this resource.

*/ inline GetTemplateResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

The Amazon Resource Name (ARN) of the template.

*/ inline const Aws::String& GetTemplateArn() const{ return m_templateArn; } /** *

The Amazon Resource Name (ARN) of the template.

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

The Amazon Resource Name (ARN) of the template.

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

The Amazon Resource Name (ARN) of the template.

*/ inline void SetTemplateArn(const char* value) { m_templateArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the template.

*/ inline GetTemplateResult& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the template.

*/ inline GetTemplateResult& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the template.

*/ inline GetTemplateResult& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;} /** *

A unique identifier of a template.

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

A unique identifier of a template.

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

A unique identifier of a template.

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

A unique identifier of a template.

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

A unique identifier of a template.

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

A unique identifier of a template.

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

A unique identifier of a template.

*/ inline GetTemplateResult& WithTemplateId(const char* value) { SetTemplateId(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 GetTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_description; LayoutConfiguration m_layoutConfiguration; Aws::String m_name; Aws::Vector m_requiredFields; TemplateStatus m_status; Aws::Map m_tags; Aws::String m_templateArn; Aws::String m_templateId; Aws::String m_requestId; }; } // namespace Model } // namespace ConnectCases } // namespace Aws