Class WorldFailure
- java.lang.Object
-
- software.amazon.awssdk.services.robomaker.model.WorldFailure
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<WorldFailure.Builder,WorldFailure>
@Generated("software.amazon.awssdk:codegen") public final class WorldFailure extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WorldFailure.Builder,WorldFailure>
Information about a failed world.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWorldFailure.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorldFailure.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)WorldGenerationJobErrorCodefailureCode()The failure code of the world export job if it failed:StringfailureCodeAsString()The failure code of the world export job if it failed:IntegerfailureCount()The number of failed worlds.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringsampleFailureReason()The sample reason why the world failed.List<SdkField<?>>sdkFields()static Class<? extends WorldFailure.Builder>serializableBuilderClass()WorldFailure.BuildertoBuilder()StringtoString()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
-
failureCode
public final WorldGenerationJobErrorCode failureCode()
The failure code of the world export job if it failed:
- InternalServiceError
-
Internal service error.
- LimitExceeded
-
The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
- ResourceNotFound
-
The specified resource could not be found.
- RequestThrottled
-
The request was throttled.
- InvalidInput
-
An input parameter in the request is not valid.
If the service returns an enum value that is not available in the current SDK version,
failureCodewill returnWorldGenerationJobErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureCodeAsString().- Returns:
- The failure code of the world export job if it failed:
- InternalServiceError
-
Internal service error.
- LimitExceeded
-
The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
- ResourceNotFound
-
The specified resource could not be found.
- RequestThrottled
-
The request was throttled.
- InvalidInput
-
An input parameter in the request is not valid.
- See Also:
WorldGenerationJobErrorCode
-
failureCodeAsString
public final String failureCodeAsString()
The failure code of the world export job if it failed:
- InternalServiceError
-
Internal service error.
- LimitExceeded
-
The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
- ResourceNotFound
-
The specified resource could not be found.
- RequestThrottled
-
The request was throttled.
- InvalidInput
-
An input parameter in the request is not valid.
If the service returns an enum value that is not available in the current SDK version,
failureCodewill returnWorldGenerationJobErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureCodeAsString().- Returns:
- The failure code of the world export job if it failed:
- InternalServiceError
-
Internal service error.
- LimitExceeded
-
The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
- ResourceNotFound
-
The specified resource could not be found.
- RequestThrottled
-
The request was throttled.
- InvalidInput
-
An input parameter in the request is not valid.
- See Also:
WorldGenerationJobErrorCode
-
sampleFailureReason
public final String sampleFailureReason()
The sample reason why the world failed. World errors are aggregated. A sample is used as the
sampleFailureReason.- Returns:
- The sample reason why the world failed. World errors are aggregated. A sample is used as the
sampleFailureReason.
-
failureCount
public final Integer failureCount()
The number of failed worlds.
- Returns:
- The number of failed worlds.
-
toBuilder
public WorldFailure.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<WorldFailure.Builder,WorldFailure>
-
builder
public static WorldFailure.Builder builder()
-
serializableBuilderClass
public static Class<? extends WorldFailure.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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.
-
-