public UpdateEncryptionKeyRequest withResourceType(ResourceType resourceType) {
        this.resourceType = resourceType.toString();
        return this;
    }
<p>
The resource type for the encryption key.
</p>

@param resourceType
       The resource type for the encryption key.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceType
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/UpdateEncryptionKeyRequest.java