// *** 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.discovery.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.discovery.v1.outputs.ForZonePatch;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class EndpointHintsPatch {
    /**
     * @return forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     * 
     */
    private @Nullable List<ForZonePatch> forZones;

    private EndpointHintsPatch() {}
    /**
     * @return forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     * 
     */
    public List<ForZonePatch> forZones() {
        return this.forZones == null ? List.of() : this.forZones;
    }

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

    public static Builder builder(EndpointHintsPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<ForZonePatch> forZones;
        public Builder() {}
        public Builder(EndpointHintsPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.forZones = defaults.forZones;
        }

        @CustomType.Setter
        public Builder forZones(@Nullable List<ForZonePatch> forZones) {
            this.forZones = forZones;
            return this;
        }
        public Builder forZones(ForZonePatch... forZones) {
            return forZones(List.of(forZones));
        }
        public EndpointHintsPatch build() {
            final var o = new EndpointHintsPatch();
            o.forZones = forZones;
            return o;
        }
    }
}
