com.pulumi.kubernetes.events.v1.outputs.EventSeries 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.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class EventSeries {
/**
* @return count is the number of occurrences in this series up to the last heartbeat time.
*
*/
private Integer count;
/**
* @return lastObservedTime is the time when last Event from the series was seen before last heartbeat.
*
*/
private String lastObservedTime;
private EventSeries() {}
/**
* @return count is the number of occurrences in this series up to the last heartbeat time.
*
*/
public Integer count() {
return this.count;
}
/**
* @return lastObservedTime is the time when last Event from the series was seen before last heartbeat.
*
*/
public String lastObservedTime() {
return this.lastObservedTime;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventSeries defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer count;
private String lastObservedTime;
public Builder() {}
public Builder(EventSeries defaults) {
Objects.requireNonNull(defaults);
this.count = defaults.count;
this.lastObservedTime = defaults.lastObservedTime;
}
@CustomType.Setter
public Builder count(Integer count) {
if (count == null) {
throw new MissingRequiredPropertyException("EventSeries", "count");
}
this.count = count;
return this;
}
@CustomType.Setter
public Builder lastObservedTime(String lastObservedTime) {
if (lastObservedTime == null) {
throw new MissingRequiredPropertyException("EventSeries", "lastObservedTime");
}
this.lastObservedTime = lastObservedTime;
return this;
}
public EventSeries build() {
final var _resultValue = new EventSeries();
_resultValue.count = count;
_resultValue.lastObservedTime = lastObservedTime;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy