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

com.ovhcloud.pulumi.ovh.Dedicated.inputs.ServerRebootTaskState Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.Dedicated.inputs;

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


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

    public static final ServerRebootTaskState Empty = new ServerRebootTaskState();

    /**
     * Details of this task. (should be `Reboot asked`)
     * 
     */
    @Import(name="comment")
    private @Nullable Output comment;

    /**
     * @return Details of this task. (should be `Reboot asked`)
     * 
     */
    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    /**
     * Completion date in RFC3339 format.
     * 
     */
    @Import(name="doneDate")
    private @Nullable Output doneDate;

    /**
     * @return Completion date in RFC3339 format.
     * 
     */
    public Optional> doneDate() {
        return Optional.ofNullable(this.doneDate);
    }

    /**
     * Function name (should be `hardReboot`).
     * 
     */
    @Import(name="function")
    private @Nullable Output function;

    /**
     * @return Function name (should be `hardReboot`).
     * 
     */
    public Optional> function() {
        return Optional.ofNullable(this.function);
    }

    /**
     * List of values tracked to trigger reboot, used also to form implicit dependencies.
     * 
     */
    @Import(name="keepers")
    private @Nullable Output> keepers;

    /**
     * @return List of values tracked to trigger reboot, used also to form implicit dependencies.
     * 
     */
    public Optional>> keepers() {
        return Optional.ofNullable(this.keepers);
    }

    /**
     * Last update in RFC3339 format.
     * 
     */
    @Import(name="lastUpdate")
    private @Nullable Output lastUpdate;

    /**
     * @return Last update in RFC3339 format.
     * 
     */
    public Optional> lastUpdate() {
        return Optional.ofNullable(this.lastUpdate);
    }

    /**
     * The service_name of your dedicated server.
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return The service_name of your dedicated server.
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

    /**
     * Task creation date in RFC3339 format.
     * 
     */
    @Import(name="startDate")
    private @Nullable Output startDate;

    /**
     * @return Task creation date in RFC3339 format.
     * 
     */
    public Optional> startDate() {
        return Optional.ofNullable(this.startDate);
    }

    /**
     * Task status (should be `done`)
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Task status (should be `done`)
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private ServerRebootTaskState() {}

    private ServerRebootTaskState(ServerRebootTaskState $) {
        this.comment = $.comment;
        this.doneDate = $.doneDate;
        this.function = $.function;
        this.keepers = $.keepers;
        this.lastUpdate = $.lastUpdate;
        this.serviceName = $.serviceName;
        this.startDate = $.startDate;
        this.status = $.status;
    }

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

    public static final class Builder {
        private ServerRebootTaskState $;

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

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

        /**
         * @param comment Details of this task. (should be `Reboot asked`)
         * 
         * @return builder
         * 
         */
        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        /**
         * @param comment Details of this task. (should be `Reboot asked`)
         * 
         * @return builder
         * 
         */
        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        /**
         * @param doneDate Completion date in RFC3339 format.
         * 
         * @return builder
         * 
         */
        public Builder doneDate(@Nullable Output doneDate) {
            $.doneDate = doneDate;
            return this;
        }

        /**
         * @param doneDate Completion date in RFC3339 format.
         * 
         * @return builder
         * 
         */
        public Builder doneDate(String doneDate) {
            return doneDate(Output.of(doneDate));
        }

        /**
         * @param function Function name (should be `hardReboot`).
         * 
         * @return builder
         * 
         */
        public Builder function(@Nullable Output function) {
            $.function = function;
            return this;
        }

        /**
         * @param function Function name (should be `hardReboot`).
         * 
         * @return builder
         * 
         */
        public Builder function(String function) {
            return function(Output.of(function));
        }

        /**
         * @param keepers List of values tracked to trigger reboot, used also to form implicit dependencies.
         * 
         * @return builder
         * 
         */
        public Builder keepers(@Nullable Output> keepers) {
            $.keepers = keepers;
            return this;
        }

        /**
         * @param keepers List of values tracked to trigger reboot, used also to form implicit dependencies.
         * 
         * @return builder
         * 
         */
        public Builder keepers(List keepers) {
            return keepers(Output.of(keepers));
        }

        /**
         * @param keepers List of values tracked to trigger reboot, used also to form implicit dependencies.
         * 
         * @return builder
         * 
         */
        public Builder keepers(String... keepers) {
            return keepers(List.of(keepers));
        }

        /**
         * @param lastUpdate Last update in RFC3339 format.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdate(@Nullable Output lastUpdate) {
            $.lastUpdate = lastUpdate;
            return this;
        }

        /**
         * @param lastUpdate Last update in RFC3339 format.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdate(String lastUpdate) {
            return lastUpdate(Output.of(lastUpdate));
        }

        /**
         * @param serviceName The service_name of your dedicated server.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The service_name of your dedicated server.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param startDate Task creation date in RFC3339 format.
         * 
         * @return builder
         * 
         */
        public Builder startDate(@Nullable Output startDate) {
            $.startDate = startDate;
            return this;
        }

        /**
         * @param startDate Task creation date in RFC3339 format.
         * 
         * @return builder
         * 
         */
        public Builder startDate(String startDate) {
            return startDate(Output.of(startDate));
        }

        /**
         * @param status Task status (should be `done`)
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Task status (should be `done`)
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public ServerRebootTaskState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy