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

com.pulumi.azurenative.hybridcompute.inputs.AgentUpgradeArgs 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.hybridcompute.inputs;

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


/**
 * The info w.r.t Agent Upgrade.
 * 
 */
public final class AgentUpgradeArgs extends com.pulumi.resources.ResourceArgs {

    public static final AgentUpgradeArgs Empty = new AgentUpgradeArgs();

    /**
     * The correlation ID passed in from RSM per upgrade.
     * 
     */
    @Import(name="correlationId")
    private @Nullable Output correlationId;

    /**
     * @return The correlation ID passed in from RSM per upgrade.
     * 
     */
    public Optional> correlationId() {
        return Optional.ofNullable(this.correlationId);
    }

    /**
     * Specifies the version info w.r.t AgentUpgrade for the machine.
     * 
     */
    @Import(name="desiredVersion")
    private @Nullable Output desiredVersion;

    /**
     * @return Specifies the version info w.r.t AgentUpgrade for the machine.
     * 
     */
    public Optional> desiredVersion() {
        return Optional.ofNullable(this.desiredVersion);
    }

    /**
     * Specifies if RSM should try to upgrade this machine
     * 
     */
    @Import(name="enableAutomaticUpgrade")
    private @Nullable Output enableAutomaticUpgrade;

    /**
     * @return Specifies if RSM should try to upgrade this machine
     * 
     */
    public Optional> enableAutomaticUpgrade() {
        return Optional.ofNullable(this.enableAutomaticUpgrade);
    }

    private AgentUpgradeArgs() {}

    private AgentUpgradeArgs(AgentUpgradeArgs $) {
        this.correlationId = $.correlationId;
        this.desiredVersion = $.desiredVersion;
        this.enableAutomaticUpgrade = $.enableAutomaticUpgrade;
    }

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

    public static final class Builder {
        private AgentUpgradeArgs $;

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

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

        /**
         * @param correlationId The correlation ID passed in from RSM per upgrade.
         * 
         * @return builder
         * 
         */
        public Builder correlationId(@Nullable Output correlationId) {
            $.correlationId = correlationId;
            return this;
        }

        /**
         * @param correlationId The correlation ID passed in from RSM per upgrade.
         * 
         * @return builder
         * 
         */
        public Builder correlationId(String correlationId) {
            return correlationId(Output.of(correlationId));
        }

        /**
         * @param desiredVersion Specifies the version info w.r.t AgentUpgrade for the machine.
         * 
         * @return builder
         * 
         */
        public Builder desiredVersion(@Nullable Output desiredVersion) {
            $.desiredVersion = desiredVersion;
            return this;
        }

        /**
         * @param desiredVersion Specifies the version info w.r.t AgentUpgrade for the machine.
         * 
         * @return builder
         * 
         */
        public Builder desiredVersion(String desiredVersion) {
            return desiredVersion(Output.of(desiredVersion));
        }

        /**
         * @param enableAutomaticUpgrade Specifies if RSM should try to upgrade this machine
         * 
         * @return builder
         * 
         */
        public Builder enableAutomaticUpgrade(@Nullable Output enableAutomaticUpgrade) {
            $.enableAutomaticUpgrade = enableAutomaticUpgrade;
            return this;
        }

        /**
         * @param enableAutomaticUpgrade Specifies if RSM should try to upgrade this machine
         * 
         * @return builder
         * 
         */
        public Builder enableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
            return enableAutomaticUpgrade(Output.of(enableAutomaticUpgrade));
        }

        public AgentUpgradeArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy