public AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails withEncrypted(Boolean encrypted) {
        setEncrypted(encrypted);
        return this;
    }
<p>
Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support
Amazon EBS encryption. If you're 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're creating a volume from a snapshot, you can't specify an
       encryption value.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails.java