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

com.pulumi.azurenative.monitor.outputs.PipelineResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.monitor.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class PipelineResponse {
    /**
     * @return Reference to exporters configured for the pipeline.
     * 
     */
    private List exporters;
    /**
     * @return Name of the pipeline.
     * 
     */
    private String name;
    /**
     * @return Reference to processors configured for the pipeline.
     * 
     */
    private @Nullable List processors;
    /**
     * @return Reference to receivers configured for the pipeline.
     * 
     */
    private List receivers;
    /**
     * @return The type of pipeline
     * 
     */
    private String type;

    private PipelineResponse() {}
    /**
     * @return Reference to exporters configured for the pipeline.
     * 
     */
    public List exporters() {
        return this.exporters;
    }
    /**
     * @return Name of the pipeline.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Reference to processors configured for the pipeline.
     * 
     */
    public List processors() {
        return this.processors == null ? List.of() : this.processors;
    }
    /**
     * @return Reference to receivers configured for the pipeline.
     * 
     */
    public List receivers() {
        return this.receivers;
    }
    /**
     * @return The type of pipeline
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(PipelineResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List exporters;
        private String name;
        private @Nullable List processors;
        private List receivers;
        private String type;
        public Builder() {}
        public Builder(PipelineResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.exporters = defaults.exporters;
    	      this.name = defaults.name;
    	      this.processors = defaults.processors;
    	      this.receivers = defaults.receivers;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder exporters(List exporters) {
            if (exporters == null) {
              throw new MissingRequiredPropertyException("PipelineResponse", "exporters");
            }
            this.exporters = exporters;
            return this;
        }
        public Builder exporters(String... exporters) {
            return exporters(List.of(exporters));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("PipelineResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder processors(@Nullable List processors) {

            this.processors = processors;
            return this;
        }
        public Builder processors(String... processors) {
            return processors(List.of(processors));
        }
        @CustomType.Setter
        public Builder receivers(List receivers) {
            if (receivers == null) {
              throw new MissingRequiredPropertyException("PipelineResponse", "receivers");
            }
            this.receivers = receivers;
            return this;
        }
        public Builder receivers(String... receivers) {
            return receivers(List.of(receivers));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("PipelineResponse", "type");
            }
            this.type = type;
            return this;
        }
        public PipelineResponse build() {
            final var _resultValue = new PipelineResponse();
            _resultValue.exporters = exporters;
            _resultValue.name = name;
            _resultValue.processors = processors;
            _resultValue.receivers = receivers;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy