
com.pulumi.azurenative.web.outputs.ListWebAppBackupConfigurationResult Maven / Gradle / Ivy
// *** 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.azurenative.web.outputs;
import com.pulumi.azurenative.web.outputs.BackupScheduleResponse;
import com.pulumi.azurenative.web.outputs.DatabaseBackupSettingResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ListWebAppBackupConfigurationResult {
/**
* @return Name of the backup.
*
*/
private @Nullable String backupName;
/**
* @return Schedule for the backup if it is executed periodically.
*
*/
private @Nullable BackupScheduleResponse backupSchedule;
/**
* @return Databases included in the backup.
*
*/
private @Nullable List databases;
/**
* @return True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled.
*
*/
private @Nullable Boolean enabled;
/**
* @return Resource Id.
*
*/
private String id;
/**
* @return Kind of resource.
*
*/
private @Nullable String kind;
/**
* @return Resource Name.
*
*/
private String name;
/**
* @return SAS URL to the container.
*
*/
private String storageAccountUrl;
/**
* @return Resource type.
*
*/
private String type;
private ListWebAppBackupConfigurationResult() {}
/**
* @return Name of the backup.
*
*/
public Optional backupName() {
return Optional.ofNullable(this.backupName);
}
/**
* @return Schedule for the backup if it is executed periodically.
*
*/
public Optional backupSchedule() {
return Optional.ofNullable(this.backupSchedule);
}
/**
* @return Databases included in the backup.
*
*/
public List databases() {
return this.databases == null ? List.of() : this.databases;
}
/**
* @return True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return Resource Id.
*
*/
public String id() {
return this.id;
}
/**
* @return Kind of resource.
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Resource Name.
*
*/
public String name() {
return this.name;
}
/**
* @return SAS URL to the container.
*
*/
public String storageAccountUrl() {
return this.storageAccountUrl;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ListWebAppBackupConfigurationResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String backupName;
private @Nullable BackupScheduleResponse backupSchedule;
private @Nullable List databases;
private @Nullable Boolean enabled;
private String id;
private @Nullable String kind;
private String name;
private String storageAccountUrl;
private String type;
public Builder() {}
public Builder(ListWebAppBackupConfigurationResult defaults) {
Objects.requireNonNull(defaults);
this.backupName = defaults.backupName;
this.backupSchedule = defaults.backupSchedule;
this.databases = defaults.databases;
this.enabled = defaults.enabled;
this.id = defaults.id;
this.kind = defaults.kind;
this.name = defaults.name;
this.storageAccountUrl = defaults.storageAccountUrl;
this.type = defaults.type;
}
@CustomType.Setter
public Builder backupName(@Nullable String backupName) {
this.backupName = backupName;
return this;
}
@CustomType.Setter
public Builder backupSchedule(@Nullable BackupScheduleResponse backupSchedule) {
this.backupSchedule = backupSchedule;
return this;
}
@CustomType.Setter
public Builder databases(@Nullable List databases) {
this.databases = databases;
return this;
}
public Builder databases(DatabaseBackupSettingResponse... databases) {
return databases(List.of(databases));
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("ListWebAppBackupConfigurationResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ListWebAppBackupConfigurationResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder storageAccountUrl(String storageAccountUrl) {
if (storageAccountUrl == null) {
throw new MissingRequiredPropertyException("ListWebAppBackupConfigurationResult", "storageAccountUrl");
}
this.storageAccountUrl = storageAccountUrl;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ListWebAppBackupConfigurationResult", "type");
}
this.type = type;
return this;
}
public ListWebAppBackupConfigurationResult build() {
final var _resultValue = new ListWebAppBackupConfigurationResult();
_resultValue.backupName = backupName;
_resultValue.backupSchedule = backupSchedule;
_resultValue.databases = databases;
_resultValue.enabled = enabled;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.storageAccountUrl = storageAccountUrl;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy