com.pulumi.azurenative.storage.outputs.RestorePolicyPropertiesResponse 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.
The newest version!
// *** 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.storage.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RestorePolicyPropertiesResponse {
/**
* @return how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
*
*/
private @Nullable Integer days;
/**
* @return Blob restore is enabled if set to true.
*
*/
private Boolean enabled;
/**
* @return Deprecated in favor of minRestoreTime property.
*
*/
private String lastEnabledTime;
/**
* @return Returns the minimum date and time that the restore can be started.
*
*/
private String minRestoreTime;
private RestorePolicyPropertiesResponse() {}
/**
* @return how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
*
*/
public Optional days() {
return Optional.ofNullable(this.days);
}
/**
* @return Blob restore is enabled if set to true.
*
*/
public Boolean enabled() {
return this.enabled;
}
/**
* @return Deprecated in favor of minRestoreTime property.
*
*/
public String lastEnabledTime() {
return this.lastEnabledTime;
}
/**
* @return Returns the minimum date and time that the restore can be started.
*
*/
public String minRestoreTime() {
return this.minRestoreTime;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RestorePolicyPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer days;
private Boolean enabled;
private String lastEnabledTime;
private String minRestoreTime;
public Builder() {}
public Builder(RestorePolicyPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.days = defaults.days;
this.enabled = defaults.enabled;
this.lastEnabledTime = defaults.lastEnabledTime;
this.minRestoreTime = defaults.minRestoreTime;
}
@CustomType.Setter
public Builder days(@Nullable Integer days) {
this.days = days;
return this;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("RestorePolicyPropertiesResponse", "enabled");
}
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder lastEnabledTime(String lastEnabledTime) {
if (lastEnabledTime == null) {
throw new MissingRequiredPropertyException("RestorePolicyPropertiesResponse", "lastEnabledTime");
}
this.lastEnabledTime = lastEnabledTime;
return this;
}
@CustomType.Setter
public Builder minRestoreTime(String minRestoreTime) {
if (minRestoreTime == null) {
throw new MissingRequiredPropertyException("RestorePolicyPropertiesResponse", "minRestoreTime");
}
this.minRestoreTime = minRestoreTime;
return this;
}
public RestorePolicyPropertiesResponse build() {
final var _resultValue = new RestorePolicyPropertiesResponse();
_resultValue.days = days;
_resultValue.enabled = enabled;
_resultValue.lastEnabledTime = lastEnabledTime;
_resultValue.minRestoreTime = minRestoreTime;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy