com.pulumi.kubernetes.events.v1beta1.outputs.EventSeriesPatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** 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.events.v1beta1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EventSeriesPatch {
/**
* @return Number of occurrences in this series up to the last heartbeat time
*
*/
private @Nullable Integer count;
/**
* @return Time when last Event from the series was seen before last heartbeat.
*
*/
private @Nullable String lastObservedTime;
/**
* @return Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18
*
*/
private @Nullable String state;
private EventSeriesPatch() {}
/**
* @return Number of occurrences in this series up to the last heartbeat time
*
*/
public Optional count() {
return Optional.ofNullable(this.count);
}
/**
* @return Time when last Event from the series was seen before last heartbeat.
*
*/
public Optional lastObservedTime() {
return Optional.ofNullable(this.lastObservedTime);
}
/**
* @return Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18
*
*/
public Optional state() {
return Optional.ofNullable(this.state);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventSeriesPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer count;
private @Nullable String lastObservedTime;
private @Nullable String state;
public Builder() {}
public Builder(EventSeriesPatch defaults) {
Objects.requireNonNull(defaults);
this.count = defaults.count;
this.lastObservedTime = defaults.lastObservedTime;
this.state = defaults.state;
}
@CustomType.Setter
public Builder count(@Nullable Integer count) {
this.count = count;
return this;
}
@CustomType.Setter
public Builder lastObservedTime(@Nullable String lastObservedTime) {
this.lastObservedTime = lastObservedTime;
return this;
}
@CustomType.Setter
public Builder state(@Nullable String state) {
this.state = state;
return this;
}
public EventSeriesPatch build() {
final var _resultValue = new EventSeriesPatch();
_resultValue.count = count;
_resultValue.lastObservedTime = lastObservedTime;
_resultValue.state = state;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy