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

com.pulumi.kubernetes.discovery.v1.inputs.EndpointHintsPatchArgs 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.ForZonePatchArgs;
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 EndpointHintsPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final EndpointHintsPatchArgs Empty = new EndpointHintsPatchArgs();

    /**
     * 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 EndpointHintsPatchArgs() {}

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

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

    public static final class Builder {
        private EndpointHintsPatchArgs $;

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

        public Builder(EndpointHintsPatchArgs defaults) {
            $ = new EndpointHintsPatchArgs(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(ForZonePatchArgs... forZones) {
            return forZones(List.of(forZones));
        }

        public EndpointHintsPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy