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

com.pulumi.azurenative.securityinsights.outputs.GetInsightsResultsMetadataResponse 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.securityinsights.outputs;

import com.pulumi.azurenative.securityinsights.outputs.GetInsightsErrorKindResponse;
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 GetInsightsResultsMetadataResponse {
    /**
     * @return information about the failed queries
     * 
     */
    private @Nullable List errors;
    /**
     * @return the total items found for the insights request
     * 
     */
    private Integer totalCount;

    private GetInsightsResultsMetadataResponse() {}
    /**
     * @return information about the failed queries
     * 
     */
    public List errors() {
        return this.errors == null ? List.of() : this.errors;
    }
    /**
     * @return the total items found for the insights request
     * 
     */
    public Integer totalCount() {
        return this.totalCount;
    }

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

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

        @CustomType.Setter
        public Builder errors(@Nullable List errors) {

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy