/* * 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 runtime.lex-2016-11-28.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.Lex.Model { /// /// If you configure a response card when creating your bots, Amazon Lex substitutes the /// session attributes and slot values that are available, and then returns it. The response /// card can also come from a Lambda function ( dialogCodeHook and fulfillmentActivity /// on an intent). /// public partial class ResponseCard { private ContentType _contentType; private List _genericAttachments = new List(); private string _version; /// /// Gets and sets the property ContentType. /// /// The content type of the response. /// /// public ContentType ContentType { get { return this._contentType; } set { this._contentType = value; } } // Check to see if ContentType property is set internal bool IsSetContentType() { return this._contentType != null; } /// /// Gets and sets the property GenericAttachments. /// /// An array of attachment objects representing options. /// /// [AWSProperty(Min=0, Max=10)] public List GenericAttachments { get { return this._genericAttachments; } set { this._genericAttachments = value; } } // Check to see if GenericAttachments property is set internal bool IsSetGenericAttachments() { return this._genericAttachments != null && this._genericAttachments.Count > 0; } /// /// Gets and sets the property Version. /// /// The version of the response card format. /// /// public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } } }