Class JobError
- java.lang.Object
-
- software.amazon.awssdk.services.accessanalyzer.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>
Contains the details about the policy generation error.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJobError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JobError.Builderbuilder()JobErrorCodecode()The job error code.StringcodeAsString()The job error code.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()Specific information about the error.List<SdkField<?>>sdkFields()static Class<? extends JobError.Builder>serializableBuilderClass()JobError.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
-
code
public final JobErrorCode code()
The job error code.
If the service returns an enum value that is not available in the current SDK version,
codewill returnJobErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The job error code.
- See Also:
JobErrorCode
-
codeAsString
public final String codeAsString()
The job error code.
If the service returns an enum value that is not available in the current SDK version,
codewill returnJobErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The job error code.
- See Also:
JobErrorCode
-
message
public final String message()
Specific information about the error. For example, which service quota was exceeded or which resource was not found.
- Returns:
- Specific information about the error. For example, which service quota was exceeded or which resource was not found.
-
toBuilder
public JobError.Builder toBuilder()
- Specified by:
toBuilderin 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:
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.
-
-