public Component withEncrypted(Boolean encrypted) {
        setEncrypted(encrypted);
        return this;
    }
<p>
The encryption status of the component.
</p>

@param encrypted
       The encryption status of the component.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/Component.java