// *** 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 com.pulumi.kubernetes.networking.v1alpha1.outputs.ParentReference;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class IPAddressSpec {
    /**
     * @return ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.
     * 
     */
    private @Nullable ParentReference parentRef;

    private IPAddressSpec() {}
    /**
     * @return ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.
     * 
     */
    public Optional<ParentReference> parentRef() {
        return Optional.ofNullable(this.parentRef);
    }

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

    public static Builder builder(IPAddressSpec defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ParentReference parentRef;
        public Builder() {}
        public Builder(IPAddressSpec defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.parentRef = defaults.parentRef;
        }

        @CustomType.Setter
        public Builder parentRef(@Nullable ParentReference parentRef) {
            this.parentRef = parentRef;
            return this;
        }
        public IPAddressSpec build() {
            final var o = new IPAddressSpec();
            o.parentRef = parentRef;
            return o;
        }
    }
}
