public AmazonS3EncryptionClientV2Builder withCryptoConfiguration(CryptoConfigurationV2 cryptoConfig) {
        setCryptoConfiguration(cryptoConfig);
        return this;
    }
Sets the crypto configuration whose parameters will be used to encrypt and decrypt data.
@param cryptoConfig crypto configuration
@return this object for method chaining
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3EncryptionClientV2Builder.java