All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.discovery.v1.inputs.EndpointHintsArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
Show newest version
// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.discovery.v1.inputs.ForZoneArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * EndpointHints provides hints describing how an endpoint should be consumed.
 * 
 */
public final class EndpointHintsArgs extends com.pulumi.resources.ResourceArgs {

    public static final EndpointHintsArgs Empty = new EndpointHintsArgs();

    /**
     * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     * 
     */
    @Import(name="forZones")
    private @Nullable Output> forZones;

    /**
     * @return forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     * 
     */
    public Optional>> forZones() {
        return Optional.ofNullable(this.forZones);
    }

    private EndpointHintsArgs() {}

    private EndpointHintsArgs(EndpointHintsArgs $) {
        this.forZones = $.forZones;
    }

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

    public static final class Builder {
        private EndpointHintsArgs $;

        public Builder() {
            $ = new EndpointHintsArgs();
        }

        public Builder(EndpointHintsArgs defaults) {
            $ = new EndpointHintsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param forZones forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
         * 
         * @return builder
         * 
         */
        public Builder forZones(@Nullable Output> forZones) {
            $.forZones = forZones;
            return this;
        }

        /**
         * @param forZones forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
         * 
         * @return builder
         * 
         */
        public Builder forZones(List forZones) {
            return forZones(Output.of(forZones));
        }

        /**
         * @param forZones forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
         * 
         * @return builder
         * 
         */
        public Builder forZones(ForZoneArgs... forZones) {
            return forZones(List.of(forZones));
        }

        public EndpointHintsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy