
com.pulumi.azurenative.documentdb.outputs.PeriodicModePropertiesResponse 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.documentdb.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PeriodicModePropertiesResponse {
/**
* @return An integer representing the interval in minutes between two backups
*
*/
private @Nullable Integer backupIntervalInMinutes;
/**
* @return An integer representing the time (in hours) that each backup is retained
*
*/
private @Nullable Integer backupRetentionIntervalInHours;
/**
* @return Enum to indicate type of backup residency
*
*/
private @Nullable String backupStorageRedundancy;
private PeriodicModePropertiesResponse() {}
/**
* @return An integer representing the interval in minutes between two backups
*
*/
public Optional backupIntervalInMinutes() {
return Optional.ofNullable(this.backupIntervalInMinutes);
}
/**
* @return An integer representing the time (in hours) that each backup is retained
*
*/
public Optional backupRetentionIntervalInHours() {
return Optional.ofNullable(this.backupRetentionIntervalInHours);
}
/**
* @return Enum to indicate type of backup residency
*
*/
public Optional backupStorageRedundancy() {
return Optional.ofNullable(this.backupStorageRedundancy);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PeriodicModePropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer backupIntervalInMinutes;
private @Nullable Integer backupRetentionIntervalInHours;
private @Nullable String backupStorageRedundancy;
public Builder() {}
public Builder(PeriodicModePropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.backupIntervalInMinutes = defaults.backupIntervalInMinutes;
this.backupRetentionIntervalInHours = defaults.backupRetentionIntervalInHours;
this.backupStorageRedundancy = defaults.backupStorageRedundancy;
}
@CustomType.Setter
public Builder backupIntervalInMinutes(@Nullable Integer backupIntervalInMinutes) {
this.backupIntervalInMinutes = backupIntervalInMinutes;
return this;
}
@CustomType.Setter
public Builder backupRetentionIntervalInHours(@Nullable Integer backupRetentionIntervalInHours) {
this.backupRetentionIntervalInHours = backupRetentionIntervalInHours;
return this;
}
@CustomType.Setter
public Builder backupStorageRedundancy(@Nullable String backupStorageRedundancy) {
this.backupStorageRedundancy = backupStorageRedundancy;
return this;
}
public PeriodicModePropertiesResponse build() {
final var _resultValue = new PeriodicModePropertiesResponse();
_resultValue.backupIntervalInMinutes = backupIntervalInMinutes;
_resultValue.backupRetentionIntervalInHours = backupRetentionIntervalInHours;
_resultValue.backupStorageRedundancy = backupStorageRedundancy;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy