@Generated(value="software.amazon.awssdk:codegen") public class FailureInfo extends Object implements StructuredPojo, ToCopyableBuilder<FailureInfo.Builder,FailureInfo>
Details of the common errors that all actions return.
Modifier and Type | Class and Description |
---|---|
static interface |
FailureInfo.Builder |
Modifier and Type | Method and Description |
---|---|
static FailureInfo.Builder |
builder() |
boolean |
equals(Object obj) |
ErrorCode |
errorCode()
The code of the common error.
|
String |
errorCodeAsString()
The code of the common error.
|
String |
errorMessage()
The message of the common error.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends FailureInfo.Builder> |
serializableBuilderClass() |
Integer |
statusCode()
The HTTP status code of the common error.
|
FailureInfo.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Integer statusCode()
The HTTP status code of the common error.
public ErrorCode errorCode()
The code of the common error. Valid values include InternalServiceException
,
InvalidParameterException
, and any valid error code returned by the AWS service that hosts the
resource that you want to tag.
If the service returns an enum value that is not available in the current SDK version, errorCode
will
return ErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
errorCodeAsString()
.
InternalServiceException
,
InvalidParameterException
, and any valid error code returned by the AWS service that hosts
the resource that you want to tag.ErrorCode
public String errorCodeAsString()
The code of the common error. Valid values include InternalServiceException
,
InvalidParameterException
, and any valid error code returned by the AWS service that hosts the
resource that you want to tag.
If the service returns an enum value that is not available in the current SDK version, errorCode
will
return ErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
errorCodeAsString()
.
InternalServiceException
,
InvalidParameterException
, and any valid error code returned by the AWS service that hosts
the resource that you want to tag.ErrorCode
public String errorMessage()
The message of the common error.
public FailureInfo.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<FailureInfo.Builder,FailureInfo>
public static FailureInfo.Builder builder()
public static Class<? extends FailureInfo.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.