
com.pulumi.azurenative.hdinsight.outputs.ClusterPoolResourcePropertiesResponseLogAnalyticsProfile 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.hdinsight.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ClusterPoolResourcePropertiesResponseLogAnalyticsProfile {
/**
* @return True if log analytics is enabled for cluster pool, otherwise false.
*
*/
private Boolean enabled;
/**
* @return Log analytics workspace to associate with the OMS agent.
*
*/
private @Nullable String workspaceId;
private ClusterPoolResourcePropertiesResponseLogAnalyticsProfile() {}
/**
* @return True if log analytics is enabled for cluster pool, otherwise false.
*
*/
public Boolean enabled() {
return this.enabled;
}
/**
* @return Log analytics workspace to associate with the OMS agent.
*
*/
public Optional workspaceId() {
return Optional.ofNullable(this.workspaceId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClusterPoolResourcePropertiesResponseLogAnalyticsProfile defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean enabled;
private @Nullable String workspaceId;
public Builder() {}
public Builder(ClusterPoolResourcePropertiesResponseLogAnalyticsProfile defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.workspaceId = defaults.workspaceId;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("ClusterPoolResourcePropertiesResponseLogAnalyticsProfile", "enabled");
}
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder workspaceId(@Nullable String workspaceId) {
this.workspaceId = workspaceId;
return this;
}
public ClusterPoolResourcePropertiesResponseLogAnalyticsProfile build() {
final var _resultValue = new ClusterPoolResourcePropertiesResponseLogAnalyticsProfile();
_resultValue.enabled = enabled;
_resultValue.workspaceId = workspaceId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy