Class AttachmentError
- java.lang.Object
-
- software.amazon.awssdk.services.networkmanager.model.AttachmentError
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AttachmentError.Builder,AttachmentError>
@Generated("software.amazon.awssdk:codegen") public final class AttachmentError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AttachmentError.Builder,AttachmentError>
Describes the error associated with an attachment request.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAttachmentError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentError.Builderbuilder()AttachmentErrorCodecode()The error code for the attachment request.StringcodeAsString()The error code for the attachment request.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()The message associated with the errorcode.StringrequestId()The ID of the attachment request.StringresourceArn()The ARN of the requested attachment resource.List<SdkField<?>>sdkFields()static Class<? extends AttachmentError.Builder>serializableBuilderClass()AttachmentError.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 AttachmentErrorCode code()
The error code for the attachment request.
If the service returns an enum value that is not available in the current SDK version,
codewill returnAttachmentErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The error code for the attachment request.
- See Also:
AttachmentErrorCode
-
codeAsString
public final String codeAsString()
The error code for the attachment request.
If the service returns an enum value that is not available in the current SDK version,
codewill returnAttachmentErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The error code for the attachment request.
- See Also:
AttachmentErrorCode
-
message
public final String message()
The message associated with the error
code.- Returns:
- The message associated with the error
code.
-
resourceArn
public final String resourceArn()
The ARN of the requested attachment resource.
- Returns:
- The ARN of the requested attachment resource.
-
requestId
public final String requestId()
The ID of the attachment request.
- Returns:
- The ID of the attachment request.
-
toBuilder
public AttachmentError.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AttachmentError.Builder,AttachmentError>
-
builder
public static AttachmentError.Builder builder()
-
serializableBuilderClass
public static Class<? extends AttachmentError.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.
-
-