/* * 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 evidently-2021-02-01.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.CloudWatchEvidently.Model { /// /// A structure that contains the configuration of which variation to use as the "control" /// version. The "control" version is used for comparison with other variations. This /// structure also specifies how much experiment traffic is allocated to each variation. /// public partial class OnlineAbDefinition { private string _controlTreatmentName; private Dictionary _treatmentWeights = new Dictionary(); /// /// Gets and sets the property ControlTreatmentName. /// /// The name of the variation that is the default variation that the other variations /// are compared to. /// /// [AWSProperty(Min=1, Max=127)] public string ControlTreatmentName { get { return this._controlTreatmentName; } set { this._controlTreatmentName = value; } } // Check to see if ControlTreatmentName property is set internal bool IsSetControlTreatmentName() { return this._controlTreatmentName != null; } /// /// Gets and sets the property TreatmentWeights. /// /// A set of key-value pairs. The keys are variation names, and the values are the portion /// of experiment traffic to be assigned to that variation. The traffic portion is specified /// in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment /// traffic to that variation. /// /// public Dictionary TreatmentWeights { get { return this._treatmentWeights; } set { this._treatmentWeights = value; } } // Check to see if TreatmentWeights property is set internal bool IsSetTreatmentWeights() { return this._treatmentWeights != null && this._treatmentWeights.Count > 0; } } }