Package software.amazon.awssdk.crt.s3
Enum S3MetaRequestOptions.ResponseFileOption
- java.lang.Object
-
- java.lang.Enum<S3MetaRequestOptions.ResponseFileOption>
-
- software.amazon.awssdk.crt.s3.S3MetaRequestOptions.ResponseFileOption
-
- All Implemented Interfaces:
Serializable
,Comparable<S3MetaRequestOptions.ResponseFileOption>
- Enclosing class:
- S3MetaRequestOptions
public static enum S3MetaRequestOptions.ResponseFileOption extends Enum<S3MetaRequestOptions.ResponseFileOption>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_NEW
Always create a new file.CREATE_OR_APPEND
Create a new file if it doesn't exist, otherwise append to the existing file.CREATE_OR_REPLACE
Create a new file if it doesn't exist, otherwise replace the existing file.WRITE_TO_POSITION
Write to an existing file at the specified position, defined by theS3MetaRequestOptions.withHttpRequest(software.amazon.awssdk.crt.http.HttpRequest)
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static S3MetaRequestOptions.ResponseFileOption
getEnumValueFromInteger(int value)
int
getNativeValue()
static S3MetaRequestOptions.ResponseFileOption
valueOf(String name)
Returns the enum constant of this type with the specified name.static S3MetaRequestOptions.ResponseFileOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_OR_REPLACE
public static final S3MetaRequestOptions.ResponseFileOption CREATE_OR_REPLACE
Create a new file if it doesn't exist, otherwise replace the existing file.
-
CREATE_NEW
public static final S3MetaRequestOptions.ResponseFileOption CREATE_NEW
Always create a new file. If the file already exists, AWS_ERROR_S3_RECV_FILE_EXISTS will be raised.
-
CREATE_OR_APPEND
public static final S3MetaRequestOptions.ResponseFileOption CREATE_OR_APPEND
Create a new file if it doesn't exist, otherwise append to the existing file.
-
WRITE_TO_POSITION
public static final S3MetaRequestOptions.ResponseFileOption WRITE_TO_POSITION
Write to an existing file at the specified position, defined by theS3MetaRequestOptions.withHttpRequest(software.amazon.awssdk.crt.http.HttpRequest)
. If the file does not exist, AWS_ERROR_S3_RECV_FILE_NOT_EXISTS will be raised. IfS3MetaRequestOptions.withHttpRequest(software.amazon.awssdk.crt.http.HttpRequest)
is not configured, start overwriting data at the beginning of the file (byte 0).
-
-
Method Detail
-
values
public static S3MetaRequestOptions.ResponseFileOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (S3MetaRequestOptions.ResponseFileOption c : S3MetaRequestOptions.ResponseFileOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static S3MetaRequestOptions.ResponseFileOption valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNativeValue
public int getNativeValue()
-
getEnumValueFromInteger
public static S3MetaRequestOptions.ResponseFileOption getEnumValueFromInteger(int value)
-
-