@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplate extends Object implements Serializable, Cloneable
Use this structure to specify the launch templates and instance types (overrides) for a mixed instances policy.
| Constructor and Description |
|---|
LaunchTemplate() |
| Modifier and Type | Method and Description |
|---|---|
LaunchTemplate |
clone() |
boolean |
equals(Object obj) |
LaunchTemplateSpecification |
getLaunchTemplateSpecification()
The launch template.
|
List<LaunchTemplateOverrides> |
getOverrides()
Any properties that you specify override the same properties in the launch template.
|
int |
hashCode() |
void |
setLaunchTemplateSpecification(LaunchTemplateSpecification launchTemplateSpecification)
The launch template.
|
void |
setOverrides(Collection<LaunchTemplateOverrides> overrides)
Any properties that you specify override the same properties in the launch template.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplate |
withLaunchTemplateSpecification(LaunchTemplateSpecification launchTemplateSpecification)
The launch template.
|
LaunchTemplate |
withOverrides(Collection<LaunchTemplateOverrides> overrides)
Any properties that you specify override the same properties in the launch template.
|
LaunchTemplate |
withOverrides(LaunchTemplateOverrides... overrides)
Any properties that you specify override the same properties in the launch template.
|
public void setLaunchTemplateSpecification(LaunchTemplateSpecification launchTemplateSpecification)
The launch template.
launchTemplateSpecification - The launch template.public LaunchTemplateSpecification getLaunchTemplateSpecification()
The launch template.
public LaunchTemplate withLaunchTemplateSpecification(LaunchTemplateSpecification launchTemplateSpecification)
The launch template.
launchTemplateSpecification - The launch template.public List<LaunchTemplateOverrides> getOverrides()
Any properties that you specify override the same properties in the launch template.
public void setOverrides(Collection<LaunchTemplateOverrides> overrides)
Any properties that you specify override the same properties in the launch template.
overrides - Any properties that you specify override the same properties in the launch template.public LaunchTemplate withOverrides(LaunchTemplateOverrides... overrides)
Any properties that you specify override the same properties in the launch template.
NOTE: This method appends the values to the existing list (if any). Use
setOverrides(java.util.Collection) or withOverrides(java.util.Collection) if you want to
override the existing values.
overrides - Any properties that you specify override the same properties in the launch template.public LaunchTemplate withOverrides(Collection<LaunchTemplateOverrides> overrides)
Any properties that you specify override the same properties in the launch template.
overrides - Any properties that you specify override the same properties in the launch template.public String toString()
toString in class ObjectObject.toString()public LaunchTemplate clone()