
com.pulumi.azurenative.scom.outputs.LogAnalyticsConfigurationResponse 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.scom.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LogAnalyticsConfigurationResponse {
/**
* @return The types of data to be ingested to Log Analytics workspace.
*
*/
private @Nullable List dataTypes;
/**
* @return A one-time optional parameter to import data of last 7 days.
*
*/
private @Nullable Boolean importData;
/**
* @return The resource ID of the Log Analytics workspace to be used.
*
*/
private @Nullable String workspaceId;
private LogAnalyticsConfigurationResponse() {}
/**
* @return The types of data to be ingested to Log Analytics workspace.
*
*/
public List dataTypes() {
return this.dataTypes == null ? List.of() : this.dataTypes;
}
/**
* @return A one-time optional parameter to import data of last 7 days.
*
*/
public Optional importData() {
return Optional.ofNullable(this.importData);
}
/**
* @return The resource ID of the Log Analytics workspace to be used.
*
*/
public Optional workspaceId() {
return Optional.ofNullable(this.workspaceId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LogAnalyticsConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dataTypes;
private @Nullable Boolean importData;
private @Nullable String workspaceId;
public Builder() {}
public Builder(LogAnalyticsConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.dataTypes = defaults.dataTypes;
this.importData = defaults.importData;
this.workspaceId = defaults.workspaceId;
}
@CustomType.Setter
public Builder dataTypes(@Nullable List dataTypes) {
this.dataTypes = dataTypes;
return this;
}
public Builder dataTypes(String... dataTypes) {
return dataTypes(List.of(dataTypes));
}
@CustomType.Setter
public Builder importData(@Nullable Boolean importData) {
this.importData = importData;
return this;
}
@CustomType.Setter
public Builder workspaceId(@Nullable String workspaceId) {
this.workspaceId = workspaceId;
return this;
}
public LogAnalyticsConfigurationResponse build() {
final var _resultValue = new LogAnalyticsConfigurationResponse();
_resultValue.dataTypes = dataTypes;
_resultValue.importData = importData;
_resultValue.workspaceId = workspaceId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy