public AmazonS3EncryptionClientBuilder withEncryptionMaterials(EncryptionMaterialsProvider encryptionMaterials) {
        setEncryptionMaterials(encryptionMaterials);
        return this;
    }
Sets the encryption materials to be used to encrypt and decrypt data
@param encryptionMaterials A provider for the encryption materials to be used to encrypt and decrypt data.
@return this object for method chaining
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3EncryptionClientBuilder.java