/* * 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 connectparticipant-2018-09-07.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.ConnectParticipant.Model { /// /// Fields to be used while uploading the attachment. /// public partial class UploadMetadata { private Dictionary _headersToInclude = new Dictionary(); private string _url; private string _urlExpiry; /// /// Gets and sets the property HeadersToInclude. /// /// The headers to be provided while uploading the file to the URL. /// /// public Dictionary HeadersToInclude { get { return this._headersToInclude; } set { this._headersToInclude = value; } } // Check to see if HeadersToInclude property is set internal bool IsSetHeadersToInclude() { return this._headersToInclude != null && this._headersToInclude.Count > 0; } /// /// Gets and sets the property Url. /// /// This is the pre-signed URL that can be used for uploading the file to Amazon S3 when /// used in response to StartAttachmentUpload. /// /// [AWSProperty(Min=1, Max=2000)] public string Url { get { return this._url; } set { this._url = value; } } // Check to see if Url property is set internal bool IsSetUrl() { return this._url != null; } /// /// Gets and sets the property UrlExpiry. /// /// The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: /// yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z. /// /// public string UrlExpiry { get { return this._urlExpiry; } set { this._urlExpiry = value; } } // Check to see if UrlExpiry property is set internal bool IsSetUrlExpiry() { return this._urlExpiry != null; } } }