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

com.pulumi.azure.appinsights.inputs.StandardWebTestValidationRulesArgs 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.15.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.azure.appinsights.inputs;

import com.pulumi.azure.appinsights.inputs.StandardWebTestValidationRulesContentArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final StandardWebTestValidationRulesArgs Empty = new StandardWebTestValidationRulesArgs();

    /**
     * A `content` block as defined above.
     * 
     */
    @Import(name="content")
    private @Nullable Output content;

    /**
     * @return A `content` block as defined above.
     * 
     */
    public Optional> content() {
        return Optional.ofNullable(this.content);
    }

    /**
     * The expected status code of the response. Default is '200', '0' means 'response code < 400'
     * 
     */
    @Import(name="expectedStatusCode")
    private @Nullable Output expectedStatusCode;

    /**
     * @return The expected status code of the response. Default is '200', '0' means 'response code < 400'
     * 
     */
    public Optional> expectedStatusCode() {
        return Optional.ofNullable(this.expectedStatusCode);
    }

    /**
     * The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.
     * 
     */
    @Import(name="sslCertRemainingLifetime")
    private @Nullable Output sslCertRemainingLifetime;

    /**
     * @return The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.
     * 
     */
    public Optional> sslCertRemainingLifetime() {
        return Optional.ofNullable(this.sslCertRemainingLifetime);
    }

    /**
     * Should the SSL check be enabled?
     * 
     */
    @Import(name="sslCheckEnabled")
    private @Nullable Output sslCheckEnabled;

    /**
     * @return Should the SSL check be enabled?
     * 
     */
    public Optional> sslCheckEnabled() {
        return Optional.ofNullable(this.sslCheckEnabled);
    }

    private StandardWebTestValidationRulesArgs() {}

    private StandardWebTestValidationRulesArgs(StandardWebTestValidationRulesArgs $) {
        this.content = $.content;
        this.expectedStatusCode = $.expectedStatusCode;
        this.sslCertRemainingLifetime = $.sslCertRemainingLifetime;
        this.sslCheckEnabled = $.sslCheckEnabled;
    }

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

    public static final class Builder {
        private StandardWebTestValidationRulesArgs $;

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

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

        /**
         * @param content A `content` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder content(@Nullable Output content) {
            $.content = content;
            return this;
        }

        /**
         * @param content A `content` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder content(StandardWebTestValidationRulesContentArgs content) {
            return content(Output.of(content));
        }

        /**
         * @param expectedStatusCode The expected status code of the response. Default is '200', '0' means 'response code < 400'
         * 
         * @return builder
         * 
         */
        public Builder expectedStatusCode(@Nullable Output expectedStatusCode) {
            $.expectedStatusCode = expectedStatusCode;
            return this;
        }

        /**
         * @param expectedStatusCode The expected status code of the response. Default is '200', '0' means 'response code < 400'
         * 
         * @return builder
         * 
         */
        public Builder expectedStatusCode(Integer expectedStatusCode) {
            return expectedStatusCode(Output.of(expectedStatusCode));
        }

        /**
         * @param sslCertRemainingLifetime The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.
         * 
         * @return builder
         * 
         */
        public Builder sslCertRemainingLifetime(@Nullable Output sslCertRemainingLifetime) {
            $.sslCertRemainingLifetime = sslCertRemainingLifetime;
            return this;
        }

        /**
         * @param sslCertRemainingLifetime The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.
         * 
         * @return builder
         * 
         */
        public Builder sslCertRemainingLifetime(Integer sslCertRemainingLifetime) {
            return sslCertRemainingLifetime(Output.of(sslCertRemainingLifetime));
        }

        /**
         * @param sslCheckEnabled Should the SSL check be enabled?
         * 
         * @return builder
         * 
         */
        public Builder sslCheckEnabled(@Nullable Output sslCheckEnabled) {
            $.sslCheckEnabled = sslCheckEnabled;
            return this;
        }

        /**
         * @param sslCheckEnabled Should the SSL check be enabled?
         * 
         * @return builder
         * 
         */
        public Builder sslCheckEnabled(Boolean sslCheckEnabled) {
            return sslCheckEnabled(Output.of(sslCheckEnabled));
        }

        public StandardWebTestValidationRulesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy