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

com.pulumi.kubernetes.events.v1.outputs.EventSeries 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.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