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

com.pulumi.kubernetes.batch.v1beta1.outputs.CronJobStatusPatch 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.v1beta1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.core.v1.outputs.ObjectReferencePatch;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CronJobStatusPatch {
    /**
     * @return A list of pointers to currently running jobs.
     * 
     */
    private @Nullable List active;
    /**
     * @return Information when was the last time the job was successfully scheduled.
     * 
     */
    private @Nullable String lastScheduleTime;

    private CronJobStatusPatch() {}
    /**
     * @return A list of pointers to currently running jobs.
     * 
     */
    public List active() {
        return this.active == null ? List.of() : this.active;
    }
    /**
     * @return Information when was the last time the job was successfully scheduled.
     * 
     */
    public Optional lastScheduleTime() {
        return Optional.ofNullable(this.lastScheduleTime);
    }

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

    public static Builder builder(CronJobStatusPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List active;
        private @Nullable String lastScheduleTime;
        public Builder() {}
        public Builder(CronJobStatusPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.active = defaults.active;
    	      this.lastScheduleTime = defaults.lastScheduleTime;
        }

        @CustomType.Setter
        public Builder active(@Nullable List active) {

            this.active = active;
            return this;
        }
        public Builder active(ObjectReferencePatch... active) {
            return active(List.of(active));
        }
        @CustomType.Setter
        public Builder lastScheduleTime(@Nullable String lastScheduleTime) {

            this.lastScheduleTime = lastScheduleTime;
            return this;
        }
        public CronJobStatusPatch build() {
            final var _resultValue = new CronJobStatusPatch();
            _resultValue.active = active;
            _resultValue.lastScheduleTime = lastScheduleTime;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy