// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.networking.v1alpha1.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ParentReferencePatch {
    /**
     * @return Group is the group of the object being referenced.
     * 
     */
    private @Nullable String group;
    /**
     * @return Name is the name of the object being referenced.
     * 
     */
    private @Nullable String name;
    /**
     * @return Namespace is the namespace of the object being referenced.
     * 
     */
    private @Nullable String namespace;
    /**
     * @return Resource is the resource of the object being referenced.
     * 
     */
    private @Nullable String resource;
    /**
     * @return UID is the uid of the object being referenced.
     * 
     */
    private @Nullable String uid;

    private ParentReferencePatch() {}
    /**
     * @return Group is the group of the object being referenced.
     * 
     */
    public Optional<String> group() {
        return Optional.ofNullable(this.group);
    }
    /**
     * @return Name is the name of the object being referenced.
     * 
     */
    public Optional<String> name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Namespace is the namespace of the object being referenced.
     * 
     */
    public Optional<String> namespace() {
        return Optional.ofNullable(this.namespace);
    }
    /**
     * @return Resource is the resource of the object being referenced.
     * 
     */
    public Optional<String> resource() {
        return Optional.ofNullable(this.resource);
    }
    /**
     * @return UID is the uid of the object being referenced.
     * 
     */
    public Optional<String> uid() {
        return Optional.ofNullable(this.uid);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ParentReferencePatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String group;
        private @Nullable String name;
        private @Nullable String namespace;
        private @Nullable String resource;
        private @Nullable String uid;
        public Builder() {}
        public Builder(ParentReferencePatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.group = defaults.group;
    	      this.name = defaults.name;
    	      this.namespace = defaults.namespace;
    	      this.resource = defaults.resource;
    	      this.uid = defaults.uid;
        }

        @CustomType.Setter
        public Builder group(@Nullable String group) {
            this.group = group;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder namespace(@Nullable String namespace) {
            this.namespace = namespace;
            return this;
        }
        @CustomType.Setter
        public Builder resource(@Nullable String resource) {
            this.resource = resource;
            return this;
        }
        @CustomType.Setter
        public Builder uid(@Nullable String uid) {
            this.uid = uid;
            return this;
        }
        public ParentReferencePatch build() {
            final var o = new ParentReferencePatch();
            o.group = group;
            o.name = name;
            o.namespace = namespace;
            o.resource = resource;
            o.uid = uid;
            return o;
        }
    }
}
