com.pulumi.azurenative.containerinstance.outputs.LogAnalyticsResponse 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.containerinstance.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 LogAnalyticsResponse {
/**
* @return The log type to be used.
*
*/
private @Nullable String logType;
/**
* @return Metadata for log analytics.
*
*/
private @Nullable Map metadata;
/**
* @return The workspace id for log analytics
*
*/
private String workspaceId;
/**
* @return The workspace key for log analytics
*
*/
private String workspaceKey;
/**
* @return The workspace resource id for log analytics
*
*/
private @Nullable String workspaceResourceId;
private LogAnalyticsResponse() {}
/**
* @return The log type to be used.
*
*/
public Optional logType() {
return Optional.ofNullable(this.logType);
}
/**
* @return Metadata for log analytics.
*
*/
public Map metadata() {
return this.metadata == null ? Map.of() : this.metadata;
}
/**
* @return The workspace id for log analytics
*
*/
public String workspaceId() {
return this.workspaceId;
}
/**
* @return The workspace key for log analytics
*
*/
public String workspaceKey() {
return this.workspaceKey;
}
/**
* @return The workspace resource id for log analytics
*
*/
public Optional workspaceResourceId() {
return Optional.ofNullable(this.workspaceResourceId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LogAnalyticsResponse 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;
private @Nullable String workspaceResourceId;
public Builder() {}
public Builder(LogAnalyticsResponse defaults) {
Objects.requireNonNull(defaults);
this.logType = defaults.logType;
this.metadata = defaults.metadata;
this.workspaceId = defaults.workspaceId;
this.workspaceKey = defaults.workspaceKey;
this.workspaceResourceId = defaults.workspaceResourceId;
}
@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("LogAnalyticsResponse", "workspaceId");
}
this.workspaceId = workspaceId;
return this;
}
@CustomType.Setter
public Builder workspaceKey(String workspaceKey) {
if (workspaceKey == null) {
throw new MissingRequiredPropertyException("LogAnalyticsResponse", "workspaceKey");
}
this.workspaceKey = workspaceKey;
return this;
}
@CustomType.Setter
public Builder workspaceResourceId(@Nullable String workspaceResourceId) {
this.workspaceResourceId = workspaceResourceId;
return this;
}
public LogAnalyticsResponse build() {
final var _resultValue = new LogAnalyticsResponse();
_resultValue.logType = logType;
_resultValue.metadata = metadata;
_resultValue.workspaceId = workspaceId;
_resultValue.workspaceKey = workspaceKey;
_resultValue.workspaceResourceId = workspaceResourceId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy