public Boolean getEncrypted() {
        return this.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>

@return 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