
com.pulumi.azurenative.containerservice.outputs.ManagedClusterAzureMonitorProfileMetricsResponse 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.containerservice.outputs;
import com.pulumi.azurenative.containerservice.outputs.ManagedClusterAzureMonitorProfileKubeStateMetricsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ManagedClusterAzureMonitorProfileMetricsResponse {
/**
* @return Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling.
*
*/
private Boolean enabled;
/**
* @return Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details.
*
*/
private @Nullable ManagedClusterAzureMonitorProfileKubeStateMetricsResponse kubeStateMetrics;
private ManagedClusterAzureMonitorProfileMetricsResponse() {}
/**
* @return Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling.
*
*/
public Boolean enabled() {
return this.enabled;
}
/**
* @return Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details.
*
*/
public Optional kubeStateMetrics() {
return Optional.ofNullable(this.kubeStateMetrics);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ManagedClusterAzureMonitorProfileMetricsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean enabled;
private @Nullable ManagedClusterAzureMonitorProfileKubeStateMetricsResponse kubeStateMetrics;
public Builder() {}
public Builder(ManagedClusterAzureMonitorProfileMetricsResponse defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.kubeStateMetrics = defaults.kubeStateMetrics;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("ManagedClusterAzureMonitorProfileMetricsResponse", "enabled");
}
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder kubeStateMetrics(@Nullable ManagedClusterAzureMonitorProfileKubeStateMetricsResponse kubeStateMetrics) {
this.kubeStateMetrics = kubeStateMetrics;
return this;
}
public ManagedClusterAzureMonitorProfileMetricsResponse build() {
final var _resultValue = new ManagedClusterAzureMonitorProfileMetricsResponse();
_resultValue.enabled = enabled;
_resultValue.kubeStateMetrics = kubeStateMetrics;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy