com.pulumi.azure.appservice.outputs.AppServiceLogsHttpLogsFileSystem 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.util.Objects;
@CustomType
public final class AppServiceLogsHttpLogsFileSystem {
/**
* @return The number of days to retain logs for.
*
*/
private Integer retentionInDays;
/**
* @return The maximum size in megabytes that HTTP log files can use before being removed.
*
*/
private Integer retentionInMb;
private AppServiceLogsHttpLogsFileSystem() {}
/**
* @return The number of days to retain logs for.
*
*/
public Integer retentionInDays() {
return this.retentionInDays;
}
/**
* @return The maximum size in megabytes that HTTP log files can use before being removed.
*
*/
public Integer retentionInMb() {
return this.retentionInMb;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AppServiceLogsHttpLogsFileSystem defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer retentionInDays;
private Integer retentionInMb;
public Builder() {}
public Builder(AppServiceLogsHttpLogsFileSystem defaults) {
Objects.requireNonNull(defaults);
this.retentionInDays = defaults.retentionInDays;
this.retentionInMb = defaults.retentionInMb;
}
@CustomType.Setter
public Builder retentionInDays(Integer retentionInDays) {
if (retentionInDays == null) {
throw new MissingRequiredPropertyException("AppServiceLogsHttpLogsFileSystem", "retentionInDays");
}
this.retentionInDays = retentionInDays;
return this;
}
@CustomType.Setter
public Builder retentionInMb(Integer retentionInMb) {
if (retentionInMb == null) {
throw new MissingRequiredPropertyException("AppServiceLogsHttpLogsFileSystem", "retentionInMb");
}
this.retentionInMb = retentionInMb;
return this;
}
public AppServiceLogsHttpLogsFileSystem build() {
final var _resultValue = new AppServiceLogsHttpLogsFileSystem();
_resultValue.retentionInDays = retentionInDays;
_resultValue.retentionInMb = retentionInMb;
return _resultValue;
}
}
}