com.pulumi.azurenative.insights.inputs.DataSourceArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.inputs;
import com.pulumi.azurenative.insights.inputs.DataSourceConfigurationArgs;
import com.pulumi.azurenative.insights.inputs.SinkConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
/**
* Data source object contains configuration to collect telemetry and one or more sinks to send that telemetry data to
*
*/
public final class DataSourceArgs extends com.pulumi.resources.ResourceArgs {
public static final DataSourceArgs Empty = new DataSourceArgs();
@Import(name="configuration", required=true)
private Output configuration;
public Output configuration() {
return this.configuration;
}
/**
* Datasource kind
*
*/
@Import(name="kind", required=true)
private Output kind;
/**
* @return Datasource kind
*
*/
public Output kind() {
return this.kind;
}
@Import(name="sinks", required=true)
private Output> sinks;
public Output> sinks() {
return this.sinks;
}
private DataSourceArgs() {}
private DataSourceArgs(DataSourceArgs $) {
this.configuration = $.configuration;
this.kind = $.kind;
this.sinks = $.sinks;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataSourceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DataSourceArgs $;
public Builder() {
$ = new DataSourceArgs();
}
public Builder(DataSourceArgs defaults) {
$ = new DataSourceArgs(Objects.requireNonNull(defaults));
}
public Builder configuration(Output configuration) {
$.configuration = configuration;
return this;
}
public Builder configuration(DataSourceConfigurationArgs configuration) {
return configuration(Output.of(configuration));
}
/**
* @param kind Datasource kind
*
* @return builder
*
*/
public Builder kind(Output kind) {
$.kind = kind;
return this;
}
/**
* @param kind Datasource kind
*
* @return builder
*
*/
public Builder kind(String kind) {
return kind(Output.of(kind));
}
public Builder sinks(Output> sinks) {
$.sinks = sinks;
return this;
}
public Builder sinks(List sinks) {
return sinks(Output.of(sinks));
}
public Builder sinks(SinkConfigurationArgs... sinks) {
return sinks(List.of(sinks));
}
public DataSourceArgs build() {
if ($.configuration == null) {
throw new MissingRequiredPropertyException("DataSourceArgs", "configuration");
}
if ($.kind == null) {
throw new MissingRequiredPropertyException("DataSourceArgs", "kind");
}
if ($.sinks == null) {
throw new MissingRequiredPropertyException("DataSourceArgs", "sinks");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy