/** * 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 ConnectCases { namespace Model { /** */ class UpdateTemplateRequest : public ConnectCasesRequest { public: AWS_CONNECTCASES_API UpdateTemplateRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateTemplate"; } AWS_CONNECTCASES_API Aws::String SerializePayload() const override; /** *

A brief description of the template.

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

A brief description of the template.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A brief description of the template.

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

A brief description of the template.

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

A brief description of the template.

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

A brief description of the template.

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

A brief description of the template.

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

A brief description of the template.

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

The unique identifier of the Cases domain.

*/ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** *

The unique identifier of the Cases domain.

*/ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** *

The unique identifier of the Cases domain.

*/ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** *

The unique identifier of the Cases domain.

*/ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** *

The unique identifier of the Cases domain.

*/ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** *

The unique identifier of the Cases domain.

*/ inline UpdateTemplateRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** *

The unique identifier of the Cases domain.

*/ inline UpdateTemplateRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** *

The unique identifier of the Cases domain.

*/ inline UpdateTemplateRequest& WithDomainId(const char* value) { SetDomainId(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 bool LayoutConfigurationHasBeenSet() const { return m_layoutConfigurationHasBeenSet; } /** *

Configuration of layouts associated to the template.

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

Configuration of layouts associated to the template.

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

Configuration of layouts associated to the template.

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

Configuration of layouts associated to the template.

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

The name of the template. It must be unique per domain.

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

The name of the template. It must be unique per domain.

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

The name of the template. It must be unique per domain.

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

The name of the template. It must be unique per domain.

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

The name of the template. It must be unique per domain.

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

The name of the template. It must be unique per domain.

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

The name of the template. It must be unique per domain.

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

The name of the template. It must be unique per domain.

*/ inline UpdateTemplateRequest& 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 bool RequiredFieldsHasBeenSet() const { return m_requiredFieldsHasBeenSet; } /** *

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_requiredFieldsHasBeenSet = true; 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_requiredFieldsHasBeenSet = true; 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 UpdateTemplateRequest& 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 UpdateTemplateRequest& 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 UpdateTemplateRequest& AddRequiredFields(const RequiredField& value) { m_requiredFieldsHasBeenSet = true; 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 UpdateTemplateRequest& AddRequiredFields(RequiredField&& value) { m_requiredFieldsHasBeenSet = true; 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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the template.

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

The status of the template.

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

The status of the template.

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

The status of the template.

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

A unique identifier for the template.

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

A unique identifier for the template.

*/ inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; } /** *

A unique identifier for the template.

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

A unique identifier for the template.

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

A unique identifier for the template.

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

A unique identifier for the template.

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

A unique identifier for the template.

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

A unique identifier for the template.

*/ inline UpdateTemplateRequest& WithTemplateId(const char* value) { SetTemplateId(value); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_domainId; bool m_domainIdHasBeenSet = false; LayoutConfiguration m_layoutConfiguration; bool m_layoutConfigurationHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_requiredFields; bool m_requiredFieldsHasBeenSet = false; TemplateStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_templateId; bool m_templateIdHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws