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

com.pulumi.kong.inputs.UpstreamHealthchecksPassiveHealthyArgs Maven / Gradle / Ivy

There is a newer version: 4.6.0-alpha.1731736524
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.kong.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class UpstreamHealthchecksPassiveHealthyArgs extends com.pulumi.resources.ResourceArgs {

    public static final UpstreamHealthchecksPassiveHealthyArgs Empty = new UpstreamHealthchecksPassiveHealthyArgs();

    @Import(name="httpStatuses")
    private @Nullable Output> httpStatuses;

    public Optional>> httpStatuses() {
        return Optional.ofNullable(this.httpStatuses);
    }

    @Import(name="successes")
    private @Nullable Output successes;

    public Optional> successes() {
        return Optional.ofNullable(this.successes);
    }

    private UpstreamHealthchecksPassiveHealthyArgs() {}

    private UpstreamHealthchecksPassiveHealthyArgs(UpstreamHealthchecksPassiveHealthyArgs $) {
        this.httpStatuses = $.httpStatuses;
        this.successes = $.successes;
    }

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

    public static final class Builder {
        private UpstreamHealthchecksPassiveHealthyArgs $;

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

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

        public Builder httpStatuses(@Nullable Output> httpStatuses) {
            $.httpStatuses = httpStatuses;
            return this;
        }

        public Builder httpStatuses(List httpStatuses) {
            return httpStatuses(Output.of(httpStatuses));
        }

        public Builder httpStatuses(Integer... httpStatuses) {
            return httpStatuses(List.of(httpStatuses));
        }

        public Builder successes(@Nullable Output successes) {
            $.successes = successes;
            return this;
        }

        public Builder successes(Integer successes) {
            return successes(Output.of(successes));
        }

        public UpstreamHealthchecksPassiveHealthyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy