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 ConstantsEnum ConstantDescriptionAlways create a new file.Create a new file if it doesn't exist, otherwise append to the existing file.Create a new file if it doesn't exist, otherwise replace the existing file.Write to an existing file at the specified position, defined by theS3MetaRequestOptions.withHttpRequest(software.amazon.awssdk.crt.http.HttpRequest). -
Method Summary
Modifier and TypeMethodDescriptiongetEnumValueFromInteger(int value) intReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATE_OR_REPLACE
Create a new file if it doesn't exist, otherwise replace the existing file. -
CREATE_NEW
Always create a new file. If the file already exists, AWS_ERROR_S3_RECV_FILE_EXISTS will be raised. -
CREATE_OR_APPEND
Create a new file if it doesn't exist, otherwise append to 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). 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 Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-