@Generated(value="software.amazon.awssdk:codegen") public final class CodeSnippetError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CodeSnippetError.Builder,CodeSnippetError>
Contains information about any errors encountered while trying to retrieve a code snippet.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CodeSnippetError.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CodeSnippetError.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
CodeSnippetErrorCode |
errorCode()
The error code for the error that prevented a code snippet from being retrieved.
|
String |
errorCodeAsString()
The error code for the error that prevented a code snippet from being retrieved.
|
String |
errorMessage()
The error message received when Amazon Inspector failed to retrieve a code snippet.
|
String |
findingArn()
The ARN of the finding that a code snippet couldn't be retrieved for.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CodeSnippetError.Builder> |
serializableBuilderClass() |
CodeSnippetError.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final CodeSnippetErrorCode errorCode()
The error code for the error that prevented a code snippet from being retrieved.
If the service returns an enum value that is not available in the current SDK version, errorCode will
return CodeSnippetErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from errorCodeAsString().
CodeSnippetErrorCodepublic final String errorCodeAsString()
The error code for the error that prevented a code snippet from being retrieved.
If the service returns an enum value that is not available in the current SDK version, errorCode will
return CodeSnippetErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from errorCodeAsString().
CodeSnippetErrorCodepublic final String errorMessage()
The error message received when Amazon Inspector failed to retrieve a code snippet.
public final String findingArn()
The ARN of the finding that a code snippet couldn't be retrieved for.
public CodeSnippetError.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CodeSnippetError.Builder,CodeSnippetError>public static CodeSnippetError.Builder builder()
public static Class<? extends CodeSnippetError.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.