com.pulumi.azure.containerservice.outputs.GroupDiagnosticsLogAnalytics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.containerservice.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GroupDiagnosticsLogAnalytics {
/**
* @return The log type which should be used. Possible values are `ContainerInsights` and `ContainerInstanceLogs`. Changing this forces a new resource to be created.
*
*/
private @Nullable String logType;
/**
* @return Any metadata required for Log Analytics. Changing this forces a new resource to be created.
*
*/
private @Nullable Map metadata;
/**
* @return The Workspace ID of the Log Analytics Workspace. Changing this forces a new resource to be created.
*
*/
private String workspaceId;
/**
* @return The Workspace Key of the Log Analytics Workspace. Changing this forces a new resource to be created.
*
*/
private String workspaceKey;
private GroupDiagnosticsLogAnalytics() {}
/**
* @return The log type which should be used. Possible values are `ContainerInsights` and `ContainerInstanceLogs`. Changing this forces a new resource to be created.
*
*/
public Optional logType() {
return Optional.ofNullable(this.logType);
}
/**
* @return Any metadata required for Log Analytics. Changing this forces a new resource to be created.
*
*/
public Map metadata() {
return this.metadata == null ? Map.of() : this.metadata;
}
/**
* @return The Workspace ID of the Log Analytics Workspace. Changing this forces a new resource to be created.
*
*/
public String workspaceId() {
return this.workspaceId;
}
/**
* @return The Workspace Key of the Log Analytics Workspace. Changing this forces a new resource to be created.
*
*/
public String workspaceKey() {
return this.workspaceKey;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GroupDiagnosticsLogAnalytics defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String logType;
private @Nullable Map metadata;
private String workspaceId;
private String workspaceKey;
public Builder() {}
public Builder(GroupDiagnosticsLogAnalytics defaults) {
Objects.requireNonNull(defaults);
this.logType = defaults.logType;
this.metadata = defaults.metadata;
this.workspaceId = defaults.workspaceId;
this.workspaceKey = defaults.workspaceKey;
}
@CustomType.Setter
public Builder logType(@Nullable String logType) {
this.logType = logType;
return this;
}
@CustomType.Setter
public Builder metadata(@Nullable Map metadata) {
this.metadata = metadata;
return this;
}
@CustomType.Setter
public Builder workspaceId(String workspaceId) {
if (workspaceId == null) {
throw new MissingRequiredPropertyException("GroupDiagnosticsLogAnalytics", "workspaceId");
}
this.workspaceId = workspaceId;
return this;
}
@CustomType.Setter
public Builder workspaceKey(String workspaceKey) {
if (workspaceKey == null) {
throw new MissingRequiredPropertyException("GroupDiagnosticsLogAnalytics", "workspaceKey");
}
this.workspaceKey = workspaceKey;
return this;
}
public GroupDiagnosticsLogAnalytics build() {
final var _resultValue = new GroupDiagnosticsLogAnalytics();
_resultValue.logType = logType;
_resultValue.metadata = metadata;
_resultValue.workspaceId = workspaceId;
_resultValue.workspaceKey = workspaceKey;
return _resultValue;
}
}
}