/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/connectcases/ConnectCases_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/connectcases/model/TemplateStatus.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConnectCases { namespace Model { /** * <p>Template summary information.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/TemplateSummary">AWS * API Reference</a></p> */ class TemplateSummary { public: AWS_CONNECTCASES_API TemplateSummary(); AWS_CONNECTCASES_API TemplateSummary(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECTCASES_API TemplateSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The template name.</p> */ inline const Aws::String& GetName() const{ return m_name; } /** * <p>The template name.</p> */ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** * <p>The template name.</p> */ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** * <p>The template name.</p> */ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** * <p>The template name.</p> */ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** * <p>The template name.</p> */ inline TemplateSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** * <p>The template name.</p> */ inline TemplateSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** * <p>The template name.</p> */ inline TemplateSummary& WithName(const char* value) { SetName(value); return *this;} /** * <p>The status of the template.</p> */ inline const TemplateStatus& GetStatus() const{ return m_status; } /** * <p>The status of the template.</p> */ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** * <p>The status of the template.</p> */ inline void SetStatus(const TemplateStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** * <p>The status of the template.</p> */ inline void SetStatus(TemplateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** * <p>The status of the template.</p> */ inline TemplateSummary& WithStatus(const TemplateStatus& value) { SetStatus(value); return *this;} /** * <p>The status of the template.</p> */ inline TemplateSummary& WithStatus(TemplateStatus&& value) { SetStatus(std::move(value)); return *this;} /** * <p>The Amazon Resource Name (ARN) of the template.</p> */ inline const Aws::String& GetTemplateArn() const{ return m_templateArn; } /** * <p>The Amazon Resource Name (ARN) of the template.</p> */ inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; } /** * <p>The Amazon Resource Name (ARN) of the template.</p> */ inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; } /** * <p>The Amazon Resource Name (ARN) of the template.</p> */ inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); } /** * <p>The Amazon Resource Name (ARN) of the template.</p> */ inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); } /** * <p>The Amazon Resource Name (ARN) of the template.</p> */ inline TemplateSummary& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;} /** * <p>The Amazon Resource Name (ARN) of the template.</p> */ inline TemplateSummary& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;} /** * <p>The Amazon Resource Name (ARN) of the template.</p> */ inline TemplateSummary& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;} /** * <p>The unique identifier for the template.</p> */ inline const Aws::String& GetTemplateId() const{ return m_templateId; } /** * <p>The unique identifier for the template.</p> */ inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; } /** * <p>The unique identifier for the template.</p> */ inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; } /** * <p>The unique identifier for the template.</p> */ inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); } /** * <p>The unique identifier for the template.</p> */ inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); } /** * <p>The unique identifier for the template.</p> */ inline TemplateSummary& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;} /** * <p>The unique identifier for the template.</p> */ inline TemplateSummary& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;} /** * <p>The unique identifier for the template.</p> */ inline TemplateSummary& WithTemplateId(const char* value) { SetTemplateId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; TemplateStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_templateArn; bool m_templateArnHasBeenSet = false; Aws::String m_templateId; bool m_templateIdHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws