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

com.pulumi.azurenative.securityinsights.outputs.TimelineResultsMetadataResponse Maven / Gradle / Ivy

// *** 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.securityinsights.outputs;

import com.pulumi.azurenative.securityinsights.outputs.TimelineAggregationResponse;
import com.pulumi.azurenative.securityinsights.outputs.TimelineErrorResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class TimelineResultsMetadataResponse {
    /**
     * @return timeline aggregation per kind
     * 
     */
    private List aggregations;
    /**
     * @return information about the failure queries
     * 
     */
    private @Nullable List errors;
    /**
     * @return the total items found for the timeline request
     * 
     */
    private Integer totalCount;

    private TimelineResultsMetadataResponse() {}
    /**
     * @return timeline aggregation per kind
     * 
     */
    public List aggregations() {
        return this.aggregations;
    }
    /**
     * @return information about the failure queries
     * 
     */
    public List errors() {
        return this.errors == null ? List.of() : this.errors;
    }
    /**
     * @return the total items found for the timeline request
     * 
     */
    public Integer totalCount() {
        return this.totalCount;
    }

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

    public static Builder builder(TimelineResultsMetadataResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List aggregations;
        private @Nullable List errors;
        private Integer totalCount;
        public Builder() {}
        public Builder(TimelineResultsMetadataResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.aggregations = defaults.aggregations;
    	      this.errors = defaults.errors;
    	      this.totalCount = defaults.totalCount;
        }

        @CustomType.Setter
        public Builder aggregations(List aggregations) {
            if (aggregations == null) {
              throw new MissingRequiredPropertyException("TimelineResultsMetadataResponse", "aggregations");
            }
            this.aggregations = aggregations;
            return this;
        }
        public Builder aggregations(TimelineAggregationResponse... aggregations) {
            return aggregations(List.of(aggregations));
        }
        @CustomType.Setter
        public Builder errors(@Nullable List errors) {

            this.errors = errors;
            return this;
        }
        public Builder errors(TimelineErrorResponse... errors) {
            return errors(List.of(errors));
        }
        @CustomType.Setter
        public Builder totalCount(Integer totalCount) {
            if (totalCount == null) {
              throw new MissingRequiredPropertyException("TimelineResultsMetadataResponse", "totalCount");
            }
            this.totalCount = totalCount;
            return this;
        }
        public TimelineResultsMetadataResponse build() {
            final var _resultValue = new TimelineResultsMetadataResponse();
            _resultValue.aggregations = aggregations;
            _resultValue.errors = errors;
            _resultValue.totalCount = totalCount;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy