
com.pulumi.azurenative.logz.outputs.MonitoredResourceResponse 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.logz.outputs;
import com.pulumi.azurenative.logz.outputs.SystemDataResponse;
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 MonitoredResourceResponse {
/**
* @return The ARM id of the resource.
*
*/
private @Nullable String id;
/**
* @return Reason for why the resource is sending logs (or why it is not sending).
*
*/
private @Nullable String reasonForLogsStatus;
/**
* @return Reason for why the resource is sending metrics (or why it is not sending).
*
*/
private @Nullable String reasonForMetricsStatus;
/**
* @return Flag indicating if resource is sending logs to Logz.
*
*/
private @Nullable Boolean sendingLogs;
/**
* @return Flag indicating if resource is sending metrics to Logz.
*
*/
private @Nullable Boolean sendingMetrics;
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
private SystemDataResponse systemData;
private MonitoredResourceResponse() {}
/**
* @return The ARM id of the resource.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Reason for why the resource is sending logs (or why it is not sending).
*
*/
public Optional reasonForLogsStatus() {
return Optional.ofNullable(this.reasonForLogsStatus);
}
/**
* @return Reason for why the resource is sending metrics (or why it is not sending).
*
*/
public Optional reasonForMetricsStatus() {
return Optional.ofNullable(this.reasonForMetricsStatus);
}
/**
* @return Flag indicating if resource is sending logs to Logz.
*
*/
public Optional sendingLogs() {
return Optional.ofNullable(this.sendingLogs);
}
/**
* @return Flag indicating if resource is sending metrics to Logz.
*
*/
public Optional sendingMetrics() {
return Optional.ofNullable(this.sendingMetrics);
}
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MonitoredResourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String id;
private @Nullable String reasonForLogsStatus;
private @Nullable String reasonForMetricsStatus;
private @Nullable Boolean sendingLogs;
private @Nullable Boolean sendingMetrics;
private SystemDataResponse systemData;
public Builder() {}
public Builder(MonitoredResourceResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.reasonForLogsStatus = defaults.reasonForLogsStatus;
this.reasonForMetricsStatus = defaults.reasonForMetricsStatus;
this.sendingLogs = defaults.sendingLogs;
this.sendingMetrics = defaults.sendingMetrics;
this.systemData = defaults.systemData;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder reasonForLogsStatus(@Nullable String reasonForLogsStatus) {
this.reasonForLogsStatus = reasonForLogsStatus;
return this;
}
@CustomType.Setter
public Builder reasonForMetricsStatus(@Nullable String reasonForMetricsStatus) {
this.reasonForMetricsStatus = reasonForMetricsStatus;
return this;
}
@CustomType.Setter
public Builder sendingLogs(@Nullable Boolean sendingLogs) {
this.sendingLogs = sendingLogs;
return this;
}
@CustomType.Setter
public Builder sendingMetrics(@Nullable Boolean sendingMetrics) {
this.sendingMetrics = sendingMetrics;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("MonitoredResourceResponse", "systemData");
}
this.systemData = systemData;
return this;
}
public MonitoredResourceResponse build() {
final var _resultValue = new MonitoredResourceResponse();
_resultValue.id = id;
_resultValue.reasonForLogsStatus = reasonForLogsStatus;
_resultValue.reasonForMetricsStatus = reasonForMetricsStatus;
_resultValue.sendingLogs = sendingLogs;
_resultValue.sendingMetrics = sendingMetrics;
_resultValue.systemData = systemData;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy