/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the connectcases-2022-10-03.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.ConnectCases.Model
{
///
/// Container for the parameters to the UpdateTemplate operation.
/// Updates the attributes of an existing template. The template attributes that can be
/// modified include name
, description
, layoutConfiguration
,
/// requiredFields
, and status
. At least one of these attributes
/// must not be null. If a null value is provided for a given attribute, that attribute
/// is ignored and its current value is preserved.
///
public partial class UpdateTemplateRequest : AmazonConnectCasesRequest
{
private string _description;
private string _domainId;
private LayoutConfiguration _layoutConfiguration;
private string _name;
private List _requiredFields = new List();
private TemplateStatus _status;
private string _templateId;
///
/// Gets and sets the property Description.
///
/// A brief description of the template.
///
///
[AWSProperty(Min=0, Max=255)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property DomainId.
///
/// The unique identifier of the Cases domain.
///
///
[AWSProperty(Required=true, Min=1, Max=500)]
public string DomainId
{
get { return this._domainId; }
set { this._domainId = value; }
}
// Check to see if DomainId property is set
internal bool IsSetDomainId()
{
return this._domainId != null;
}
///
/// Gets and sets the property LayoutConfiguration.
///
/// Configuration of layouts associated to the template.
///
///
public LayoutConfiguration LayoutConfiguration
{
get { return this._layoutConfiguration; }
set { this._layoutConfiguration = value; }
}
// Check to see if LayoutConfiguration property is set
internal bool IsSetLayoutConfiguration()
{
return this._layoutConfiguration != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the template. It must be unique per domain.
///
///
[AWSProperty(Min=1, Max=100)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property RequiredFields.
///
/// A list of fields that must contain a value for a case to be successfully created with
/// this template.
///
///
[AWSProperty(Min=0, Max=100)]
public List RequiredFields
{
get { return this._requiredFields; }
set { this._requiredFields = value; }
}
// Check to see if RequiredFields property is set
internal bool IsSetRequiredFields()
{
return this._requiredFields != null && this._requiredFields.Count > 0;
}
///
/// Gets and sets the property Status.
///
/// The status of the template.
///
///
public TemplateStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property TemplateId.
///
/// A unique identifier for the template.
///
///
[AWSProperty(Required=true, Min=1, Max=500)]
public string TemplateId
{
get { return this._templateId; }
set { this._templateId = value; }
}
// Check to see if TemplateId property is set
internal bool IsSetTemplateId()
{
return this._templateId != null;
}
}
}