/* * 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 { /// /// A list of items that represent RelatedItems. /// public partial class SearchRelatedItemsResponseItem { private DateTime? _associationTime; private RelatedItemContent _content; private string _relatedItemId; private Dictionary _tags = new Dictionary(); private RelatedItemType _type; /// /// Gets and sets the property AssociationTime. /// /// Time at which a related item was associated with a case. /// /// [AWSProperty(Required=true)] public DateTime AssociationTime { get { return this._associationTime.GetValueOrDefault(); } set { this._associationTime = value; } } // Check to see if AssociationTime property is set internal bool IsSetAssociationTime() { return this._associationTime.HasValue; } /// /// Gets and sets the property Content. /// /// Represents the content of a particular type of related item. /// /// [AWSProperty(Required=true)] public RelatedItemContent Content { get { return this._content; } set { this._content = value; } } // Check to see if Content property is set internal bool IsSetContent() { return this._content != null; } /// /// Gets and sets the property RelatedItemId. /// /// Unique identifier of a related item. /// /// [AWSProperty(Required=true, Min=1, Max=500)] public string RelatedItemId { get { return this._relatedItemId; } set { this._relatedItemId = value; } } // Check to see if RelatedItemId property is set internal bool IsSetRelatedItemId() { return this._relatedItemId != null; } /// /// Gets and sets the property Tags. /// /// A map of of key-value pairs that represent tags on a resource. Tags are used to organize, /// track, or control access for this resource. /// /// public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property Type. /// /// Type of a related item. /// /// [AWSProperty(Required=true)] public RelatedItemType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }