
com.pulumi.azurenative.recoveryservices.outputs.AzureFileshareProtectedItemExtendedInfoResponse 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.recoveryservices.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 AzureFileshareProtectedItemExtendedInfoResponse {
/**
* @return The oldest backup copy available for this item in the service.
*
*/
private @Nullable String oldestRecoveryPoint;
/**
* @return Indicates consistency of policy object and policy applied to this backup item.
*
*/
private @Nullable String policyState;
/**
* @return Number of available backup copies associated with this backup item.
*
*/
private @Nullable Integer recoveryPointCount;
/**
* @return Indicates the state of this resource. Possible values are from enum ResourceState {Invalid, Active, SoftDeleted, Deleted}
*
*/
private String resourceState;
/**
* @return The resource state sync time for this backup item.
*
*/
private String resourceStateSyncTime;
private AzureFileshareProtectedItemExtendedInfoResponse() {}
/**
* @return The oldest backup copy available for this item in the service.
*
*/
public Optional oldestRecoveryPoint() {
return Optional.ofNullable(this.oldestRecoveryPoint);
}
/**
* @return Indicates consistency of policy object and policy applied to this backup item.
*
*/
public Optional policyState() {
return Optional.ofNullable(this.policyState);
}
/**
* @return Number of available backup copies associated with this backup item.
*
*/
public Optional recoveryPointCount() {
return Optional.ofNullable(this.recoveryPointCount);
}
/**
* @return Indicates the state of this resource. Possible values are from enum ResourceState {Invalid, Active, SoftDeleted, Deleted}
*
*/
public String resourceState() {
return this.resourceState;
}
/**
* @return The resource state sync time for this backup item.
*
*/
public String resourceStateSyncTime() {
return this.resourceStateSyncTime;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AzureFileshareProtectedItemExtendedInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String oldestRecoveryPoint;
private @Nullable String policyState;
private @Nullable Integer recoveryPointCount;
private String resourceState;
private String resourceStateSyncTime;
public Builder() {}
public Builder(AzureFileshareProtectedItemExtendedInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.oldestRecoveryPoint = defaults.oldestRecoveryPoint;
this.policyState = defaults.policyState;
this.recoveryPointCount = defaults.recoveryPointCount;
this.resourceState = defaults.resourceState;
this.resourceStateSyncTime = defaults.resourceStateSyncTime;
}
@CustomType.Setter
public Builder oldestRecoveryPoint(@Nullable String oldestRecoveryPoint) {
this.oldestRecoveryPoint = oldestRecoveryPoint;
return this;
}
@CustomType.Setter
public Builder policyState(@Nullable String policyState) {
this.policyState = policyState;
return this;
}
@CustomType.Setter
public Builder recoveryPointCount(@Nullable Integer recoveryPointCount) {
this.recoveryPointCount = recoveryPointCount;
return this;
}
@CustomType.Setter
public Builder resourceState(String resourceState) {
if (resourceState == null) {
throw new MissingRequiredPropertyException("AzureFileshareProtectedItemExtendedInfoResponse", "resourceState");
}
this.resourceState = resourceState;
return this;
}
@CustomType.Setter
public Builder resourceStateSyncTime(String resourceStateSyncTime) {
if (resourceStateSyncTime == null) {
throw new MissingRequiredPropertyException("AzureFileshareProtectedItemExtendedInfoResponse", "resourceStateSyncTime");
}
this.resourceStateSyncTime = resourceStateSyncTime;
return this;
}
public AzureFileshareProtectedItemExtendedInfoResponse build() {
final var _resultValue = new AzureFileshareProtectedItemExtendedInfoResponse();
_resultValue.oldestRecoveryPoint = oldestRecoveryPoint;
_resultValue.policyState = policyState;
_resultValue.recoveryPointCount = recoveryPointCount;
_resultValue.resourceState = resourceState;
_resultValue.resourceStateSyncTime = resourceStateSyncTime;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy