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

com.pulumi.azurenative.servicefabricmesh.outputs.ContainerEventResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.azurenative.servicefabricmesh.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 ContainerEventResponse {
    /**
     * @return The count of the event.
     * 
     */
    private @Nullable Integer count;
    /**
     * @return Date/time of the first event.
     * 
     */
    private @Nullable String firstTimestamp;
    /**
     * @return Date/time of the last event.
     * 
     */
    private @Nullable String lastTimestamp;
    /**
     * @return The event message
     * 
     */
    private @Nullable String message;
    /**
     * @return The name of the container event.
     * 
     */
    private @Nullable String name;
    /**
     * @return The event type.
     * 
     */
    private @Nullable String type;

    private ContainerEventResponse() {}
    /**
     * @return The count of the event.
     * 
     */
    public Optional count() {
        return Optional.ofNullable(this.count);
    }
    /**
     * @return Date/time of the first event.
     * 
     */
    public Optional firstTimestamp() {
        return Optional.ofNullable(this.firstTimestamp);
    }
    /**
     * @return Date/time of the last event.
     * 
     */
    public Optional lastTimestamp() {
        return Optional.ofNullable(this.lastTimestamp);
    }
    /**
     * @return The event message
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }
    /**
     * @return The name of the container event.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return The event type.
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

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

    public static Builder builder(ContainerEventResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer count;
        private @Nullable String firstTimestamp;
        private @Nullable String lastTimestamp;
        private @Nullable String message;
        private @Nullable String name;
        private @Nullable String type;
        public Builder() {}
        public Builder(ContainerEventResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.count = defaults.count;
    	      this.firstTimestamp = defaults.firstTimestamp;
    	      this.lastTimestamp = defaults.lastTimestamp;
    	      this.message = defaults.message;
    	      this.name = defaults.name;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder count(@Nullable Integer count) {

            this.count = count;
            return this;
        }
        @CustomType.Setter
        public Builder firstTimestamp(@Nullable String firstTimestamp) {

            this.firstTimestamp = firstTimestamp;
            return this;
        }
        @CustomType.Setter
        public Builder lastTimestamp(@Nullable String lastTimestamp) {

            this.lastTimestamp = lastTimestamp;
            return this;
        }
        @CustomType.Setter
        public Builder message(@Nullable String message) {

            this.message = message;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {

            this.type = type;
            return this;
        }
        public ContainerEventResponse build() {
            final var _resultValue = new ContainerEventResponse();
            _resultValue.count = count;
            _resultValue.firstTimestamp = firstTimestamp;
            _resultValue.lastTimestamp = lastTimestamp;
            _resultValue.message = message;
            _resultValue.name = name;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy