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

com.pulumi.kubernetes.batch.v1.inputs.CronJobStatusArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.batch.v1.inputs;

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


/**
 * CronJobStatus represents the current state of a cron job.
 * 
 */
public final class CronJobStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final CronJobStatusArgs Empty = new CronJobStatusArgs();

    /**
     * A list of pointers to currently running jobs.
     * 
     */
    @Import(name="active")
    private @Nullable Output> active;

    /**
     * @return A list of pointers to currently running jobs.
     * 
     */
    public Optional>> active() {
        return Optional.ofNullable(this.active);
    }

    /**
     * Information when was the last time the job was successfully scheduled.
     * 
     */
    @Import(name="lastScheduleTime")
    private @Nullable Output lastScheduleTime;

    /**
     * @return Information when was the last time the job was successfully scheduled.
     * 
     */
    public Optional> lastScheduleTime() {
        return Optional.ofNullable(this.lastScheduleTime);
    }

    /**
     * Information when was the last time the job successfully completed.
     * 
     */
    @Import(name="lastSuccessfulTime")
    private @Nullable Output lastSuccessfulTime;

    /**
     * @return Information when was the last time the job successfully completed.
     * 
     */
    public Optional> lastSuccessfulTime() {
        return Optional.ofNullable(this.lastSuccessfulTime);
    }

    private CronJobStatusArgs() {}

    private CronJobStatusArgs(CronJobStatusArgs $) {
        this.active = $.active;
        this.lastScheduleTime = $.lastScheduleTime;
        this.lastSuccessfulTime = $.lastSuccessfulTime;
    }

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

    public static final class Builder {
        private CronJobStatusArgs $;

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

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

        /**
         * @param active A list of pointers to currently running jobs.
         * 
         * @return builder
         * 
         */
        public Builder active(@Nullable Output> active) {
            $.active = active;
            return this;
        }

        /**
         * @param active A list of pointers to currently running jobs.
         * 
         * @return builder
         * 
         */
        public Builder active(List active) {
            return active(Output.of(active));
        }

        /**
         * @param active A list of pointers to currently running jobs.
         * 
         * @return builder
         * 
         */
        public Builder active(ObjectReferenceArgs... active) {
            return active(List.of(active));
        }

        /**
         * @param lastScheduleTime Information when was the last time the job was successfully scheduled.
         * 
         * @return builder
         * 
         */
        public Builder lastScheduleTime(@Nullable Output lastScheduleTime) {
            $.lastScheduleTime = lastScheduleTime;
            return this;
        }

        /**
         * @param lastScheduleTime Information when was the last time the job was successfully scheduled.
         * 
         * @return builder
         * 
         */
        public Builder lastScheduleTime(String lastScheduleTime) {
            return lastScheduleTime(Output.of(lastScheduleTime));
        }

        /**
         * @param lastSuccessfulTime Information when was the last time the job successfully completed.
         * 
         * @return builder
         * 
         */
        public Builder lastSuccessfulTime(@Nullable Output lastSuccessfulTime) {
            $.lastSuccessfulTime = lastSuccessfulTime;
            return this;
        }

        /**
         * @param lastSuccessfulTime Information when was the last time the job successfully completed.
         * 
         * @return builder
         * 
         */
        public Builder lastSuccessfulTime(String lastSuccessfulTime) {
            return lastSuccessfulTime(Output.of(lastSuccessfulTime));
        }

        public CronJobStatusArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy