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

com.pulumi.azure.network.outputs.GetTrafficManagerProfileMonitorConfig Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network.outputs;

import com.pulumi.azure.network.outputs.GetTrafficManagerProfileMonitorConfigCustomHeader;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetTrafficManagerProfileMonitorConfig {
    /**
     * @return One or more `custom_header` blocks as defined below.
     * 
     */
    private List customHeaders;
    /**
     * @return A list of status code ranges.
     * 
     */
    private List expectedStatusCodeRanges;
    /**
     * @return The interval used to check the endpoint health from a Traffic Manager probing agent.
     * 
     */
    private Integer intervalInSeconds;
    /**
     * @return The path used by the monitoring checks.
     * 
     */
    private String path;
    /**
     * @return The port number used by the monitoring checks.
     * 
     */
    private Integer port;
    /**
     * @return The protocol used by the monitoring checks.
     * 
     */
    private String protocol;
    /**
     * @return The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint.
     * 
     */
    private Integer timeoutInSeconds;
    /**
     * @return The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy.
     * 
     */
    private Integer toleratedNumberOfFailures;

    private GetTrafficManagerProfileMonitorConfig() {}
    /**
     * @return One or more `custom_header` blocks as defined below.
     * 
     */
    public List customHeaders() {
        return this.customHeaders;
    }
    /**
     * @return A list of status code ranges.
     * 
     */
    public List expectedStatusCodeRanges() {
        return this.expectedStatusCodeRanges;
    }
    /**
     * @return The interval used to check the endpoint health from a Traffic Manager probing agent.
     * 
     */
    public Integer intervalInSeconds() {
        return this.intervalInSeconds;
    }
    /**
     * @return The path used by the monitoring checks.
     * 
     */
    public String path() {
        return this.path;
    }
    /**
     * @return The port number used by the monitoring checks.
     * 
     */
    public Integer port() {
        return this.port;
    }
    /**
     * @return The protocol used by the monitoring checks.
     * 
     */
    public String protocol() {
        return this.protocol;
    }
    /**
     * @return The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint.
     * 
     */
    public Integer timeoutInSeconds() {
        return this.timeoutInSeconds;
    }
    /**
     * @return The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy.
     * 
     */
    public Integer toleratedNumberOfFailures() {
        return this.toleratedNumberOfFailures;
    }

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

    public static Builder builder(GetTrafficManagerProfileMonitorConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List customHeaders;
        private List expectedStatusCodeRanges;
        private Integer intervalInSeconds;
        private String path;
        private Integer port;
        private String protocol;
        private Integer timeoutInSeconds;
        private Integer toleratedNumberOfFailures;
        public Builder() {}
        public Builder(GetTrafficManagerProfileMonitorConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.customHeaders = defaults.customHeaders;
    	      this.expectedStatusCodeRanges = defaults.expectedStatusCodeRanges;
    	      this.intervalInSeconds = defaults.intervalInSeconds;
    	      this.path = defaults.path;
    	      this.port = defaults.port;
    	      this.protocol = defaults.protocol;
    	      this.timeoutInSeconds = defaults.timeoutInSeconds;
    	      this.toleratedNumberOfFailures = defaults.toleratedNumberOfFailures;
        }

        @CustomType.Setter
        public Builder customHeaders(List customHeaders) {
            if (customHeaders == null) {
              throw new MissingRequiredPropertyException("GetTrafficManagerProfileMonitorConfig", "customHeaders");
            }
            this.customHeaders = customHeaders;
            return this;
        }
        public Builder customHeaders(GetTrafficManagerProfileMonitorConfigCustomHeader... customHeaders) {
            return customHeaders(List.of(customHeaders));
        }
        @CustomType.Setter
        public Builder expectedStatusCodeRanges(List expectedStatusCodeRanges) {
            if (expectedStatusCodeRanges == null) {
              throw new MissingRequiredPropertyException("GetTrafficManagerProfileMonitorConfig", "expectedStatusCodeRanges");
            }
            this.expectedStatusCodeRanges = expectedStatusCodeRanges;
            return this;
        }
        public Builder expectedStatusCodeRanges(String... expectedStatusCodeRanges) {
            return expectedStatusCodeRanges(List.of(expectedStatusCodeRanges));
        }
        @CustomType.Setter
        public Builder intervalInSeconds(Integer intervalInSeconds) {
            if (intervalInSeconds == null) {
              throw new MissingRequiredPropertyException("GetTrafficManagerProfileMonitorConfig", "intervalInSeconds");
            }
            this.intervalInSeconds = intervalInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder path(String path) {
            if (path == null) {
              throw new MissingRequiredPropertyException("GetTrafficManagerProfileMonitorConfig", "path");
            }
            this.path = path;
            return this;
        }
        @CustomType.Setter
        public Builder port(Integer port) {
            if (port == null) {
              throw new MissingRequiredPropertyException("GetTrafficManagerProfileMonitorConfig", "port");
            }
            this.port = port;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(String protocol) {
            if (protocol == null) {
              throw new MissingRequiredPropertyException("GetTrafficManagerProfileMonitorConfig", "protocol");
            }
            this.protocol = protocol;
            return this;
        }
        @CustomType.Setter
        public Builder timeoutInSeconds(Integer timeoutInSeconds) {
            if (timeoutInSeconds == null) {
              throw new MissingRequiredPropertyException("GetTrafficManagerProfileMonitorConfig", "timeoutInSeconds");
            }
            this.timeoutInSeconds = timeoutInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder toleratedNumberOfFailures(Integer toleratedNumberOfFailures) {
            if (toleratedNumberOfFailures == null) {
              throw new MissingRequiredPropertyException("GetTrafficManagerProfileMonitorConfig", "toleratedNumberOfFailures");
            }
            this.toleratedNumberOfFailures = toleratedNumberOfFailures;
            return this;
        }
        public GetTrafficManagerProfileMonitorConfig build() {
            final var _resultValue = new GetTrafficManagerProfileMonitorConfig();
            _resultValue.customHeaders = customHeaders;
            _resultValue.expectedStatusCodeRanges = expectedStatusCodeRanges;
            _resultValue.intervalInSeconds = intervalInSeconds;
            _resultValue.path = path;
            _resultValue.port = port;
            _resultValue.protocol = protocol;
            _resultValue.timeoutInSeconds = timeoutInSeconds;
            _resultValue.toleratedNumberOfFailures = toleratedNumberOfFailures;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy