public Optional<String> resource() {
        return Optional.ofNullable(this.resource);
    }
@return Resource is the resource of the object being referenced.
sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ParentReferencePatch.java