public enum AmazonS3APIErrorCodes extends Enum<AmazonS3APIErrorCodes>
https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList
Enum Constant and Description |
---|
BUCKET_ALREADY_EXISTS
Error for case when bucket already exists without acl
|
BUCKET_ALREADY_OWNED_BY_YOU
Error for case when bucket already exists with acl
|
NO_SUCH_BUCKET
Error when bucket does not exists
|
NO_SUCH_KEY
Error when object does not exists
|
NOT_FOUND
Error when bucket or object does not exists
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Gets the errorCode
|
static AmazonS3APIErrorCodes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AmazonS3APIErrorCodes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AmazonS3APIErrorCodes BUCKET_ALREADY_EXISTS
public static final AmazonS3APIErrorCodes BUCKET_ALREADY_OWNED_BY_YOU
public static final AmazonS3APIErrorCodes NO_SUCH_BUCKET
public static final AmazonS3APIErrorCodes NO_SUCH_KEY
public static final AmazonS3APIErrorCodes NOT_FOUND
public static AmazonS3APIErrorCodes[] values()
for (AmazonS3APIErrorCodes c : AmazonS3APIErrorCodes.values()) System.out.println(c);
public static AmazonS3APIErrorCodes valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getErrorCode()
Copyright © 2019 Vitam. All rights reserved.