/* * 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; /** *
* This structure specifies a segment that you have already created, and defines the traffic split for that segment to * be used in a launch. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SegmentOverride implements Serializable, Cloneable, StructuredPojo { /** ** A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides * with lower numbers are evaluated first. *
*/ private Long evaluationOrder; /** ** The ARN of the segment to use. *
*/ private String segment; /** ** The traffic allocation percentages among the feature variations to assign to this segment. This is a set of * key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that * variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of * traffic. *
*/ private java.util.Map* A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides * with lower numbers are evaluated first. *
* * @param evaluationOrder * A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment * overrides with lower numbers are evaluated first. */ public void setEvaluationOrder(Long evaluationOrder) { this.evaluationOrder = evaluationOrder; } /** ** A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides * with lower numbers are evaluated first. *
* * @return A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment * overrides with lower numbers are evaluated first. */ public Long getEvaluationOrder() { return this.evaluationOrder; } /** ** A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides * with lower numbers are evaluated first. *
* * @param evaluationOrder * A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment * overrides with lower numbers are evaluated first. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentOverride withEvaluationOrder(Long evaluationOrder) { setEvaluationOrder(evaluationOrder); return this; } /** ** The ARN of the segment to use. *
* * @param segment * The ARN of the segment to use. */ public void setSegment(String segment) { this.segment = segment; } /** ** The ARN of the segment to use. *
* * @return The ARN of the segment to use. */ public String getSegment() { return this.segment; } /** ** The ARN of the segment to use. *
* * @param segment * The ARN of the segment to use. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentOverride withSegment(String segment) { setSegment(segment); return this; } /** ** The traffic allocation percentages among the feature variations to assign to this segment. This is a set of * key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that * variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of * traffic. *
* * @return The traffic allocation percentages among the feature variations to assign to this segment. This is a set * of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate * to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 * represents 50% of traffic. */ public java.util.Map* The traffic allocation percentages among the feature variations to assign to this segment. This is a set of * key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that * variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of * traffic. *
* * @param weights * The traffic allocation percentages among the feature variations to assign to this segment. This is a set * of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate * to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 * represents 50% of traffic. */ public void setWeights(java.util.Map* The traffic allocation percentages among the feature variations to assign to this segment. This is a set of * key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that * variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of * traffic. *
* * @param weights * The traffic allocation percentages among the feature variations to assign to this segment. This is a set * of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate * to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 * represents 50% of traffic. * @return Returns a reference to this object so that method calls can be chained together. */ public SegmentOverride withWeights(java.util.Map