public ServerSideEncryptionByDefault withSSEAlgorithm(SSEAlgorithm sseAlgorithm) {
        setSSEAlgorithm(sseAlgorithm == null ? null : sseAlgorithm.toString());
        return this;
    }
Sets the server-side encryption algorithm to use for the default encryption.

@param sseAlgorithm SSE algorithm to use.
@return This object for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ServerSideEncryptionByDefault.java