public ParentReferenceArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ParentReferenceArgs", "name");
            }
            if ($.resource == null) {
                throw new MissingRequiredPropertyException("ParentReferenceArgs", "resource");
            }
            return $;
        }
@param uid UID is the uid of the object being referenced.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/ParentReferenceArgs.java