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

com.pulumi.azurenative.compute.outputs.UpgradePolicyResponse 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.compute.outputs;

import com.pulumi.azurenative.compute.outputs.AutomaticOSUpgradePolicyResponse;
import com.pulumi.azurenative.compute.outputs.RollingUpgradePolicyResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class UpgradePolicyResponse {
    /**
     * @return Configuration parameters used for performing automatic OS Upgrade.
     * 
     */
    private @Nullable AutomaticOSUpgradePolicyResponse automaticOSUpgradePolicy;
    /**
     * @return Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You  control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are  automatically updated at the same time.
     * 
     */
    private @Nullable String mode;
    /**
     * @return The configuration parameters used while performing a rolling upgrade.
     * 
     */
    private @Nullable RollingUpgradePolicyResponse rollingUpgradePolicy;

    private UpgradePolicyResponse() {}
    /**
     * @return Configuration parameters used for performing automatic OS Upgrade.
     * 
     */
    public Optional automaticOSUpgradePolicy() {
        return Optional.ofNullable(this.automaticOSUpgradePolicy);
    }
    /**
     * @return Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You  control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are  automatically updated at the same time.
     * 
     */
    public Optional mode() {
        return Optional.ofNullable(this.mode);
    }
    /**
     * @return The configuration parameters used while performing a rolling upgrade.
     * 
     */
    public Optional rollingUpgradePolicy() {
        return Optional.ofNullable(this.rollingUpgradePolicy);
    }

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

    public static Builder builder(UpgradePolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AutomaticOSUpgradePolicyResponse automaticOSUpgradePolicy;
        private @Nullable String mode;
        private @Nullable RollingUpgradePolicyResponse rollingUpgradePolicy;
        public Builder() {}
        public Builder(UpgradePolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.automaticOSUpgradePolicy = defaults.automaticOSUpgradePolicy;
    	      this.mode = defaults.mode;
    	      this.rollingUpgradePolicy = defaults.rollingUpgradePolicy;
        }

        @CustomType.Setter
        public Builder automaticOSUpgradePolicy(@Nullable AutomaticOSUpgradePolicyResponse automaticOSUpgradePolicy) {

            this.automaticOSUpgradePolicy = automaticOSUpgradePolicy;
            return this;
        }
        @CustomType.Setter
        public Builder mode(@Nullable String mode) {

            this.mode = mode;
            return this;
        }
        @CustomType.Setter
        public Builder rollingUpgradePolicy(@Nullable RollingUpgradePolicyResponse rollingUpgradePolicy) {

            this.rollingUpgradePolicy = rollingUpgradePolicy;
            return this;
        }
        public UpgradePolicyResponse build() {
            final var _resultValue = new UpgradePolicyResponse();
            _resultValue.automaticOSUpgradePolicy = automaticOSUpgradePolicy;
            _resultValue.mode = mode;
            _resultValue.rollingUpgradePolicy = rollingUpgradePolicy;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy