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

com.ovhcloud.pulumi.ovh.IpLoadBalancing.outputs.HttpFarmProbe Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.IpLoadBalancing.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class HttpFarmProbe {
    /**
     * @return Force use of SSL (TLS)
     * 
     */
    private @Nullable Boolean forceSsl;
    /**
     * @return probe interval, Value between 30 and 3600 seconds, default 30
     * 
     */
    private @Nullable Integer interval;
    /**
     * @return What to match `pattern` against (`contains`, `default`, `internal`, `matches`, `status`)
     * 
     */
    private @Nullable String match;
    /**
     * @return HTTP probe method (`GET`, `HEAD`, `OPTIONS`, `internal`)
     * 
     */
    private @Nullable String method;
    /**
     * @return Negate probe result
     * 
     */
    private @Nullable Boolean negate;
    /**
     * @return Pattern to match against `match`
     * 
     */
    private @Nullable String pattern;
    /**
     * @return Port for backends to receive traffic on.
     * 
     */
    private @Nullable Integer port;
    /**
     * @return Valid values : `http`, `internal`, `mysql`, `oco`, `pgsql`, `smtp`, `tcp`
     * 
     */
    private String type;
    /**
     * @return URL for HTTP probe type.
     * 
     */
    private @Nullable String url;

    private HttpFarmProbe() {}
    /**
     * @return Force use of SSL (TLS)
     * 
     */
    public Optional forceSsl() {
        return Optional.ofNullable(this.forceSsl);
    }
    /**
     * @return probe interval, Value between 30 and 3600 seconds, default 30
     * 
     */
    public Optional interval() {
        return Optional.ofNullable(this.interval);
    }
    /**
     * @return What to match `pattern` against (`contains`, `default`, `internal`, `matches`, `status`)
     * 
     */
    public Optional match() {
        return Optional.ofNullable(this.match);
    }
    /**
     * @return HTTP probe method (`GET`, `HEAD`, `OPTIONS`, `internal`)
     * 
     */
    public Optional method() {
        return Optional.ofNullable(this.method);
    }
    /**
     * @return Negate probe result
     * 
     */
    public Optional negate() {
        return Optional.ofNullable(this.negate);
    }
    /**
     * @return Pattern to match against `match`
     * 
     */
    public Optional pattern() {
        return Optional.ofNullable(this.pattern);
    }
    /**
     * @return Port for backends to receive traffic on.
     * 
     */
    public Optional port() {
        return Optional.ofNullable(this.port);
    }
    /**
     * @return Valid values : `http`, `internal`, `mysql`, `oco`, `pgsql`, `smtp`, `tcp`
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return URL for HTTP probe type.
     * 
     */
    public Optional url() {
        return Optional.ofNullable(this.url);
    }

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

    public static Builder builder(HttpFarmProbe defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean forceSsl;
        private @Nullable Integer interval;
        private @Nullable String match;
        private @Nullable String method;
        private @Nullable Boolean negate;
        private @Nullable String pattern;
        private @Nullable Integer port;
        private String type;
        private @Nullable String url;
        public Builder() {}
        public Builder(HttpFarmProbe defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.forceSsl = defaults.forceSsl;
    	      this.interval = defaults.interval;
    	      this.match = defaults.match;
    	      this.method = defaults.method;
    	      this.negate = defaults.negate;
    	      this.pattern = defaults.pattern;
    	      this.port = defaults.port;
    	      this.type = defaults.type;
    	      this.url = defaults.url;
        }

        @CustomType.Setter
        public Builder forceSsl(@Nullable Boolean forceSsl) {

            this.forceSsl = forceSsl;
            return this;
        }
        @CustomType.Setter
        public Builder interval(@Nullable Integer interval) {

            this.interval = interval;
            return this;
        }
        @CustomType.Setter
        public Builder match(@Nullable String match) {

            this.match = match;
            return this;
        }
        @CustomType.Setter
        public Builder method(@Nullable String method) {

            this.method = method;
            return this;
        }
        @CustomType.Setter
        public Builder negate(@Nullable Boolean negate) {

            this.negate = negate;
            return this;
        }
        @CustomType.Setter
        public Builder pattern(@Nullable String pattern) {

            this.pattern = pattern;
            return this;
        }
        @CustomType.Setter
        public Builder port(@Nullable Integer port) {

            this.port = port;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("HttpFarmProbe", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder url(@Nullable String url) {

            this.url = url;
            return this;
        }
        public HttpFarmProbe build() {
            final var _resultValue = new HttpFarmProbe();
            _resultValue.forceSsl = forceSsl;
            _resultValue.interval = interval;
            _resultValue.match = match;
            _resultValue.method = method;
            _resultValue.negate = negate;
            _resultValue.pattern = pattern;
            _resultValue.port = port;
            _resultValue.type = type;
            _resultValue.url = url;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy