/* * 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.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The configuration of ShadowMode
inference experiment type, which specifies a production variant to take
* all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference
* requests. For the shadow variant it also specifies the percentage of requests that Amazon SageMaker replicates.
*
* The name of the production variant, which takes all the inference requests. *
*/ private String sourceModelVariantName; /** ** List of shadow variant configurations. *
*/ private java.util.List* The name of the production variant, which takes all the inference requests. *
* * @param sourceModelVariantName * The name of the production variant, which takes all the inference requests. */ public void setSourceModelVariantName(String sourceModelVariantName) { this.sourceModelVariantName = sourceModelVariantName; } /** ** The name of the production variant, which takes all the inference requests. *
* * @return The name of the production variant, which takes all the inference requests. */ public String getSourceModelVariantName() { return this.sourceModelVariantName; } /** ** The name of the production variant, which takes all the inference requests. *
* * @param sourceModelVariantName * The name of the production variant, which takes all the inference requests. * @return Returns a reference to this object so that method calls can be chained together. */ public ShadowModeConfig withSourceModelVariantName(String sourceModelVariantName) { setSourceModelVariantName(sourceModelVariantName); return this; } /** ** List of shadow variant configurations. *
* * @return List of shadow variant configurations. */ public java.util.List* List of shadow variant configurations. *
* * @param shadowModelVariants * List of shadow variant configurations. */ public void setShadowModelVariants(java.util.Collection* List of shadow variant configurations. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setShadowModelVariants(java.util.Collection)} or {@link #withShadowModelVariants(java.util.Collection)} * if you want to override the existing values. *
* * @param shadowModelVariants * List of shadow variant configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public ShadowModeConfig withShadowModelVariants(ShadowModelVariantConfig... shadowModelVariants) { if (this.shadowModelVariants == null) { setShadowModelVariants(new java.util.ArrayList* List of shadow variant configurations. *
* * @param shadowModelVariants * List of shadow variant configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public ShadowModeConfig withShadowModelVariants(java.util.Collection