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

com.pulumi.azurenative.insights.outputs.DataSourceResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.insights.outputs;

import com.pulumi.azurenative.insights.outputs.DataSourceConfigurationResponse;
import com.pulumi.azurenative.insights.outputs.SinkConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class DataSourceResponse {
    private DataSourceConfigurationResponse configuration;
    /**
     * @return Datasource kind
     * 
     */
    private String kind;
    private List sinks;

    private DataSourceResponse() {}
    public DataSourceConfigurationResponse configuration() {
        return this.configuration;
    }
    /**
     * @return Datasource kind
     * 
     */
    public String kind() {
        return this.kind;
    }
    public List sinks() {
        return this.sinks;
    }

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

    public static Builder builder(DataSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private DataSourceConfigurationResponse configuration;
        private String kind;
        private List sinks;
        public Builder() {}
        public Builder(DataSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.configuration = defaults.configuration;
    	      this.kind = defaults.kind;
    	      this.sinks = defaults.sinks;
        }

        @CustomType.Setter
        public Builder configuration(DataSourceConfigurationResponse configuration) {
            if (configuration == null) {
              throw new MissingRequiredPropertyException("DataSourceResponse", "configuration");
            }
            this.configuration = configuration;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("DataSourceResponse", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder sinks(List sinks) {
            if (sinks == null) {
              throw new MissingRequiredPropertyException("DataSourceResponse", "sinks");
            }
            this.sinks = sinks;
            return this;
        }
        public Builder sinks(SinkConfigurationResponse... sinks) {
            return sinks(List.of(sinks));
        }
        public DataSourceResponse build() {
            final var _resultValue = new DataSourceResponse();
            _resultValue.configuration = configuration;
            _resultValue.kind = kind;
            _resultValue.sinks = sinks;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy