@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProductionVariantManagedInstanceScaling extends Object implements Serializable, Cloneable, StructuredPojo
Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.
Constructor and Description |
---|
ProductionVariantManagedInstanceScaling() |
Modifier and Type | Method and Description |
---|---|
ProductionVariantManagedInstanceScaling |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxInstanceCount()
The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in
traffic.
|
Integer |
getMinInstanceCount()
The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in
traffic.
|
String |
getStatus()
Indicates whether managed instance scaling is enabled.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxInstanceCount(Integer maxInstanceCount)
The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in
traffic.
|
void |
setMinInstanceCount(Integer minInstanceCount)
The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in
traffic.
|
void |
setStatus(String status)
Indicates whether managed instance scaling is enabled.
|
String |
toString()
Returns a string representation of this object.
|
ProductionVariantManagedInstanceScaling |
withMaxInstanceCount(Integer maxInstanceCount)
The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in
traffic.
|
ProductionVariantManagedInstanceScaling |
withMinInstanceCount(Integer minInstanceCount)
The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in
traffic.
|
ProductionVariantManagedInstanceScaling |
withStatus(ManagedInstanceScalingStatus status)
Indicates whether managed instance scaling is enabled.
|
ProductionVariantManagedInstanceScaling |
withStatus(String status)
Indicates whether managed instance scaling is enabled.
|
public ProductionVariantManagedInstanceScaling()
public void setStatus(String status)
Indicates whether managed instance scaling is enabled.
status
- Indicates whether managed instance scaling is enabled.ManagedInstanceScalingStatus
public String getStatus()
Indicates whether managed instance scaling is enabled.
ManagedInstanceScalingStatus
public ProductionVariantManagedInstanceScaling withStatus(String status)
Indicates whether managed instance scaling is enabled.
status
- Indicates whether managed instance scaling is enabled.ManagedInstanceScalingStatus
public ProductionVariantManagedInstanceScaling withStatus(ManagedInstanceScalingStatus status)
Indicates whether managed instance scaling is enabled.
status
- Indicates whether managed instance scaling is enabled.ManagedInstanceScalingStatus
public void setMinInstanceCount(Integer minInstanceCount)
The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.
minInstanceCount
- The minimum number of instances that the endpoint must retain when it scales down to accommodate a
decrease in traffic.public Integer getMinInstanceCount()
The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.
public ProductionVariantManagedInstanceScaling withMinInstanceCount(Integer minInstanceCount)
The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.
minInstanceCount
- The minimum number of instances that the endpoint must retain when it scales down to accommodate a
decrease in traffic.public void setMaxInstanceCount(Integer maxInstanceCount)
The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.
maxInstanceCount
- The maximum number of instances that the endpoint can provision when it scales up to accommodate an
increase in traffic.public Integer getMaxInstanceCount()
The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.
public ProductionVariantManagedInstanceScaling withMaxInstanceCount(Integer maxInstanceCount)
The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.
maxInstanceCount
- The maximum number of instances that the endpoint can provision when it scales up to accommodate an
increase in traffic.public String toString()
toString
in class Object
Object.toString()
public ProductionVariantManagedInstanceScaling clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.