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

com.pulumi.kubernetes.events.v1.inputs.EventSeriesArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0
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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


/**
 * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
 * 
 */
public final class EventSeriesArgs extends com.pulumi.resources.ResourceArgs {

    public static final EventSeriesArgs Empty = new EventSeriesArgs();

    /**
     * count is the number of occurrences in this series up to the last heartbeat time.
     * 
     */
    @Import(name="count", required=true)
    private Output count;

    /**
     * @return count is the number of occurrences in this series up to the last heartbeat time.
     * 
     */
    public Output count() {
        return this.count;
    }

    /**
     * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
     * 
     */
    @Import(name="lastObservedTime", required=true)
    private Output lastObservedTime;

    /**
     * @return lastObservedTime is the time when last Event from the series was seen before last heartbeat.
     * 
     */
    public Output lastObservedTime() {
        return this.lastObservedTime;
    }

    private EventSeriesArgs() {}

    private EventSeriesArgs(EventSeriesArgs $) {
        this.count = $.count;
        this.lastObservedTime = $.lastObservedTime;
    }

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

    public static final class Builder {
        private EventSeriesArgs $;

        public Builder() {
            $ = new EventSeriesArgs();
        }

        public Builder(EventSeriesArgs defaults) {
            $ = new EventSeriesArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param count count is the number of occurrences in this series up to the last heartbeat time.
         * 
         * @return builder
         * 
         */
        public Builder count(Output count) {
            $.count = count;
            return this;
        }

        /**
         * @param count count is the number of occurrences in this series up to the last heartbeat time.
         * 
         * @return builder
         * 
         */
        public Builder count(Integer count) {
            return count(Output.of(count));
        }

        /**
         * @param lastObservedTime lastObservedTime is the time when last Event from the series was seen before last heartbeat.
         * 
         * @return builder
         * 
         */
        public Builder lastObservedTime(Output lastObservedTime) {
            $.lastObservedTime = lastObservedTime;
            return this;
        }

        /**
         * @param lastObservedTime lastObservedTime is the time when last Event from the series was seen before last heartbeat.
         * 
         * @return builder
         * 
         */
        public Builder lastObservedTime(String lastObservedTime) {
            return lastObservedTime(Output.of(lastObservedTime));
        }

        public EventSeriesArgs build() {
            if ($.count == null) {
                throw new MissingRequiredPropertyException("EventSeriesArgs", "count");
            }
            if ($.lastObservedTime == null) {
                throw new MissingRequiredPropertyException("EventSeriesArgs", "lastObservedTime");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy