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

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

import com.pulumi.azurenative.azurestackhci.enums.UpdateSummariesPropertiesState;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class UpdateSummaryArgs extends com.pulumi.resources.ResourceArgs {

    public static final UpdateSummaryArgs Empty = new UpdateSummaryArgs();

    /**
     * The name of the cluster.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return The name of the cluster.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    /**
     * Current Solution Bundle version of the stamp.
     * 
     */
    @Import(name="currentVersion")
    private @Nullable Output currentVersion;

    /**
     * @return Current Solution Bundle version of the stamp.
     * 
     */
    public Optional> currentVersion() {
        return Optional.ofNullable(this.currentVersion);
    }

    /**
     * Name of the hardware model.
     * 
     */
    @Import(name="hardwareModel")
    private @Nullable Output hardwareModel;

    /**
     * @return Name of the hardware model.
     * 
     */
    public Optional> hardwareModel() {
        return Optional.ofNullable(this.hardwareModel);
    }

    /**
     * Last time the package-specific checks were run.
     * 
     */
    @Import(name="healthCheckDate")
    private @Nullable Output healthCheckDate;

    /**
     * @return Last time the package-specific checks were run.
     * 
     */
    public Optional> healthCheckDate() {
        return Optional.ofNullable(this.healthCheckDate);
    }

    /**
     * Last time the update service successfully checked for updates
     * 
     */
    @Import(name="lastChecked")
    private @Nullable Output lastChecked;

    /**
     * @return Last time the update service successfully checked for updates
     * 
     */
    public Optional> lastChecked() {
        return Optional.ofNullable(this.lastChecked);
    }

    /**
     * Last time an update installation completed successfully.
     * 
     */
    @Import(name="lastUpdated")
    private @Nullable Output lastUpdated;

    /**
     * @return Last time an update installation completed successfully.
     * 
     */
    public Optional> lastUpdated() {
        return Optional.ofNullable(this.lastUpdated);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * OEM family name.
     * 
     */
    @Import(name="oemFamily")
    private @Nullable Output oemFamily;

    /**
     * @return OEM family name.
     * 
     */
    public Optional> oemFamily() {
        return Optional.ofNullable(this.oemFamily);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Overall update state of the stamp.
     * 
     */
    @Import(name="state")
    private @Nullable Output> state;

    /**
     * @return Overall update state of the stamp.
     * 
     */
    public Optional>> state() {
        return Optional.ofNullable(this.state);
    }

    private UpdateSummaryArgs() {}

    private UpdateSummaryArgs(UpdateSummaryArgs $) {
        this.clusterName = $.clusterName;
        this.currentVersion = $.currentVersion;
        this.hardwareModel = $.hardwareModel;
        this.healthCheckDate = $.healthCheckDate;
        this.lastChecked = $.lastChecked;
        this.lastUpdated = $.lastUpdated;
        this.location = $.location;
        this.oemFamily = $.oemFamily;
        this.resourceGroupName = $.resourceGroupName;
        this.state = $.state;
    }

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

    public static final class Builder {
        private UpdateSummaryArgs $;

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

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

        /**
         * @param clusterName The name of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @param currentVersion Current Solution Bundle version of the stamp.
         * 
         * @return builder
         * 
         */
        public Builder currentVersion(@Nullable Output currentVersion) {
            $.currentVersion = currentVersion;
            return this;
        }

        /**
         * @param currentVersion Current Solution Bundle version of the stamp.
         * 
         * @return builder
         * 
         */
        public Builder currentVersion(String currentVersion) {
            return currentVersion(Output.of(currentVersion));
        }

        /**
         * @param hardwareModel Name of the hardware model.
         * 
         * @return builder
         * 
         */
        public Builder hardwareModel(@Nullable Output hardwareModel) {
            $.hardwareModel = hardwareModel;
            return this;
        }

        /**
         * @param hardwareModel Name of the hardware model.
         * 
         * @return builder
         * 
         */
        public Builder hardwareModel(String hardwareModel) {
            return hardwareModel(Output.of(hardwareModel));
        }

        /**
         * @param healthCheckDate Last time the package-specific checks were run.
         * 
         * @return builder
         * 
         */
        public Builder healthCheckDate(@Nullable Output healthCheckDate) {
            $.healthCheckDate = healthCheckDate;
            return this;
        }

        /**
         * @param healthCheckDate Last time the package-specific checks were run.
         * 
         * @return builder
         * 
         */
        public Builder healthCheckDate(String healthCheckDate) {
            return healthCheckDate(Output.of(healthCheckDate));
        }

        /**
         * @param lastChecked Last time the update service successfully checked for updates
         * 
         * @return builder
         * 
         */
        public Builder lastChecked(@Nullable Output lastChecked) {
            $.lastChecked = lastChecked;
            return this;
        }

        /**
         * @param lastChecked Last time the update service successfully checked for updates
         * 
         * @return builder
         * 
         */
        public Builder lastChecked(String lastChecked) {
            return lastChecked(Output.of(lastChecked));
        }

        /**
         * @param lastUpdated Last time an update installation completed successfully.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdated(@Nullable Output lastUpdated) {
            $.lastUpdated = lastUpdated;
            return this;
        }

        /**
         * @param lastUpdated Last time an update installation completed successfully.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdated(String lastUpdated) {
            return lastUpdated(Output.of(lastUpdated));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param oemFamily OEM family name.
         * 
         * @return builder
         * 
         */
        public Builder oemFamily(@Nullable Output oemFamily) {
            $.oemFamily = oemFamily;
            return this;
        }

        /**
         * @param oemFamily OEM family name.
         * 
         * @return builder
         * 
         */
        public Builder oemFamily(String oemFamily) {
            return oemFamily(Output.of(oemFamily));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param state Overall update state of the stamp.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state Overall update state of the stamp.
         * 
         * @return builder
         * 
         */
        public Builder state(Either state) {
            return state(Output.of(state));
        }

        /**
         * @param state Overall update state of the stamp.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Either.ofLeft(state));
        }

        /**
         * @param state Overall update state of the stamp.
         * 
         * @return builder
         * 
         */
        public Builder state(UpdateSummariesPropertiesState state) {
            return state(Either.ofRight(state));
        }

        public UpdateSummaryArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("UpdateSummaryArgs", "clusterName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("UpdateSummaryArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy