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

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

There is a newer version: 2.82.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.azurenative.insights.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


public final class GetTestResultFileArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetTestResultFileArgs Empty = new GetTestResultFileArgs();

    /**
     * The continuation token.
     * 
     */
    @Import(name="continuationToken")
    private @Nullable Output continuationToken;

    /**
     * @return The continuation token.
     * 
     */
    public Optional> continuationToken() {
        return Optional.ofNullable(this.continuationToken);
    }

    /**
     * The format to use when returning the webtest result.
     * 
     */
    @Import(name="downloadAs", required=true)
    private Output downloadAs;

    /**
     * @return The format to use when returning the webtest result.
     * 
     */
    public Output downloadAs() {
        return this.downloadAs;
    }

    /**
     * The location ID where the webtest was physically run.
     * 
     */
    @Import(name="geoLocationId", required=true)
    private Output geoLocationId;

    /**
     * @return The location ID where the webtest was physically run.
     * 
     */
    public Output geoLocationId() {
        return this.geoLocationId;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The success state criteria for the webtest result.
     * 
     */
    @Import(name="testSuccessfulCriteria")
    private @Nullable Output testSuccessfulCriteria;

    /**
     * @return The success state criteria for the webtest result.
     * 
     */
    public Optional> testSuccessfulCriteria() {
        return Optional.ofNullable(this.testSuccessfulCriteria);
    }

    /**
     * The posix (epoch) time stamp for the webtest result.
     * 
     */
    @Import(name="timeStamp", required=true)
    private Output timeStamp;

    /**
     * @return The posix (epoch) time stamp for the webtest result.
     * 
     */
    public Output timeStamp() {
        return this.timeStamp;
    }

    /**
     * The name of the Application Insights webtest resource.
     * 
     */
    @Import(name="webTestName", required=true)
    private Output webTestName;

    /**
     * @return The name of the Application Insights webtest resource.
     * 
     */
    public Output webTestName() {
        return this.webTestName;
    }

    private GetTestResultFileArgs() {}

    private GetTestResultFileArgs(GetTestResultFileArgs $) {
        this.continuationToken = $.continuationToken;
        this.downloadAs = $.downloadAs;
        this.geoLocationId = $.geoLocationId;
        this.resourceGroupName = $.resourceGroupName;
        this.testSuccessfulCriteria = $.testSuccessfulCriteria;
        this.timeStamp = $.timeStamp;
        this.webTestName = $.webTestName;
    }

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

    public static final class Builder {
        private GetTestResultFileArgs $;

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

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

        /**
         * @param continuationToken The continuation token.
         * 
         * @return builder
         * 
         */
        public Builder continuationToken(@Nullable Output continuationToken) {
            $.continuationToken = continuationToken;
            return this;
        }

        /**
         * @param continuationToken The continuation token.
         * 
         * @return builder
         * 
         */
        public Builder continuationToken(String continuationToken) {
            return continuationToken(Output.of(continuationToken));
        }

        /**
         * @param downloadAs The format to use when returning the webtest result.
         * 
         * @return builder
         * 
         */
        public Builder downloadAs(Output downloadAs) {
            $.downloadAs = downloadAs;
            return this;
        }

        /**
         * @param downloadAs The format to use when returning the webtest result.
         * 
         * @return builder
         * 
         */
        public Builder downloadAs(String downloadAs) {
            return downloadAs(Output.of(downloadAs));
        }

        /**
         * @param geoLocationId The location ID where the webtest was physically run.
         * 
         * @return builder
         * 
         */
        public Builder geoLocationId(Output geoLocationId) {
            $.geoLocationId = geoLocationId;
            return this;
        }

        /**
         * @param geoLocationId The location ID where the webtest was physically run.
         * 
         * @return builder
         * 
         */
        public Builder geoLocationId(String geoLocationId) {
            return geoLocationId(Output.of(geoLocationId));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param testSuccessfulCriteria The success state criteria for the webtest result.
         * 
         * @return builder
         * 
         */
        public Builder testSuccessfulCriteria(@Nullable Output testSuccessfulCriteria) {
            $.testSuccessfulCriteria = testSuccessfulCriteria;
            return this;
        }

        /**
         * @param testSuccessfulCriteria The success state criteria for the webtest result.
         * 
         * @return builder
         * 
         */
        public Builder testSuccessfulCriteria(Boolean testSuccessfulCriteria) {
            return testSuccessfulCriteria(Output.of(testSuccessfulCriteria));
        }

        /**
         * @param timeStamp The posix (epoch) time stamp for the webtest result.
         * 
         * @return builder
         * 
         */
        public Builder timeStamp(Output timeStamp) {
            $.timeStamp = timeStamp;
            return this;
        }

        /**
         * @param timeStamp The posix (epoch) time stamp for the webtest result.
         * 
         * @return builder
         * 
         */
        public Builder timeStamp(Integer timeStamp) {
            return timeStamp(Output.of(timeStamp));
        }

        /**
         * @param webTestName The name of the Application Insights webtest resource.
         * 
         * @return builder
         * 
         */
        public Builder webTestName(Output webTestName) {
            $.webTestName = webTestName;
            return this;
        }

        /**
         * @param webTestName The name of the Application Insights webtest resource.
         * 
         * @return builder
         * 
         */
        public Builder webTestName(String webTestName) {
            return webTestName(Output.of(webTestName));
        }

        public GetTestResultFileArgs build() {
            if ($.downloadAs == null) {
                throw new MissingRequiredPropertyException("GetTestResultFileArgs", "downloadAs");
            }
            if ($.geoLocationId == null) {
                throw new MissingRequiredPropertyException("GetTestResultFileArgs", "geoLocationId");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetTestResultFileArgs", "resourceGroupName");
            }
            if ($.timeStamp == null) {
                throw new MissingRequiredPropertyException("GetTestResultFileArgs", "timeStamp");
            }
            if ($.webTestName == null) {
                throw new MissingRequiredPropertyException("GetTestResultFileArgs", "webTestName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy