Class JobError
- java.lang.Object
-
- software.amazon.awssdk.services.dataexchange.model.JobError
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<JobError.Builder,JobError>
@Generated("software.amazon.awssdk:codegen") public final class JobError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<JobError.Builder,JobError>
An error that occurred with the job request.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
JobError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JobError.Builder
builder()
Code
code()
The code for the job error.String
codeAsString()
The code for the job error.Details
details()
The details about the job error.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
JobErrorLimitName
limitName()
The name of the limit that was reached.String
limitNameAsString()
The name of the limit that was reached.Double
limitValue()
The value of the exceeded limit.String
message()
The message related to the job error.String
resourceId()
The unique identifier for the resource related to the error.JobErrorResourceTypes
resourceType()
The type of resource related to the error.String
resourceTypeAsString()
The type of resource related to the error.List<SdkField<?>>
sdkFields()
static Class<? extends JobError.Builder>
serializableBuilderClass()
JobError.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
-
code
public final Code code()
The code for the job error.
If the service returns an enum value that is not available in the current SDK version,
code
will returnCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcodeAsString()
.- Returns:
- The code for the job error.
- See Also:
Code
-
codeAsString
public final String codeAsString()
The code for the job error.
If the service returns an enum value that is not available in the current SDK version,
code
will returnCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcodeAsString()
.- Returns:
- The code for the job error.
- See Also:
Code
-
details
public final Details details()
The details about the job error.
- Returns:
- The details about the job error.
-
limitName
public final JobErrorLimitName limitName()
The name of the limit that was reached.
If the service returns an enum value that is not available in the current SDK version,
limitName
will returnJobErrorLimitName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlimitNameAsString()
.- Returns:
- The name of the limit that was reached.
- See Also:
JobErrorLimitName
-
limitNameAsString
public final String limitNameAsString()
The name of the limit that was reached.
If the service returns an enum value that is not available in the current SDK version,
limitName
will returnJobErrorLimitName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlimitNameAsString()
.- Returns:
- The name of the limit that was reached.
- See Also:
JobErrorLimitName
-
limitValue
public final Double limitValue()
The value of the exceeded limit.
- Returns:
- The value of the exceeded limit.
-
message
public final String message()
The message related to the job error.
- Returns:
- The message related to the job error.
-
resourceId
public final String resourceId()
The unique identifier for the resource related to the error.
- Returns:
- The unique identifier for the resource related to the error.
-
resourceType
public final JobErrorResourceTypes resourceType()
The type of resource related to the error.
If the service returns an enum value that is not available in the current SDK version,
resourceType
will returnJobErrorResourceTypes.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromresourceTypeAsString()
.- Returns:
- The type of resource related to the error.
- See Also:
JobErrorResourceTypes
-
resourceTypeAsString
public final String resourceTypeAsString()
The type of resource related to the error.
If the service returns an enum value that is not available in the current SDK version,
resourceType
will returnJobErrorResourceTypes.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromresourceTypeAsString()
.- Returns:
- The type of resource related to the error.
- See Also:
JobErrorResourceTypes
-
toBuilder
public JobError.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<JobError.Builder,JobError>
-
builder
public static JobError.Builder builder()
-
serializableBuilderClass
public static Class<? extends JobError.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.
-
-