@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateOverrides extends Object implements Serializable, Cloneable
Describes an override for a launch template. Currently, the only supported override is instance type.
The maximum number of instance type overrides that can be associated with an Auto Scaling group is 20.
Constructor and Description |
---|
LaunchTemplateOverrides() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateOverrides |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceType()
The instance type.
|
String |
getWeightedCapacity()
The number of capacity units, which gives the instance type a proportional weight to other instance types.
|
int |
hashCode() |
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setWeightedCapacity(String weightedCapacity)
The number of capacity units, which gives the instance type a proportional weight to other instance types.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateOverrides |
withInstanceType(String instanceType)
The instance type.
|
LaunchTemplateOverrides |
withWeightedCapacity(String weightedCapacity)
The number of capacity units, which gives the instance type a proportional weight to other instance types.
|
public void setInstanceType(String instanceType)
The instance type. You must use an instance type that is supported in your requested Region and Availability Zones.
For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type. You must use an instance type that is supported in your requested Region and
Availability Zones.
For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
public String getInstanceType()
The instance type. You must use an instance type that is supported in your requested Region and Availability Zones.
For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
public LaunchTemplateOverrides withInstanceType(String instanceType)
The instance type. You must use an instance type that is supported in your requested Region and Availability Zones.
For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type. You must use an instance type that is supported in your requested Region and
Availability Zones.
For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.
public void setWeightedCapacity(String weightedCapacity)
The number of capacity units, which gives the instance type a proportional weight to other instance types. For example, larger instance types are generally weighted more than smaller instance types. These are the same units that you chose to set the desired capacity in terms of instances, or a performance attribute such as vCPUs, memory, or I/O.
For more information, see Instance Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
weightedCapacity
- The number of capacity units, which gives the instance type a proportional weight to other instance types.
For example, larger instance types are generally weighted more than smaller instance types. These are the
same units that you chose to set the desired capacity in terms of instances, or a performance attribute
such as vCPUs, memory, or I/O.
For more information, see Instance Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
public String getWeightedCapacity()
The number of capacity units, which gives the instance type a proportional weight to other instance types. For example, larger instance types are generally weighted more than smaller instance types. These are the same units that you chose to set the desired capacity in terms of instances, or a performance attribute such as vCPUs, memory, or I/O.
For more information, see Instance Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
For more information, see Instance Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
public LaunchTemplateOverrides withWeightedCapacity(String weightedCapacity)
The number of capacity units, which gives the instance type a proportional weight to other instance types. For example, larger instance types are generally weighted more than smaller instance types. These are the same units that you chose to set the desired capacity in terms of instances, or a performance attribute such as vCPUs, memory, or I/O.
For more information, see Instance Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
weightedCapacity
- The number of capacity units, which gives the instance type a proportional weight to other instance types.
For example, larger instance types are generally weighted more than smaller instance types. These are the
same units that you chose to set the desired capacity in terms of instances, or a performance attribute
such as vCPUs, memory, or I/O.
For more information, see Instance Weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Valid Range: Minimum value of 1. Maximum value of 999.
public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateOverrides clone()