com.pulumi.azure.appservice.outputs.WindowsWebAppBackup 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.WindowsWebAppBackupSchedule;
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 WindowsWebAppBackup {
/**
* @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 WindowsWebAppBackupSchedule schedule;
/**
* @return The SAS URL to the container.
*
*/
private String storageAccountUrl;
private WindowsWebAppBackup() {}
/**
* @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 WindowsWebAppBackupSchedule 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(WindowsWebAppBackup defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private String name;
private WindowsWebAppBackupSchedule schedule;
private String storageAccountUrl;
public Builder() {}
public Builder(WindowsWebAppBackup 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("WindowsWebAppBackup", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder schedule(WindowsWebAppBackupSchedule schedule) {
if (schedule == null) {
throw new MissingRequiredPropertyException("WindowsWebAppBackup", "schedule");
}
this.schedule = schedule;
return this;
}
@CustomType.Setter
public Builder storageAccountUrl(String storageAccountUrl) {
if (storageAccountUrl == null) {
throw new MissingRequiredPropertyException("WindowsWebAppBackup", "storageAccountUrl");
}
this.storageAccountUrl = storageAccountUrl;
return this;
}
public WindowsWebAppBackup build() {
final var _resultValue = new WindowsWebAppBackup();
_resultValue.enabled = enabled;
_resultValue.name = name;
_resultValue.schedule = schedule;
_resultValue.storageAccountUrl = storageAccountUrl;
return _resultValue;
}
}
}