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

com.pulumi.azurenative.azurestackhci.inputs.UpdatePrerequisiteArgs 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.azurestackhci.inputs;

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


/**
 * If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty.
 * 
 */
public final class UpdatePrerequisiteArgs extends com.pulumi.resources.ResourceArgs {

    public static final UpdatePrerequisiteArgs Empty = new UpdatePrerequisiteArgs();

    /**
     * Friendly name of the prerequisite.
     * 
     */
    @Import(name="packageName")
    private @Nullable Output packageName;

    /**
     * @return Friendly name of the prerequisite.
     * 
     */
    public Optional> packageName() {
        return Optional.ofNullable(this.packageName);
    }

    /**
     * Updatable component type.
     * 
     */
    @Import(name="updateType")
    private @Nullable Output updateType;

    /**
     * @return Updatable component type.
     * 
     */
    public Optional> updateType() {
        return Optional.ofNullable(this.updateType);
    }

    /**
     * Version of the prerequisite.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Version of the prerequisite.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private UpdatePrerequisiteArgs() {}

    private UpdatePrerequisiteArgs(UpdatePrerequisiteArgs $) {
        this.packageName = $.packageName;
        this.updateType = $.updateType;
        this.version = $.version;
    }

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

    public static final class Builder {
        private UpdatePrerequisiteArgs $;

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

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

        /**
         * @param packageName Friendly name of the prerequisite.
         * 
         * @return builder
         * 
         */
        public Builder packageName(@Nullable Output packageName) {
            $.packageName = packageName;
            return this;
        }

        /**
         * @param packageName Friendly name of the prerequisite.
         * 
         * @return builder
         * 
         */
        public Builder packageName(String packageName) {
            return packageName(Output.of(packageName));
        }

        /**
         * @param updateType Updatable component type.
         * 
         * @return builder
         * 
         */
        public Builder updateType(@Nullable Output updateType) {
            $.updateType = updateType;
            return this;
        }

        /**
         * @param updateType Updatable component type.
         * 
         * @return builder
         * 
         */
        public Builder updateType(String updateType) {
            return updateType(Output.of(updateType));
        }

        /**
         * @param version Version of the prerequisite.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

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

        public UpdatePrerequisiteArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy