@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ShadowModeConfig extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ShadowModeConfig() |
Modifier and Type | Method and Description |
---|---|
ShadowModeConfig |
clone() |
boolean |
equals(Object obj) |
List<ShadowModelVariantConfig> |
getShadowModelVariants()
List of shadow variant configurations.
|
String |
getSourceModelVariantName()
The name of the production variant, which takes all the inference requests.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setShadowModelVariants(Collection<ShadowModelVariantConfig> shadowModelVariants)
List of shadow variant configurations.
|
void |
setSourceModelVariantName(String sourceModelVariantName)
The name of the production variant, which takes all the inference requests.
|
String |
toString()
Returns a string representation of this object.
|
ShadowModeConfig |
withShadowModelVariants(Collection<ShadowModelVariantConfig> shadowModelVariants)
List of shadow variant configurations.
|
ShadowModeConfig |
withShadowModelVariants(ShadowModelVariantConfig... shadowModelVariants)
List of shadow variant configurations.
|
ShadowModeConfig |
withSourceModelVariantName(String sourceModelVariantName)
The name of the production variant, which takes all the inference requests.
|
public void setSourceModelVariantName(String sourceModelVariantName)
The name of the production variant, which takes all the inference requests.
sourceModelVariantName
- The name of the production variant, which takes all the inference requests.public String getSourceModelVariantName()
The name of the production variant, which takes all the inference requests.
public ShadowModeConfig withSourceModelVariantName(String sourceModelVariantName)
The name of the production variant, which takes all the inference requests.
sourceModelVariantName
- The name of the production variant, which takes all the inference requests.public List<ShadowModelVariantConfig> getShadowModelVariants()
List of shadow variant configurations.
public void setShadowModelVariants(Collection<ShadowModelVariantConfig> shadowModelVariants)
List of shadow variant configurations.
shadowModelVariants
- List of shadow variant configurations.public ShadowModeConfig withShadowModelVariants(ShadowModelVariantConfig... shadowModelVariants)
List of shadow variant configurations.
NOTE: This method appends the values to the existing list (if any). Use
setShadowModelVariants(java.util.Collection)
or withShadowModelVariants(java.util.Collection)
if you want to override the existing values.
shadowModelVariants
- List of shadow variant configurations.public ShadowModeConfig withShadowModelVariants(Collection<ShadowModelVariantConfig> shadowModelVariants)
List of shadow variant configurations.
shadowModelVariants
- List of shadow variant configurations.public String toString()
toString
in class Object
Object.toString()
public ShadowModeConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.