/* * 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 CreateCase operation. /// Creates a case in the specified Cases domain. Case system and custom fields are taken /// as an array id/value pairs with a declared data types. /// /// /// /// The following fields are required when creating a case: /// ///
 <ul> <li> <p> <code>customer_id</code>
    /// - You must provide the full customer profile ARN in this format: <code>arn:aws:profile:your
    /// AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID</code>
    /// </p> </li> <li> <p> <code>title</code> </p>
    /// </li> </ul> </note> 
///
public partial class CreateCaseRequest : AmazonConnectCasesRequest { private string _clientToken; private string _domainId; private List _fields = new List(); private string _templateId; /// /// Gets and sets the property ClientToken. /// /// A unique, case-sensitive identifier that you provide to ensure the idempotency of /// the request. If not provided, the Amazon Web Services SDK populates this field. For /// more information about idempotency, see Making /// retries safe with idempotent APIs. /// /// [AWSProperty(Min=0, Max=64)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != 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 Fields. /// /// An array of objects with field ID (matching ListFields/DescribeField) and value union /// data. /// /// [AWSProperty(Required=true, Min=0, Max=100)] public List Fields { get { return this._fields; } set { this._fields = value; } } // Check to see if Fields property is set internal bool IsSetFields() { return this._fields != null && this._fields.Count > 0; } /// /// Gets and sets the property TemplateId. /// /// A unique identifier of a 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; } } }