/* * 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 personalize-2018-05-22.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.Personalize.Model { /// /// Container for the parameters to the CreateMetricAttribution operation. /// Creates a metric attribution. A metric attribution creates reports on the data that /// you import into Amazon Personalize. Depending on how you imported the data, you can /// view reports in Amazon CloudWatch or Amazon S3. For more information, see Measuring /// impact of recommendations. /// public partial class CreateMetricAttributionRequest : AmazonPersonalizeRequest { private string _datasetGroupArn; private List _metrics = new List(); private MetricAttributionOutput _metricsOutputConfig; private string _name; /// /// Gets and sets the property DatasetGroupArn. /// /// The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution. /// /// [AWSProperty(Required=true, Max=256)] public string DatasetGroupArn { get { return this._datasetGroupArn; } set { this._datasetGroupArn = value; } } // Check to see if DatasetGroupArn property is set internal bool IsSetDatasetGroupArn() { return this._datasetGroupArn != null; } /// /// Gets and sets the property Metrics. /// /// A list of metric attributes for the metric attribution. Each metric attribute specifies /// an event type to track and a function. Available functions are SUM() /// or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either /// Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE). /// /// [AWSProperty(Required=true, Max=10)] public List Metrics { get { return this._metrics; } set { this._metrics = value; } } // Check to see if Metrics property is set internal bool IsSetMetrics() { return this._metrics != null && this._metrics.Count > 0; } /// /// Gets and sets the property MetricsOutputConfig. /// /// The output configuration details for the metric attribution. /// /// [AWSProperty(Required=true)] public MetricAttributionOutput MetricsOutputConfig { get { return this._metricsOutputConfig; } set { this._metricsOutputConfig = value; } } // Check to see if MetricsOutputConfig property is set internal bool IsSetMetricsOutputConfig() { return this._metricsOutputConfig != null; } /// /// Gets and sets the property Name. /// /// A name for the metric attribution. /// /// [AWSProperty(Required=true, Min=1, Max=63)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }