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

com.pulumi.azurenative.appplatform.inputs.HTTPGetActionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.appplatform.inputs;

import com.pulumi.azurenative.appplatform.enums.HTTPSchemeType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * HTTPGetAction describes an action based on HTTP Get requests.
 * 
 */
public final class HTTPGetActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final HTTPGetActionArgs Empty = new HTTPGetActionArgs();

    /**
     * Path to access on the HTTP server.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return Path to access on the HTTP server.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * Scheme to use for connecting to the host. Defaults to HTTP.
     * 
     * Possible enum values:
     *  - `"HTTP"` means that the scheme used will be http://
     *  - `"HTTPS"` means that the scheme used will be https://
     * 
     */
    @Import(name="scheme")
    private @Nullable Output> scheme;

    /**
     * @return Scheme to use for connecting to the host. Defaults to HTTP.
     * 
     * Possible enum values:
     *  - `"HTTP"` means that the scheme used will be http://
     *  - `"HTTPS"` means that the scheme used will be https://
     * 
     */
    public Optional>> scheme() {
        return Optional.ofNullable(this.scheme);
    }

    /**
     * The type of the action to take to perform the health check.
     * Expected value is 'HTTPGetAction'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of the action to take to perform the health check.
     * Expected value is 'HTTPGetAction'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private HTTPGetActionArgs() {}

    private HTTPGetActionArgs(HTTPGetActionArgs $) {
        this.path = $.path;
        this.scheme = $.scheme;
        this.type = $.type;
    }

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

    public static final class Builder {
        private HTTPGetActionArgs $;

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

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

        /**
         * @param path Path to access on the HTTP server.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Path to access on the HTTP server.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param scheme Scheme to use for connecting to the host. Defaults to HTTP.
         * 
         * Possible enum values:
         *  - `"HTTP"` means that the scheme used will be http://
         *  - `"HTTPS"` means that the scheme used will be https://
         * 
         * @return builder
         * 
         */
        public Builder scheme(@Nullable Output> scheme) {
            $.scheme = scheme;
            return this;
        }

        /**
         * @param scheme Scheme to use for connecting to the host. Defaults to HTTP.
         * 
         * Possible enum values:
         *  - `"HTTP"` means that the scheme used will be http://
         *  - `"HTTPS"` means that the scheme used will be https://
         * 
         * @return builder
         * 
         */
        public Builder scheme(Either scheme) {
            return scheme(Output.of(scheme));
        }

        /**
         * @param scheme Scheme to use for connecting to the host. Defaults to HTTP.
         * 
         * Possible enum values:
         *  - `"HTTP"` means that the scheme used will be http://
         *  - `"HTTPS"` means that the scheme used will be https://
         * 
         * @return builder
         * 
         */
        public Builder scheme(String scheme) {
            return scheme(Either.ofLeft(scheme));
        }

        /**
         * @param scheme Scheme to use for connecting to the host. Defaults to HTTP.
         * 
         * Possible enum values:
         *  - `"HTTP"` means that the scheme used will be http://
         *  - `"HTTPS"` means that the scheme used will be https://
         * 
         * @return builder
         * 
         */
        public Builder scheme(HTTPSchemeType scheme) {
            return scheme(Either.ofRight(scheme));
        }

        /**
         * @param type The type of the action to take to perform the health check.
         * Expected value is 'HTTPGetAction'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the action to take to perform the health check.
         * Expected value is 'HTTPGetAction'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public HTTPGetActionArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy