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

com.pulumi.azurenative.insights.inputs.WebTestPropertiesContentValidationArgs Maven / Gradle / Ivy

// *** 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.insights.inputs;

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


/**
 * The collection of content validation properties
 * 
 */
public final class WebTestPropertiesContentValidationArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebTestPropertiesContentValidationArgs Empty = new WebTestPropertiesContentValidationArgs();

    /**
     * Content to look for in the return of the WebTest.  Must not be null or empty.
     * 
     */
    @Import(name="contentMatch")
    private @Nullable Output contentMatch;

    /**
     * @return Content to look for in the return of the WebTest.  Must not be null or empty.
     * 
     */
    public Optional> contentMatch() {
        return Optional.ofNullable(this.contentMatch);
    }

    /**
     * When set, this value makes the ContentMatch validation case insensitive.
     * 
     */
    @Import(name="ignoreCase")
    private @Nullable Output ignoreCase;

    /**
     * @return When set, this value makes the ContentMatch validation case insensitive.
     * 
     */
    public Optional> ignoreCase() {
        return Optional.ofNullable(this.ignoreCase);
    }

    /**
     * When true, validation will pass if there is a match for the ContentMatch string.  If false, validation will fail if there is a match
     * 
     */
    @Import(name="passIfTextFound")
    private @Nullable Output passIfTextFound;

    /**
     * @return When true, validation will pass if there is a match for the ContentMatch string.  If false, validation will fail if there is a match
     * 
     */
    public Optional> passIfTextFound() {
        return Optional.ofNullable(this.passIfTextFound);
    }

    private WebTestPropertiesContentValidationArgs() {}

    private WebTestPropertiesContentValidationArgs(WebTestPropertiesContentValidationArgs $) {
        this.contentMatch = $.contentMatch;
        this.ignoreCase = $.ignoreCase;
        this.passIfTextFound = $.passIfTextFound;
    }

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

    public static final class Builder {
        private WebTestPropertiesContentValidationArgs $;

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

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

        /**
         * @param contentMatch Content to look for in the return of the WebTest.  Must not be null or empty.
         * 
         * @return builder
         * 
         */
        public Builder contentMatch(@Nullable Output contentMatch) {
            $.contentMatch = contentMatch;
            return this;
        }

        /**
         * @param contentMatch Content to look for in the return of the WebTest.  Must not be null or empty.
         * 
         * @return builder
         * 
         */
        public Builder contentMatch(String contentMatch) {
            return contentMatch(Output.of(contentMatch));
        }

        /**
         * @param ignoreCase When set, this value makes the ContentMatch validation case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder ignoreCase(@Nullable Output ignoreCase) {
            $.ignoreCase = ignoreCase;
            return this;
        }

        /**
         * @param ignoreCase When set, this value makes the ContentMatch validation case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder ignoreCase(Boolean ignoreCase) {
            return ignoreCase(Output.of(ignoreCase));
        }

        /**
         * @param passIfTextFound When true, validation will pass if there is a match for the ContentMatch string.  If false, validation will fail if there is a match
         * 
         * @return builder
         * 
         */
        public Builder passIfTextFound(@Nullable Output passIfTextFound) {
            $.passIfTextFound = passIfTextFound;
            return this;
        }

        /**
         * @param passIfTextFound When true, validation will pass if there is a match for the ContentMatch string.  If false, validation will fail if there is a match
         * 
         * @return builder
         * 
         */
        public Builder passIfTextFound(Boolean passIfTextFound) {
            return passIfTextFound(Output.of(passIfTextFound));
        }

        public WebTestPropertiesContentValidationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy