com.pulumi.azurenative.dbformysql.outputs.BackupResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.dbformysql.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BackupResponse {
/**
* @return Backup retention days for the server.
*
*/
private @Nullable Integer backupRetentionDays;
/**
* @return Earliest restore point creation time (ISO8601 format)
*
*/
private String earliestRestoreDate;
/**
* @return Whether or not geo redundant backup is enabled.
*
*/
private @Nullable String geoRedundantBackup;
private BackupResponse() {}
/**
* @return Backup retention days for the server.
*
*/
public Optional backupRetentionDays() {
return Optional.ofNullable(this.backupRetentionDays);
}
/**
* @return Earliest restore point creation time (ISO8601 format)
*
*/
public String earliestRestoreDate() {
return this.earliestRestoreDate;
}
/**
* @return Whether or not geo redundant backup is enabled.
*
*/
public Optional geoRedundantBackup() {
return Optional.ofNullable(this.geoRedundantBackup);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BackupResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer backupRetentionDays;
private String earliestRestoreDate;
private @Nullable String geoRedundantBackup;
public Builder() {}
public Builder(BackupResponse defaults) {
Objects.requireNonNull(defaults);
this.backupRetentionDays = defaults.backupRetentionDays;
this.earliestRestoreDate = defaults.earliestRestoreDate;
this.geoRedundantBackup = defaults.geoRedundantBackup;
}
@CustomType.Setter
public Builder backupRetentionDays(@Nullable Integer backupRetentionDays) {
this.backupRetentionDays = backupRetentionDays;
return this;
}
@CustomType.Setter
public Builder earliestRestoreDate(String earliestRestoreDate) {
if (earliestRestoreDate == null) {
throw new MissingRequiredPropertyException("BackupResponse", "earliestRestoreDate");
}
this.earliestRestoreDate = earliestRestoreDate;
return this;
}
@CustomType.Setter
public Builder geoRedundantBackup(@Nullable String geoRedundantBackup) {
this.geoRedundantBackup = geoRedundantBackup;
return this;
}
public BackupResponse build() {
final var _resultValue = new BackupResponse();
_resultValue.backupRetentionDays = backupRetentionDays;
_resultValue.earliestRestoreDate = earliestRestoreDate;
_resultValue.geoRedundantBackup = geoRedundantBackup;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy