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

com.pulumi.azurenative.insights.inputs.WebTestPropertiesRequestArgs 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.azurenative.insights.inputs.HeaderFieldArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The collection of request properties
 * 
 */
public final class WebTestPropertiesRequestArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebTestPropertiesRequestArgs Empty = new WebTestPropertiesRequestArgs();

    /**
     * Follow redirects for this web test.
     * 
     */
    @Import(name="followRedirects")
    private @Nullable Output followRedirects;

    /**
     * @return Follow redirects for this web test.
     * 
     */
    public Optional> followRedirects() {
        return Optional.ofNullable(this.followRedirects);
    }

    /**
     * List of headers and their values to add to the WebTest call.
     * 
     */
    @Import(name="headers")
    private @Nullable Output> headers;

    /**
     * @return List of headers and their values to add to the WebTest call.
     * 
     */
    public Optional>> headers() {
        return Optional.ofNullable(this.headers);
    }

    /**
     * Http verb to use for this web test.
     * 
     */
    @Import(name="httpVerb")
    private @Nullable Output httpVerb;

    /**
     * @return Http verb to use for this web test.
     * 
     */
    public Optional> httpVerb() {
        return Optional.ofNullable(this.httpVerb);
    }

    /**
     * Parse Dependent request for this WebTest.
     * 
     */
    @Import(name="parseDependentRequests")
    private @Nullable Output parseDependentRequests;

    /**
     * @return Parse Dependent request for this WebTest.
     * 
     */
    public Optional> parseDependentRequests() {
        return Optional.ofNullable(this.parseDependentRequests);
    }

    /**
     * Base64 encoded string body to send with this web test.
     * 
     */
    @Import(name="requestBody")
    private @Nullable Output requestBody;

    /**
     * @return Base64 encoded string body to send with this web test.
     * 
     */
    public Optional> requestBody() {
        return Optional.ofNullable(this.requestBody);
    }

    /**
     * Url location to test.
     * 
     */
    @Import(name="requestUrl")
    private @Nullable Output requestUrl;

    /**
     * @return Url location to test.
     * 
     */
    public Optional> requestUrl() {
        return Optional.ofNullable(this.requestUrl);
    }

    private WebTestPropertiesRequestArgs() {}

    private WebTestPropertiesRequestArgs(WebTestPropertiesRequestArgs $) {
        this.followRedirects = $.followRedirects;
        this.headers = $.headers;
        this.httpVerb = $.httpVerb;
        this.parseDependentRequests = $.parseDependentRequests;
        this.requestBody = $.requestBody;
        this.requestUrl = $.requestUrl;
    }

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

    public static final class Builder {
        private WebTestPropertiesRequestArgs $;

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

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

        /**
         * @param followRedirects Follow redirects for this web test.
         * 
         * @return builder
         * 
         */
        public Builder followRedirects(@Nullable Output followRedirects) {
            $.followRedirects = followRedirects;
            return this;
        }

        /**
         * @param followRedirects Follow redirects for this web test.
         * 
         * @return builder
         * 
         */
        public Builder followRedirects(Boolean followRedirects) {
            return followRedirects(Output.of(followRedirects));
        }

        /**
         * @param headers List of headers and their values to add to the WebTest call.
         * 
         * @return builder
         * 
         */
        public Builder headers(@Nullable Output> headers) {
            $.headers = headers;
            return this;
        }

        /**
         * @param headers List of headers and their values to add to the WebTest call.
         * 
         * @return builder
         * 
         */
        public Builder headers(List headers) {
            return headers(Output.of(headers));
        }

        /**
         * @param headers List of headers and their values to add to the WebTest call.
         * 
         * @return builder
         * 
         */
        public Builder headers(HeaderFieldArgs... headers) {
            return headers(List.of(headers));
        }

        /**
         * @param httpVerb Http verb to use for this web test.
         * 
         * @return builder
         * 
         */
        public Builder httpVerb(@Nullable Output httpVerb) {
            $.httpVerb = httpVerb;
            return this;
        }

        /**
         * @param httpVerb Http verb to use for this web test.
         * 
         * @return builder
         * 
         */
        public Builder httpVerb(String httpVerb) {
            return httpVerb(Output.of(httpVerb));
        }

        /**
         * @param parseDependentRequests Parse Dependent request for this WebTest.
         * 
         * @return builder
         * 
         */
        public Builder parseDependentRequests(@Nullable Output parseDependentRequests) {
            $.parseDependentRequests = parseDependentRequests;
            return this;
        }

        /**
         * @param parseDependentRequests Parse Dependent request for this WebTest.
         * 
         * @return builder
         * 
         */
        public Builder parseDependentRequests(Boolean parseDependentRequests) {
            return parseDependentRequests(Output.of(parseDependentRequests));
        }

        /**
         * @param requestBody Base64 encoded string body to send with this web test.
         * 
         * @return builder
         * 
         */
        public Builder requestBody(@Nullable Output requestBody) {
            $.requestBody = requestBody;
            return this;
        }

        /**
         * @param requestBody Base64 encoded string body to send with this web test.
         * 
         * @return builder
         * 
         */
        public Builder requestBody(String requestBody) {
            return requestBody(Output.of(requestBody));
        }

        /**
         * @param requestUrl Url location to test.
         * 
         * @return builder
         * 
         */
        public Builder requestUrl(@Nullable Output requestUrl) {
            $.requestUrl = requestUrl;
            return this;
        }

        /**
         * @param requestUrl Url location to test.
         * 
         * @return builder
         * 
         */
        public Builder requestUrl(String requestUrl) {
            return requestUrl(Output.of(requestUrl));
        }

        public WebTestPropertiesRequestArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy