/* * 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 transcribe-2017-10-26.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.TranscribeService.Model { /// /// Container for the parameters to the CreateCallAnalyticsCategory operation. /// Creates a new Call Analytics category. /// /// /// /// All categories are automatically applied to your Call Analytics transcriptions. Note /// that in order to apply categories to your transcriptions, you must create them before /// submitting your transcription request, as categories cannot be applied retroactively. /// /// /// /// When creating a new category, you can use the InputType parameter to /// label the category as a POST_CALL or a REAL_TIME category. /// POST_CALL categories can only be applied to post-call transcriptions /// and REAL_TIME categories can only be applied to real-time transcriptions. /// If you do not include InputType, your category is created as a POST_CALL /// category by default. /// /// /// /// Call Analytics categories are composed of rules. For each category, you must create /// between 1 and 20 rules. Rules can include these parameters: , , , and . /// /// /// /// To update an existing category, see . /// /// /// /// To learn more about Call Analytics categories, see Creating /// categories for post-call transcriptions and Creating /// categories for real-time transcriptions. /// /// public partial class CreateCallAnalyticsCategoryRequest : AmazonTranscribeServiceRequest { private string _categoryName; private InputType _inputType; private List _rules = new List(); /// /// Gets and sets the property CategoryName. /// /// A unique name, chosen by you, for your Call Analytics category. It's helpful to use /// a detailed naming system that will make sense to you in the future. For example, it's /// better to use sentiment-positive-last30seconds for a category over a /// generic name like test-category. /// /// /// /// Category names are case sensitive. /// /// [AWSProperty(Required=true, Min=1, Max=200)] public string CategoryName { get { return this._categoryName; } set { this._categoryName = value; } } // Check to see if CategoryName property is set internal bool IsSetCategoryName() { return this._categoryName != null; } /// /// Gets and sets the property InputType. /// /// Choose whether you want to create a real-time or a post-call category for your Call /// Analytics transcription. /// /// /// /// Specifying POST_CALL assigns your category to post-call transcriptions; /// categories with this input type cannot be applied to streaming (real-time) transcriptions. /// /// /// /// Specifying REAL_TIME assigns your category to streaming transcriptions; /// categories with this input type cannot be applied to post-call transcriptions. /// /// /// /// If you do not include InputType, your category is created as a post-call /// category by default. /// /// public InputType InputType { get { return this._inputType; } set { this._inputType = value; } } // Check to see if InputType property is set internal bool IsSetInputType() { return this._inputType != null; } /// /// Gets and sets the property Rules. /// /// Rules define a Call Analytics category. When creating a new category, you must create /// between 1 and 20 rules for that category. For each rule, you specify a filter you /// want applied to the attributes of a call. For example, you can choose a sentiment /// filter that detects if a customer's sentiment was positive during the last 30 seconds /// of the call. /// /// [AWSProperty(Required=true, Min=1, Max=20)] public List Rules { get { return this._rules; } set { this._rules = value; } } // Check to see if Rules property is set internal bool IsSetRules() { return this._rules != null && this._rules.Count > 0; } } }