public enum SSEAlgorithm extends java.lang.Enum<SSEAlgorithm>
Modifier and Type | Method and Description |
---|---|
static SSEAlgorithm |
fromString(java.lang.String algorithm)
Returns the SSEAlgorithm enum corresponding to the given string;
or null if and only if the given algorithm is null.
|
java.lang.String |
getAlgorithm() |
static SSEAlgorithm |
getDefault()
Returns the default server side encryption algorithm, which is AES256.
|
java.lang.String |
toString() |
static SSEAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SSEAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SSEAlgorithm AES256
public static final SSEAlgorithm KMS
public static SSEAlgorithm[] values()
for (SSEAlgorithm c : SSEAlgorithm.values()) System.out.println(c);
public static SSEAlgorithm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getAlgorithm()
public java.lang.String toString()
toString
in class java.lang.Enum<SSEAlgorithm>
public static SSEAlgorithm fromString(java.lang.String algorithm)
java.lang.IllegalArgumentException
- if the specified algorithm is not
supported.public static SSEAlgorithm getDefault()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.