public void setEncrypted(Boolean encrypted) {
        this.encrypted = encrypted;
    }
<p>
Indicates whether the volume should be encrypted. The effect of setting the encryption state to <code>true</code>
depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether
encryption by default is enabled. For more information, see <a
href="https://docs.aws.amazon.com/ebs/latest/userguide/work-with-ebs-encr.html#encryption-by-default">Encryption
by default</a> in the <i>Amazon EBS User Guide</i>.
</p>
<p>
Encrypted Amazon EBS volumes must be attached to instances that support Amazon EBS encryption. For more
information, see <a href=
"https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption-requirements.html#ebs-encryption_supported_instances"
>Supported instance types</a>.
</p>

@param encrypted
       Indicates whether the volume should be encrypted. The effect of setting the encryption state to
       <code>true</code> depends on the volume origin (new or from a snapshot), starting encryption state,
       ownership, and whether encryption by default is enabled. For more information, see <a
       href="https://docs.aws.amazon.com/ebs/latest/userguide/work-with-ebs-encr.html#encryption-by-default"
       >Encryption by default</a> in the <i>Amazon EBS User Guide</i>.</p>
       <p>
       Encrypted Amazon EBS volumes must be attached to instances that support Amazon EBS encryption. For more
       information, see <a href=
       "https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption-requirements.html#ebs-encryption_supported_instances"
       >Supported instance types</a>.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateVolumeRequest.java