com.pulumi.azure.signalr.outputs.ServiceLiveTrace 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.signalr.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServiceLiveTrace {
/**
* @return Whether the log category `ConnectivityLogs` is enabled? Defaults to `true`
*
*/
private @Nullable Boolean connectivityLogsEnabled;
/**
* @return Whether the live trace is enabled? Defaults to `true`.
*
*/
private @Nullable Boolean enabled;
/**
* @return Whether the log category `HttpRequestLogs` is enabled? Defaults to `true`
*
*/
private @Nullable Boolean httpRequestLogsEnabled;
/**
* @return Whether the log category `MessagingLogs` is enabled? Defaults to `true`
*
*/
private @Nullable Boolean messagingLogsEnabled;
private ServiceLiveTrace() {}
/**
* @return Whether the log category `ConnectivityLogs` is enabled? Defaults to `true`
*
*/
public Optional connectivityLogsEnabled() {
return Optional.ofNullable(this.connectivityLogsEnabled);
}
/**
* @return Whether the live trace is enabled? Defaults to `true`.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return Whether the log category `HttpRequestLogs` is enabled? Defaults to `true`
*
*/
public Optional httpRequestLogsEnabled() {
return Optional.ofNullable(this.httpRequestLogsEnabled);
}
/**
* @return Whether the log category `MessagingLogs` is enabled? Defaults to `true`
*
*/
public Optional messagingLogsEnabled() {
return Optional.ofNullable(this.messagingLogsEnabled);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceLiveTrace defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean connectivityLogsEnabled;
private @Nullable Boolean enabled;
private @Nullable Boolean httpRequestLogsEnabled;
private @Nullable Boolean messagingLogsEnabled;
public Builder() {}
public Builder(ServiceLiveTrace defaults) {
Objects.requireNonNull(defaults);
this.connectivityLogsEnabled = defaults.connectivityLogsEnabled;
this.enabled = defaults.enabled;
this.httpRequestLogsEnabled = defaults.httpRequestLogsEnabled;
this.messagingLogsEnabled = defaults.messagingLogsEnabled;
}
@CustomType.Setter
public Builder connectivityLogsEnabled(@Nullable Boolean connectivityLogsEnabled) {
this.connectivityLogsEnabled = connectivityLogsEnabled;
return this;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder httpRequestLogsEnabled(@Nullable Boolean httpRequestLogsEnabled) {
this.httpRequestLogsEnabled = httpRequestLogsEnabled;
return this;
}
@CustomType.Setter
public Builder messagingLogsEnabled(@Nullable Boolean messagingLogsEnabled) {
this.messagingLogsEnabled = messagingLogsEnabled;
return this;
}
public ServiceLiveTrace build() {
final var _resultValue = new ServiceLiveTrace();
_resultValue.connectivityLogsEnabled = connectivityLogsEnabled;
_resultValue.enabled = enabled;
_resultValue.httpRequestLogsEnabled = httpRequestLogsEnabled;
_resultValue.messagingLogsEnabled = messagingLogsEnabled;
return _resultValue;
}
}
}