@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFleetError extends Object implements Serializable, Cloneable
Describes the instances that could not be launched by the fleet.
Constructor and Description |
---|
CreateFleetError() |
Modifier and Type | Method and Description |
---|---|
CreateFleetError |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code that indicates why the instance could not be launched.
|
String |
getErrorMessage()
The error message that describes why the instance could not be launched.
|
LaunchTemplateAndOverridesResponse |
getLaunchTemplateAndOverrides()
The launch templates and overrides that were used for launching the instances.
|
String |
getLifecycle()
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
|
int |
hashCode() |
void |
setErrorCode(String errorCode)
The error code that indicates why the instance could not be launched.
|
void |
setErrorMessage(String errorMessage)
The error message that describes why the instance could not be launched.
|
void |
setLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides)
The launch templates and overrides that were used for launching the instances.
|
void |
setLifecycle(String lifecycle)
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
|
String |
toString()
Returns a string representation of this object.
|
CreateFleetError |
withErrorCode(String errorCode)
The error code that indicates why the instance could not be launched.
|
CreateFleetError |
withErrorMessage(String errorMessage)
The error message that describes why the instance could not be launched.
|
CreateFleetError |
withLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides)
The launch templates and overrides that were used for launching the instances.
|
CreateFleetError |
withLifecycle(InstanceLifecycle lifecycle)
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
|
CreateFleetError |
withLifecycle(String lifecycle)
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
|
public void setLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides)
The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.
launchTemplateAndOverrides
- The launch templates and overrides that were used for launching the instances. The values that you specify
in the Overrides replace the values in the launch template.public LaunchTemplateAndOverridesResponse getLaunchTemplateAndOverrides()
The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.
public CreateFleetError withLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse launchTemplateAndOverrides)
The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.
launchTemplateAndOverrides
- The launch templates and overrides that were used for launching the instances. The values that you specify
in the Overrides replace the values in the launch template.public void setLifecycle(String lifecycle)
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
lifecycle
- Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.InstanceLifecycle
public String getLifecycle()
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
InstanceLifecycle
public CreateFleetError withLifecycle(String lifecycle)
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
lifecycle
- Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.InstanceLifecycle
public CreateFleetError withLifecycle(InstanceLifecycle lifecycle)
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
lifecycle
- Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.InstanceLifecycle
public void setErrorCode(String errorCode)
The error code that indicates why the instance could not be launched. For more information about error codes, see Error codes.
errorCode
- The error code that indicates why the instance could not be launched. For more information about error
codes, see Error
codes.public String getErrorCode()
The error code that indicates why the instance could not be launched. For more information about error codes, see Error codes.
public CreateFleetError withErrorCode(String errorCode)
The error code that indicates why the instance could not be launched. For more information about error codes, see Error codes.
errorCode
- The error code that indicates why the instance could not be launched. For more information about error
codes, see Error
codes.public void setErrorMessage(String errorMessage)
The error message that describes why the instance could not be launched. For more information about error messages, see Error codes.
errorMessage
- The error message that describes why the instance could not be launched. For more information about error
messages, see Error
codes.public String getErrorMessage()
The error message that describes why the instance could not be launched. For more information about error messages, see Error codes.
public CreateFleetError withErrorMessage(String errorMessage)
The error message that describes why the instance could not be launched. For more information about error messages, see Error codes.
errorMessage
- The error message that describes why the instance could not be launched. For more information about error
messages, see Error
codes.public String toString()
toString
in class Object
Object.toString()
public CreateFleetError clone()