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

com.pulumi.azurenative.loadtestservice.LoadTestMappingArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.loadtestservice;

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


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

    public static final LoadTestMappingArgs Empty = new LoadTestMappingArgs();

    /**
     * Mapped Azure Load Test resource Id.
     * 
     */
    @Import(name="azureLoadTestingResourceId")
    private @Nullable Output azureLoadTestingResourceId;

    /**
     * @return Mapped Azure Load Test resource Id.
     * 
     */
    public Optional> azureLoadTestingResourceId() {
        return Optional.ofNullable(this.azureLoadTestingResourceId);
    }

    /**
     * Load Test Mapping name
     * 
     */
    @Import(name="loadTestMappingName")
    private @Nullable Output loadTestMappingName;

    /**
     * @return Load Test Mapping name
     * 
     */
    public Optional> loadTestMappingName() {
        return Optional.ofNullable(this.loadTestMappingName);
    }

    /**
     * The fully qualified Azure Resource manager identifier of the resource.
     * 
     */
    @Import(name="resourceUri", required=true)
    private Output resourceUri;

    /**
     * @return The fully qualified Azure Resource manager identifier of the resource.
     * 
     */
    public Output resourceUri() {
        return this.resourceUri;
    }

    /**
     * Mapped source resource Id.
     * 
     */
    @Import(name="sourceResourceId")
    private @Nullable Output sourceResourceId;

    /**
     * @return Mapped source resource Id.
     * 
     */
    public Optional> sourceResourceId() {
        return Optional.ofNullable(this.sourceResourceId);
    }

    /**
     * Mapped Azure Load Test resource test-id.
     * 
     */
    @Import(name="testId")
    private @Nullable Output testId;

    /**
     * @return Mapped Azure Load Test resource test-id.
     * 
     */
    public Optional> testId() {
        return Optional.ofNullable(this.testId);
    }

    private LoadTestMappingArgs() {}

    private LoadTestMappingArgs(LoadTestMappingArgs $) {
        this.azureLoadTestingResourceId = $.azureLoadTestingResourceId;
        this.loadTestMappingName = $.loadTestMappingName;
        this.resourceUri = $.resourceUri;
        this.sourceResourceId = $.sourceResourceId;
        this.testId = $.testId;
    }

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

    public static final class Builder {
        private LoadTestMappingArgs $;

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

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

        /**
         * @param azureLoadTestingResourceId Mapped Azure Load Test resource Id.
         * 
         * @return builder
         * 
         */
        public Builder azureLoadTestingResourceId(@Nullable Output azureLoadTestingResourceId) {
            $.azureLoadTestingResourceId = azureLoadTestingResourceId;
            return this;
        }

        /**
         * @param azureLoadTestingResourceId Mapped Azure Load Test resource Id.
         * 
         * @return builder
         * 
         */
        public Builder azureLoadTestingResourceId(String azureLoadTestingResourceId) {
            return azureLoadTestingResourceId(Output.of(azureLoadTestingResourceId));
        }

        /**
         * @param loadTestMappingName Load Test Mapping name
         * 
         * @return builder
         * 
         */
        public Builder loadTestMappingName(@Nullable Output loadTestMappingName) {
            $.loadTestMappingName = loadTestMappingName;
            return this;
        }

        /**
         * @param loadTestMappingName Load Test Mapping name
         * 
         * @return builder
         * 
         */
        public Builder loadTestMappingName(String loadTestMappingName) {
            return loadTestMappingName(Output.of(loadTestMappingName));
        }

        /**
         * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(Output resourceUri) {
            $.resourceUri = resourceUri;
            return this;
        }

        /**
         * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(String resourceUri) {
            return resourceUri(Output.of(resourceUri));
        }

        /**
         * @param sourceResourceId Mapped source resource Id.
         * 
         * @return builder
         * 
         */
        public Builder sourceResourceId(@Nullable Output sourceResourceId) {
            $.sourceResourceId = sourceResourceId;
            return this;
        }

        /**
         * @param sourceResourceId Mapped source resource Id.
         * 
         * @return builder
         * 
         */
        public Builder sourceResourceId(String sourceResourceId) {
            return sourceResourceId(Output.of(sourceResourceId));
        }

        /**
         * @param testId Mapped Azure Load Test resource test-id.
         * 
         * @return builder
         * 
         */
        public Builder testId(@Nullable Output testId) {
            $.testId = testId;
            return this;
        }

        /**
         * @param testId Mapped Azure Load Test resource test-id.
         * 
         * @return builder
         * 
         */
        public Builder testId(String testId) {
            return testId(Output.of(testId));
        }

        public LoadTestMappingArgs build() {
            if ($.resourceUri == null) {
                throw new MissingRequiredPropertyException("LoadTestMappingArgs", "resourceUri");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy