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

com.pulumi.meraki.networks.outputs.FirmwareUpgradesRollbacksItem Maven / Gradle / Ivy

There is a newer version: 0.4.0-alpha.1731736975
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.meraki.networks.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.meraki.networks.outputs.FirmwareUpgradesRollbacksItemReason;
import com.pulumi.meraki.networks.outputs.FirmwareUpgradesRollbacksItemToVersion;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FirmwareUpgradesRollbacksItem {
    /**
     * @return Product type to rollback (if the network is a combined network)
     * 
     */
    private @Nullable String product;
    /**
     * @return Reasons for the rollback
     * 
     */
    private @Nullable List reasons;
    /**
     * @return Status of the rollback
     * 
     */
    private @Nullable String status;
    /**
     * @return Scheduled time for the rollback
     * 
     */
    private @Nullable String time;
    /**
     * @return Version to downgrade to (if the network has firmware flexibility)
     * 
     */
    private @Nullable FirmwareUpgradesRollbacksItemToVersion toVersion;
    /**
     * @return Batch ID of the firmware rollback
     * 
     */
    private @Nullable String upgradeBatchId;

    private FirmwareUpgradesRollbacksItem() {}
    /**
     * @return Product type to rollback (if the network is a combined network)
     * 
     */
    public Optional product() {
        return Optional.ofNullable(this.product);
    }
    /**
     * @return Reasons for the rollback
     * 
     */
    public List reasons() {
        return this.reasons == null ? List.of() : this.reasons;
    }
    /**
     * @return Status of the rollback
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }
    /**
     * @return Scheduled time for the rollback
     * 
     */
    public Optional time() {
        return Optional.ofNullable(this.time);
    }
    /**
     * @return Version to downgrade to (if the network has firmware flexibility)
     * 
     */
    public Optional toVersion() {
        return Optional.ofNullable(this.toVersion);
    }
    /**
     * @return Batch ID of the firmware rollback
     * 
     */
    public Optional upgradeBatchId() {
        return Optional.ofNullable(this.upgradeBatchId);
    }

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

    public static Builder builder(FirmwareUpgradesRollbacksItem defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String product;
        private @Nullable List reasons;
        private @Nullable String status;
        private @Nullable String time;
        private @Nullable FirmwareUpgradesRollbacksItemToVersion toVersion;
        private @Nullable String upgradeBatchId;
        public Builder() {}
        public Builder(FirmwareUpgradesRollbacksItem defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.product = defaults.product;
    	      this.reasons = defaults.reasons;
    	      this.status = defaults.status;
    	      this.time = defaults.time;
    	      this.toVersion = defaults.toVersion;
    	      this.upgradeBatchId = defaults.upgradeBatchId;
        }

        @CustomType.Setter
        public Builder product(@Nullable String product) {

            this.product = product;
            return this;
        }
        @CustomType.Setter
        public Builder reasons(@Nullable List reasons) {

            this.reasons = reasons;
            return this;
        }
        public Builder reasons(FirmwareUpgradesRollbacksItemReason... reasons) {
            return reasons(List.of(reasons));
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {

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

            this.time = time;
            return this;
        }
        @CustomType.Setter
        public Builder toVersion(@Nullable FirmwareUpgradesRollbacksItemToVersion toVersion) {

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

            this.upgradeBatchId = upgradeBatchId;
            return this;
        }
        public FirmwareUpgradesRollbacksItem build() {
            final var _resultValue = new FirmwareUpgradesRollbacksItem();
            _resultValue.product = product;
            _resultValue.reasons = reasons;
            _resultValue.status = status;
            _resultValue.time = time;
            _resultValue.toVersion = toVersion;
            _resultValue.upgradeBatchId = upgradeBatchId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy