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

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

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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The information of the target OS to be tested.
 * 
 */
public final class TargetOSInfoArgs extends com.pulumi.resources.ResourceArgs {

    public static final TargetOSInfoArgs Empty = new TargetOSInfoArgs();

    /**
     * Specifies the baseline OSs to be tested.
     * 
     */
    @Import(name="baselineOSs")
    private @Nullable Output> baselineOSs;

    /**
     * @return Specifies the baseline OSs to be tested.
     * 
     */
    public Optional>> baselineOSs() {
        return Optional.ofNullable(this.baselineOSs);
    }

    /**
     * Insider Channel Ids. Only used for feature update.
     * 
     */
    @Import(name="insiderChannelIds")
    private @Nullable Output> insiderChannelIds;

    /**
     * @return Insider Channel Ids. Only used for feature update.
     * 
     */
    public Optional>> insiderChannelIds() {
        return Optional.ofNullable(this.insiderChannelIds);
    }

    /**
     * Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
     * 
     */
    @Import(name="osUpdateType", required=true)
    private Output osUpdateType;

    /**
     * @return Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
     * 
     */
    public Output osUpdateType() {
        return this.osUpdateType;
    }

    /**
     * Specifies the ids of the target OSs from Custom Images to be tested.
     * 
     */
    @Import(name="targetOSImageIds")
    private @Nullable Output> targetOSImageIds;

    /**
     * @return Specifies the ids of the target OSs from Custom Images to be tested.
     * 
     */
    public Optional>> targetOSImageIds() {
        return Optional.ofNullable(this.targetOSImageIds);
    }

    /**
     * Specifies the target OSs to be tested.
     * 
     */
    @Import(name="targetOSs")
    private @Nullable Output> targetOSs;

    /**
     * @return Specifies the target OSs to be tested.
     * 
     */
    public Optional>> targetOSs() {
        return Optional.ofNullable(this.targetOSs);
    }

    private TargetOSInfoArgs() {}

    private TargetOSInfoArgs(TargetOSInfoArgs $) {
        this.baselineOSs = $.baselineOSs;
        this.insiderChannelIds = $.insiderChannelIds;
        this.osUpdateType = $.osUpdateType;
        this.targetOSImageIds = $.targetOSImageIds;
        this.targetOSs = $.targetOSs;
    }

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

    public static final class Builder {
        private TargetOSInfoArgs $;

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

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

        /**
         * @param baselineOSs Specifies the baseline OSs to be tested.
         * 
         * @return builder
         * 
         */
        public Builder baselineOSs(@Nullable Output> baselineOSs) {
            $.baselineOSs = baselineOSs;
            return this;
        }

        /**
         * @param baselineOSs Specifies the baseline OSs to be tested.
         * 
         * @return builder
         * 
         */
        public Builder baselineOSs(List baselineOSs) {
            return baselineOSs(Output.of(baselineOSs));
        }

        /**
         * @param baselineOSs Specifies the baseline OSs to be tested.
         * 
         * @return builder
         * 
         */
        public Builder baselineOSs(String... baselineOSs) {
            return baselineOSs(List.of(baselineOSs));
        }

        /**
         * @param insiderChannelIds Insider Channel Ids. Only used for feature update.
         * 
         * @return builder
         * 
         */
        public Builder insiderChannelIds(@Nullable Output> insiderChannelIds) {
            $.insiderChannelIds = insiderChannelIds;
            return this;
        }

        /**
         * @param insiderChannelIds Insider Channel Ids. Only used for feature update.
         * 
         * @return builder
         * 
         */
        public Builder insiderChannelIds(List insiderChannelIds) {
            return insiderChannelIds(Output.of(insiderChannelIds));
        }

        /**
         * @param insiderChannelIds Insider Channel Ids. Only used for feature update.
         * 
         * @return builder
         * 
         */
        public Builder insiderChannelIds(String... insiderChannelIds) {
            return insiderChannelIds(List.of(insiderChannelIds));
        }

        /**
         * @param osUpdateType Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
         * 
         * @return builder
         * 
         */
        public Builder osUpdateType(Output osUpdateType) {
            $.osUpdateType = osUpdateType;
            return this;
        }

        /**
         * @param osUpdateType Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
         * 
         * @return builder
         * 
         */
        public Builder osUpdateType(String osUpdateType) {
            return osUpdateType(Output.of(osUpdateType));
        }

        /**
         * @param targetOSImageIds Specifies the ids of the target OSs from Custom Images to be tested.
         * 
         * @return builder
         * 
         */
        public Builder targetOSImageIds(@Nullable Output> targetOSImageIds) {
            $.targetOSImageIds = targetOSImageIds;
            return this;
        }

        /**
         * @param targetOSImageIds Specifies the ids of the target OSs from Custom Images to be tested.
         * 
         * @return builder
         * 
         */
        public Builder targetOSImageIds(List targetOSImageIds) {
            return targetOSImageIds(Output.of(targetOSImageIds));
        }

        /**
         * @param targetOSImageIds Specifies the ids of the target OSs from Custom Images to be tested.
         * 
         * @return builder
         * 
         */
        public Builder targetOSImageIds(String... targetOSImageIds) {
            return targetOSImageIds(List.of(targetOSImageIds));
        }

        /**
         * @param targetOSs Specifies the target OSs to be tested.
         * 
         * @return builder
         * 
         */
        public Builder targetOSs(@Nullable Output> targetOSs) {
            $.targetOSs = targetOSs;
            return this;
        }

        /**
         * @param targetOSs Specifies the target OSs to be tested.
         * 
         * @return builder
         * 
         */
        public Builder targetOSs(List targetOSs) {
            return targetOSs(Output.of(targetOSs));
        }

        /**
         * @param targetOSs Specifies the target OSs to be tested.
         * 
         * @return builder
         * 
         */
        public Builder targetOSs(String... targetOSs) {
            return targetOSs(List.of(targetOSs));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy