/* * Copyright 2018-2023 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. */ package com.amazonaws.services.cloudwatchevidently.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OnlineAbConfig implements Serializable, Cloneable, StructuredPojo { /** ** The name of the variation that is to be the default variation that the other variations are compared to. *
*/ private String controlTreatmentName; /** ** 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. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation * would allocate 20% of the experiment traffic to that variation. *
*/ private java.util.Map* The name of the variation that is to be the default variation that the other variations are compared to. *
* * @param controlTreatmentName * The name of the variation that is to be the default variation that the other variations are compared to. */ public void setControlTreatmentName(String controlTreatmentName) { this.controlTreatmentName = controlTreatmentName; } /** ** The name of the variation that is to be the default variation that the other variations are compared to. *
* * @return The name of the variation that is to be the default variation that the other variations are compared to. */ public String getControlTreatmentName() { return this.controlTreatmentName; } /** ** The name of the variation that is to be the default variation that the other variations are compared to. *
* * @param controlTreatmentName * The name of the variation that is to be the default variation that the other variations are compared to. * @return Returns a reference to this object so that method calls can be chained together. */ public OnlineAbConfig withControlTreatmentName(String controlTreatmentName) { setControlTreatmentName(controlTreatmentName); return this; } /** ** 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. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation * would allocate 20% of the experiment traffic to that variation. *
* * @return 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. Specify the traffic portion in thousandths of a percent, so * 20,000 for a variation would allocate 20% of the experiment traffic to that variation. */ public java.util.Map* 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. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation * would allocate 20% of the experiment traffic to that variation. *
* * @param 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. Specify the traffic portion in thousandths of a percent, so * 20,000 for a variation would allocate 20% of the experiment traffic to that variation. */ public void setTreatmentWeights(java.util.Map* 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. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation * would allocate 20% of the experiment traffic to that variation. *
* * @param 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. Specify the traffic portion in thousandths of a percent, so * 20,000 for a variation would allocate 20% of the experiment traffic to that variation. * @return Returns a reference to this object so that method calls can be chained together. */ public OnlineAbConfig withTreatmentWeights(java.util.Map