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

com.pulumi.kubernetes.events.v1.outputs.EventSeriesPatch 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 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 count is the number of occurrences in this series up to the last heartbeat time.
     * 
     */
    private @Nullable Integer count;
    /**
     * @return lastObservedTime is the time when last Event from the series was seen before last heartbeat.
     * 
     */
    private @Nullable String lastObservedTime;

    private EventSeriesPatch() {}
    /**
     * @return count is the number of occurrences in this series up to the last heartbeat time.
     * 
     */
    public Optional count() {
        return Optional.ofNullable(this.count);
    }
    /**
     * @return lastObservedTime is the time when last Event from the series was seen before last heartbeat.
     * 
     */
    public Optional lastObservedTime() {
        return Optional.ofNullable(this.lastObservedTime);
    }

    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;
        public Builder() {}
        public Builder(EventSeriesPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.count = defaults.count;
    	      this.lastObservedTime = defaults.lastObservedTime;
        }

        @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;
        }
        public EventSeriesPatch build() {
            final var _resultValue = new EventSeriesPatch();
            _resultValue.count = count;
            _resultValue.lastObservedTime = lastObservedTime;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy