Class DescribeFleetError
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.DescribeFleetError
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DescribeFleetError.Builder,DescribeFleetError>
@Generated("software.amazon.awssdk:codegen") public final class DescribeFleetError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DescribeFleetError.Builder,DescribeFleetError>
Describes the instances that could not be launched by the fleet.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DescribeFleetError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescribeFleetError.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
errorCode()
The error code that indicates why the instance could not be launched.String
errorMessage()
The error message that describes why the instance could not be launched.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
LaunchTemplateAndOverridesResponse
launchTemplateAndOverrides()
The launch templates and overrides that were used for launching the instances.InstanceLifecycle
lifecycle()
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.String
lifecycleAsString()
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends DescribeFleetError.Builder>
serializableBuilderClass()
DescribeFleetError.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
launchTemplateAndOverrides
public final 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.
- Returns:
- 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.
-
lifecycle
public final InstanceLifecycle lifecycle()
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
If the service returns an enum value that is not available in the current SDK version,
lifecycle
will returnInstanceLifecycle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlifecycleAsString()
.- Returns:
- Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
- See Also:
InstanceLifecycle
-
lifecycleAsString
public final String lifecycleAsString()
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
If the service returns an enum value that is not available in the current SDK version,
lifecycle
will returnInstanceLifecycle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlifecycleAsString()
.- Returns:
- Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
- See Also:
InstanceLifecycle
-
errorCode
public final String errorCode()
The error code that indicates why the instance could not be launched. For more information about error codes, see Error codes.
- Returns:
- The error code that indicates why the instance could not be launched. For more information about error codes, see Error codes.
-
errorMessage
public final String errorMessage()
The error message that describes why the instance could not be launched. For more information about error messages, see Error codes.
- Returns:
- The error message that describes why the instance could not be launched. For more information about error messages, see Error codes.
-
toBuilder
public DescribeFleetError.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<DescribeFleetError.Builder,DescribeFleetError>
-
builder
public static DescribeFleetError.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeFleetError.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-