com.pulumi.azure.appservice.inputs.SlotLogsApplicationLogsAzureBlobStorageArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class SlotLogsApplicationLogsAzureBlobStorageArgs extends com.pulumi.resources.ResourceArgs {
public static final SlotLogsApplicationLogsAzureBlobStorageArgs Empty = new SlotLogsApplicationLogsAzureBlobStorageArgs();
/**
* The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
*
*/
@Import(name="level", required=true)
private Output level;
/**
* @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 Output level() {
return this.level;
}
/**
* The number of days to retain logs for.
*
*/
@Import(name="retentionInDays", required=true)
private Output retentionInDays;
/**
* @return The number of days to retain logs for.
*
*/
public Output retentionInDays() {
return this.retentionInDays;
}
/**
* The URL to the storage container, with a Service SAS token appended. **NOTE:** there is currently no means of generating Service SAS tokens with the `azurerm` provider.
*
*/
@Import(name="sasUrl", required=true)
private Output sasUrl;
/**
* @return The URL to the storage container, with a Service SAS token appended. **NOTE:** there is currently no means of generating Service SAS tokens with the `azurerm` provider.
*
*/
public Output sasUrl() {
return this.sasUrl;
}
private SlotLogsApplicationLogsAzureBlobStorageArgs() {}
private SlotLogsApplicationLogsAzureBlobStorageArgs(SlotLogsApplicationLogsAzureBlobStorageArgs $) {
this.level = $.level;
this.retentionInDays = $.retentionInDays;
this.sasUrl = $.sasUrl;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SlotLogsApplicationLogsAzureBlobStorageArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SlotLogsApplicationLogsAzureBlobStorageArgs $;
public Builder() {
$ = new SlotLogsApplicationLogsAzureBlobStorageArgs();
}
public Builder(SlotLogsApplicationLogsAzureBlobStorageArgs defaults) {
$ = new SlotLogsApplicationLogsAzureBlobStorageArgs(Objects.requireNonNull(defaults));
}
/**
* @param level The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
*
* @return builder
*
*/
public Builder level(Output level) {
$.level = level;
return this;
}
/**
* @param level The level at which to log. Possible values include `Error`, `Warning`, `Information`, `Verbose` and `Off`. **NOTE:** this field is not available for `http_logs`
*
* @return builder
*
*/
public Builder level(String level) {
return level(Output.of(level));
}
/**
* @param retentionInDays The number of days to retain logs for.
*
* @return builder
*
*/
public Builder retentionInDays(Output retentionInDays) {
$.retentionInDays = retentionInDays;
return this;
}
/**
* @param retentionInDays The number of days to retain logs for.
*
* @return builder
*
*/
public Builder retentionInDays(Integer retentionInDays) {
return retentionInDays(Output.of(retentionInDays));
}
/**
* @param sasUrl The URL to the storage container, with a Service SAS token appended. **NOTE:** there is currently no means of generating Service SAS tokens with the `azurerm` provider.
*
* @return builder
*
*/
public Builder sasUrl(Output sasUrl) {
$.sasUrl = sasUrl;
return this;
}
/**
* @param sasUrl The URL to the storage container, with a Service SAS token appended. **NOTE:** there is currently no means of generating Service SAS tokens with the `azurerm` provider.
*
* @return builder
*
*/
public Builder sasUrl(String sasUrl) {
return sasUrl(Output.of(sasUrl));
}
public SlotLogsApplicationLogsAzureBlobStorageArgs build() {
if ($.level == null) {
throw new MissingRequiredPropertyException("SlotLogsApplicationLogsAzureBlobStorageArgs", "level");
}
if ($.retentionInDays == null) {
throw new MissingRequiredPropertyException("SlotLogsApplicationLogsAzureBlobStorageArgs", "retentionInDays");
}
if ($.sasUrl == null) {
throw new MissingRequiredPropertyException("SlotLogsApplicationLogsAzureBlobStorageArgs", "sasUrl");
}
return $;
}
}
}