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

com.pulumi.azurenative.testbase.PackageArgs 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.testbase;

import com.pulumi.azurenative.testbase.inputs.TargetOSInfoArgs;
import com.pulumi.azurenative.testbase.inputs.TestArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PackageArgs Empty = new PackageArgs();

    /**
     * Application name
     * 
     */
    @Import(name="applicationName", required=true)
    private Output applicationName;

    /**
     * @return Application name
     * 
     */
    public Output applicationName() {
        return this.applicationName;
    }

    /**
     * The file path of the package.
     * 
     */
    @Import(name="blobPath", required=true)
    private Output blobPath;

    /**
     * @return The file path of the package.
     * 
     */
    public Output blobPath() {
        return this.blobPath;
    }

    /**
     * The flighting ring for feature update.
     * 
     */
    @Import(name="flightingRing", required=true)
    private Output flightingRing;

    /**
     * @return The flighting ring for feature update.
     * 
     */
    public Output flightingRing() {
        return this.flightingRing;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The resource name of the Test Base Package.
     * 
     */
    @Import(name="packageName")
    private @Nullable Output packageName;

    /**
     * @return The resource name of the Test Base Package.
     * 
     */
    public Optional> packageName() {
        return Optional.ofNullable(this.packageName);
    }

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

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

    /**
     * The tags of the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The tags of the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Specifies the target OSs of specific OS Update types.
     * 
     */
    @Import(name="targetOSList", required=true)
    private Output> targetOSList;

    /**
     * @return Specifies the target OSs of specific OS Update types.
     * 
     */
    public Output> targetOSList() {
        return this.targetOSList;
    }

    /**
     * The resource name of the Test Base Account.
     * 
     */
    @Import(name="testBaseAccountName", required=true)
    private Output testBaseAccountName;

    /**
     * @return The resource name of the Test Base Account.
     * 
     */
    public Output testBaseAccountName() {
        return this.testBaseAccountName;
    }

    /**
     * The detailed test information.
     * 
     */
    @Import(name="tests", required=true)
    private Output> tests;

    /**
     * @return The detailed test information.
     * 
     */
    public Output> tests() {
        return this.tests;
    }

    /**
     * Application version
     * 
     */
    @Import(name="version", required=true)
    private Output version;

    /**
     * @return Application version
     * 
     */
    public Output version() {
        return this.version;
    }

    private PackageArgs() {}

    private PackageArgs(PackageArgs $) {
        this.applicationName = $.applicationName;
        this.blobPath = $.blobPath;
        this.flightingRing = $.flightingRing;
        this.location = $.location;
        this.packageName = $.packageName;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.targetOSList = $.targetOSList;
        this.testBaseAccountName = $.testBaseAccountName;
        this.tests = $.tests;
        this.version = $.version;
    }

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

    public static final class Builder {
        private PackageArgs $;

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

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

        /**
         * @param applicationName Application name
         * 
         * @return builder
         * 
         */
        public Builder applicationName(Output applicationName) {
            $.applicationName = applicationName;
            return this;
        }

        /**
         * @param applicationName Application name
         * 
         * @return builder
         * 
         */
        public Builder applicationName(String applicationName) {
            return applicationName(Output.of(applicationName));
        }

        /**
         * @param blobPath The file path of the package.
         * 
         * @return builder
         * 
         */
        public Builder blobPath(Output blobPath) {
            $.blobPath = blobPath;
            return this;
        }

        /**
         * @param blobPath The file path of the package.
         * 
         * @return builder
         * 
         */
        public Builder blobPath(String blobPath) {
            return blobPath(Output.of(blobPath));
        }

        /**
         * @param flightingRing The flighting ring for feature update.
         * 
         * @return builder
         * 
         */
        public Builder flightingRing(Output flightingRing) {
            $.flightingRing = flightingRing;
            return this;
        }

        /**
         * @param flightingRing The flighting ring for feature update.
         * 
         * @return builder
         * 
         */
        public Builder flightingRing(String flightingRing) {
            return flightingRing(Output.of(flightingRing));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param packageName The resource name of the Test Base Package.
         * 
         * @return builder
         * 
         */
        public Builder packageName(@Nullable Output packageName) {
            $.packageName = packageName;
            return this;
        }

        /**
         * @param packageName The resource name of the Test Base Package.
         * 
         * @return builder
         * 
         */
        public Builder packageName(String packageName) {
            return packageName(Output.of(packageName));
        }

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

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

        /**
         * @param tags The tags of the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The tags of the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param targetOSList Specifies the target OSs of specific OS Update types.
         * 
         * @return builder
         * 
         */
        public Builder targetOSList(Output> targetOSList) {
            $.targetOSList = targetOSList;
            return this;
        }

        /**
         * @param targetOSList Specifies the target OSs of specific OS Update types.
         * 
         * @return builder
         * 
         */
        public Builder targetOSList(List targetOSList) {
            return targetOSList(Output.of(targetOSList));
        }

        /**
         * @param targetOSList Specifies the target OSs of specific OS Update types.
         * 
         * @return builder
         * 
         */
        public Builder targetOSList(TargetOSInfoArgs... targetOSList) {
            return targetOSList(List.of(targetOSList));
        }

        /**
         * @param testBaseAccountName The resource name of the Test Base Account.
         * 
         * @return builder
         * 
         */
        public Builder testBaseAccountName(Output testBaseAccountName) {
            $.testBaseAccountName = testBaseAccountName;
            return this;
        }

        /**
         * @param testBaseAccountName The resource name of the Test Base Account.
         * 
         * @return builder
         * 
         */
        public Builder testBaseAccountName(String testBaseAccountName) {
            return testBaseAccountName(Output.of(testBaseAccountName));
        }

        /**
         * @param tests The detailed test information.
         * 
         * @return builder
         * 
         */
        public Builder tests(Output> tests) {
            $.tests = tests;
            return this;
        }

        /**
         * @param tests The detailed test information.
         * 
         * @return builder
         * 
         */
        public Builder tests(List tests) {
            return tests(Output.of(tests));
        }

        /**
         * @param tests The detailed test information.
         * 
         * @return builder
         * 
         */
        public Builder tests(TestArgs... tests) {
            return tests(List.of(tests));
        }

        /**
         * @param version Application version
         * 
         * @return builder
         * 
         */
        public Builder version(Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Application version
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public PackageArgs build() {
            if ($.applicationName == null) {
                throw new MissingRequiredPropertyException("PackageArgs", "applicationName");
            }
            if ($.blobPath == null) {
                throw new MissingRequiredPropertyException("PackageArgs", "blobPath");
            }
            if ($.flightingRing == null) {
                throw new MissingRequiredPropertyException("PackageArgs", "flightingRing");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PackageArgs", "resourceGroupName");
            }
            if ($.targetOSList == null) {
                throw new MissingRequiredPropertyException("PackageArgs", "targetOSList");
            }
            if ($.testBaseAccountName == null) {
                throw new MissingRequiredPropertyException("PackageArgs", "testBaseAccountName");
            }
            if ($.tests == null) {
                throw new MissingRequiredPropertyException("PackageArgs", "tests");
            }
            if ($.version == null) {
                throw new MissingRequiredPropertyException("PackageArgs", "version");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy