com.pulumi.azure.appservice.outputs.WindowsWebAppSlotLogsHttpLogsAzureBlobStorage 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;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WindowsWebAppSlotLogsHttpLogsAzureBlobStorage {
/**
* @return The time in days after which to remove blobs. A value of `0` means no retention.
*
*/
private @Nullable Integer retentionInDays;
/**
* @return SAS url to an Azure blob container with read/write/list/delete permissions.
*
*/
private String sasUrl;
private WindowsWebAppSlotLogsHttpLogsAzureBlobStorage() {}
/**
* @return The time in days after which to remove blobs. A value of `0` means no retention.
*
*/
public Optional retentionInDays() {
return Optional.ofNullable(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(WindowsWebAppSlotLogsHttpLogsAzureBlobStorage defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer retentionInDays;
private String sasUrl;
public Builder() {}
public Builder(WindowsWebAppSlotLogsHttpLogsAzureBlobStorage defaults) {
Objects.requireNonNull(defaults);
this.retentionInDays = defaults.retentionInDays;
this.sasUrl = defaults.sasUrl;
}
@CustomType.Setter
public Builder retentionInDays(@Nullable Integer retentionInDays) {
this.retentionInDays = retentionInDays;
return this;
}
@CustomType.Setter
public Builder sasUrl(String sasUrl) {
if (sasUrl == null) {
throw new MissingRequiredPropertyException("WindowsWebAppSlotLogsHttpLogsAzureBlobStorage", "sasUrl");
}
this.sasUrl = sasUrl;
return this;
}
public WindowsWebAppSlotLogsHttpLogsAzureBlobStorage build() {
final var _resultValue = new WindowsWebAppSlotLogsHttpLogsAzureBlobStorage();
_resultValue.retentionInDays = retentionInDays;
_resultValue.sasUrl = sasUrl;
return _resultValue;
}
}
}