com.pulumi.azure.appservice.outputs.WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage 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.appservice.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage {
/**
* @return The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
*
*/
private String level;
/**
* @return The time in days after which to remove blobs. A value of `0` means no retention.
*
*/
private Integer retentionInDays;
/**
* @return SAS url to an Azure blob container with read/write/list/delete permissions.
*
*/
private String sasUrl;
private WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage() {}
/**
* @return The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
*
*/
public String level() {
return this.level;
}
/**
* @return The time in days after which to remove blobs. A value of `0` means no retention.
*
*/
public Integer retentionInDays() {
return this.retentionInDays;
}
/**
* @return SAS url to an Azure blob container with read/write/list/delete permissions.
*
*/
public String sasUrl() {
return this.sasUrl;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String level;
private Integer retentionInDays;
private String sasUrl;
public Builder() {}
public Builder(WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage defaults) {
Objects.requireNonNull(defaults);
this.level = defaults.level;
this.retentionInDays = defaults.retentionInDays;
this.sasUrl = defaults.sasUrl;
}
@CustomType.Setter
public Builder level(String level) {
if (level == null) {
throw new MissingRequiredPropertyException("WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage", "level");
}
this.level = level;
return this;
}
@CustomType.Setter
public Builder retentionInDays(Integer retentionInDays) {
if (retentionInDays == null) {
throw new MissingRequiredPropertyException("WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage", "retentionInDays");
}
this.retentionInDays = retentionInDays;
return this;
}
@CustomType.Setter
public Builder sasUrl(String sasUrl) {
if (sasUrl == null) {
throw new MissingRequiredPropertyException("WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage", "sasUrl");
}
this.sasUrl = sasUrl;
return this;
}
public WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage build() {
final var _resultValue = new WindowsWebAppSlotLogsApplicationLogsAzureBlobStorage();
_resultValue.level = level;
_resultValue.retentionInDays = retentionInDays;
_resultValue.sasUrl = sasUrl;
return _resultValue;
}
}
}