@Generated(value="com.ibm.cos.v2:codegen") public enum EncodingType extends Enum<EncodingType>
Encoding type used by Amazon S3 to encode the object keys in the response. Responses are encoded only in UTF-8. An object key can contain any Unicode character. However, the XML 1.0 parser can't parse certain characters, such as characters with an ASCII value from 0 to 10. For characters that aren't supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. For more information about characters to avoid in object key names, see Object key naming guidelines.
When using the URL encoding type, non-ASCII characters that are used in an object's key name will be percent-encoded
according to UTF-8 code values. For example, the object test_file(3).png will appear as
test_file%283%29.png.
| Enum Constant and Description |
|---|
UNKNOWN_TO_SDK_VERSION |
URL |
| Modifier and Type | Method and Description |
|---|---|
static EncodingType |
fromValue(String value)
Use this in place of valueOf to convert the raw string returned by the service into the enum value.
|
static Set<EncodingType> |
knownValues()
|
String |
toString() |
static EncodingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncodingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncodingType URL
public static final EncodingType UNKNOWN_TO_SDK_VERSION
public static EncodingType[] values()
for (EncodingType c : EncodingType.values()) System.out.println(c);
public static EncodingType 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 toString()
toString in class Enum<EncodingType>public static EncodingType fromValue(String value)
value - real valuepublic static Set<EncodingType> knownValues()
values() to return a Set of all values known to the SDK. This will return
all known enum values except UNKNOWN_TO_SDK_VERSION.Set of known EncodingTypesCopyright © 2026. All rights reserved.