@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DesiredWeightAndCapacity extends Object implements Serializable, Cloneable, StructuredPojo
Specifies weight and capacity values for a production variant.
| Constructor and Description | 
|---|
| DesiredWeightAndCapacity() | 
| Modifier and Type | Method and Description | 
|---|---|
| DesiredWeightAndCapacity | clone() | 
| boolean | equals(Object obj) | 
| Integer | getDesiredInstanceCount()
 The variant's capacity. | 
| Float | getDesiredWeight()
 The variant's weight. | 
| ProductionVariantServerlessUpdateConfig | getServerlessUpdateConfig()
 Specifies the serverless update concurrency configuration for an endpoint variant. | 
| String | getVariantName()
 The name of the variant to update. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setDesiredInstanceCount(Integer desiredInstanceCount)
 The variant's capacity. | 
| void | setDesiredWeight(Float desiredWeight)
 The variant's weight. | 
| void | setServerlessUpdateConfig(ProductionVariantServerlessUpdateConfig serverlessUpdateConfig)
 Specifies the serverless update concurrency configuration for an endpoint variant. | 
| void | setVariantName(String variantName)
 The name of the variant to update. | 
| String | toString()Returns a string representation of this object. | 
| DesiredWeightAndCapacity | withDesiredInstanceCount(Integer desiredInstanceCount)
 The variant's capacity. | 
| DesiredWeightAndCapacity | withDesiredWeight(Float desiredWeight)
 The variant's weight. | 
| DesiredWeightAndCapacity | withServerlessUpdateConfig(ProductionVariantServerlessUpdateConfig serverlessUpdateConfig)
 Specifies the serverless update concurrency configuration for an endpoint variant. | 
| DesiredWeightAndCapacity | withVariantName(String variantName)
 The name of the variant to update. | 
public void setVariantName(String variantName)
The name of the variant to update.
variantName - The name of the variant to update.public String getVariantName()
The name of the variant to update.
public DesiredWeightAndCapacity withVariantName(String variantName)
The name of the variant to update.
variantName - The name of the variant to update.public void setDesiredWeight(Float desiredWeight)
The variant's weight.
desiredWeight - The variant's weight.public Float getDesiredWeight()
The variant's weight.
public DesiredWeightAndCapacity withDesiredWeight(Float desiredWeight)
The variant's weight.
desiredWeight - The variant's weight.public void setDesiredInstanceCount(Integer desiredInstanceCount)
The variant's capacity.
desiredInstanceCount - The variant's capacity.public Integer getDesiredInstanceCount()
The variant's capacity.
public DesiredWeightAndCapacity withDesiredInstanceCount(Integer desiredInstanceCount)
The variant's capacity.
desiredInstanceCount - The variant's capacity.public void setServerlessUpdateConfig(ProductionVariantServerlessUpdateConfig serverlessUpdateConfig)
Specifies the serverless update concurrency configuration for an endpoint variant.
serverlessUpdateConfig - Specifies the serverless update concurrency configuration for an endpoint variant.public ProductionVariantServerlessUpdateConfig getServerlessUpdateConfig()
Specifies the serverless update concurrency configuration for an endpoint variant.
public DesiredWeightAndCapacity withServerlessUpdateConfig(ProductionVariantServerlessUpdateConfig serverlessUpdateConfig)
Specifies the serverless update concurrency configuration for an endpoint variant.
serverlessUpdateConfig - Specifies the serverless update concurrency configuration for an endpoint variant.public String toString()
toString in class ObjectObject.toString()public DesiredWeightAndCapacity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.