com.pulumi.azure.appservice.outputs.AppServiceLogsHttpLogsAzureBlobStorage 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 AppServiceLogsHttpLogsAzureBlobStorage {
/**
* @return The number of days to retain logs for.
*
*/
private Integer retentionInDays;
/**
* @return The URL to the storage container with a shared access signature token appended.
*
*/
private String sasUrl;
private AppServiceLogsHttpLogsAzureBlobStorage() {}
/**
* @return The number of days to retain logs for.
*
*/
public Integer retentionInDays() {
return this.retentionInDays;
}
/**
* @return The URL to the storage container with a shared access signature token appended.
*
*/
public String sasUrl() {
return this.sasUrl;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AppServiceLogsHttpLogsAzureBlobStorage defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer retentionInDays;
private String sasUrl;
public Builder() {}
public Builder(AppServiceLogsHttpLogsAzureBlobStorage defaults) {
Objects.requireNonNull(defaults);
this.retentionInDays = defaults.retentionInDays;
this.sasUrl = defaults.sasUrl;
}
@CustomType.Setter
public Builder retentionInDays(Integer retentionInDays) {
if (retentionInDays == null) {
throw new MissingRequiredPropertyException("AppServiceLogsHttpLogsAzureBlobStorage", "retentionInDays");
}
this.retentionInDays = retentionInDays;
return this;
}
@CustomType.Setter
public Builder sasUrl(String sasUrl) {
if (sasUrl == null) {
throw new MissingRequiredPropertyException("AppServiceLogsHttpLogsAzureBlobStorage", "sasUrl");
}
this.sasUrl = sasUrl;
return this;
}
public AppServiceLogsHttpLogsAzureBlobStorage build() {
final var _resultValue = new AppServiceLogsHttpLogsAzureBlobStorage();
_resultValue.retentionInDays = retentionInDays;
_resultValue.sasUrl = sasUrl;
return _resultValue;
}
}
}