public void setEncrypted(Boolean encrypted) {
        this.encrypted = encrypted;
    }
<p>
Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support
Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.
</p>

@param encrypted
       Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that
       support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an
       encryption value.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/LaunchTemplateEbsBlockDeviceRequest.java