com.pulumi.azure.appservice.outputs.LinuxFunctionAppBackup 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.azure.appservice.outputs.LinuxFunctionAppBackupSchedule;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LinuxFunctionAppBackup {
/**
* @return Should this backup job be enabled? Defaults to `true`.
*
*/
private @Nullable Boolean enabled;
/**
* @return The name which should be used for this Backup.
*
*/
private String name;
/**
* @return A `schedule` block as defined below.
*
*/
private LinuxFunctionAppBackupSchedule schedule;
/**
* @return The SAS URL to the container.
*
*/
private String storageAccountUrl;
private LinuxFunctionAppBackup() {}
/**
* @return Should this backup job be enabled? Defaults to `true`.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return The name which should be used for this Backup.
*
*/
public String name() {
return this.name;
}
/**
* @return A `schedule` block as defined below.
*
*/
public LinuxFunctionAppBackupSchedule schedule() {
return this.schedule;
}
/**
* @return The SAS URL to the container.
*
*/
public String storageAccountUrl() {
return this.storageAccountUrl;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxFunctionAppBackup defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private String name;
private LinuxFunctionAppBackupSchedule schedule;
private String storageAccountUrl;
public Builder() {}
public Builder(LinuxFunctionAppBackup defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.name = defaults.name;
this.schedule = defaults.schedule;
this.storageAccountUrl = defaults.storageAccountUrl;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("LinuxFunctionAppBackup", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder schedule(LinuxFunctionAppBackupSchedule schedule) {
if (schedule == null) {
throw new MissingRequiredPropertyException("LinuxFunctionAppBackup", "schedule");
}
this.schedule = schedule;
return this;
}
@CustomType.Setter
public Builder storageAccountUrl(String storageAccountUrl) {
if (storageAccountUrl == null) {
throw new MissingRequiredPropertyException("LinuxFunctionAppBackup", "storageAccountUrl");
}
this.storageAccountUrl = storageAccountUrl;
return this;
}
public LinuxFunctionAppBackup build() {
final var _resultValue = new LinuxFunctionAppBackup();
_resultValue.enabled = enabled;
_resultValue.name = name;
_resultValue.schedule = schedule;
_resultValue.storageAccountUrl = storageAccountUrl;
return _resultValue;
}
}
}