com.pulumi.kubernetes.batch.v1.outputs.CronJobStatusPatch Maven / Gradle / Ivy
// *** 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.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;
/**
* @return Information when was the last time the job successfully completed.
*
*/
private @Nullable String lastSuccessfulTime;
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);
}
/**
* @return Information when was the last time the job successfully completed.
*
*/
public Optional lastSuccessfulTime() {
return Optional.ofNullable(this.lastSuccessfulTime);
}
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;
private @Nullable String lastSuccessfulTime;
public Builder() {}
public Builder(CronJobStatusPatch defaults) {
Objects.requireNonNull(defaults);
this.active = defaults.active;
this.lastScheduleTime = defaults.lastScheduleTime;
this.lastSuccessfulTime = defaults.lastSuccessfulTime;
}
@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;
}
@CustomType.Setter
public Builder lastSuccessfulTime(@Nullable String lastSuccessfulTime) {
this.lastSuccessfulTime = lastSuccessfulTime;
return this;
}
public CronJobStatusPatch build() {
final var o = new CronJobStatusPatch();
o.active = active;
o.lastScheduleTime = lastScheduleTime;
o.lastSuccessfulTime = lastSuccessfulTime;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy