
com.pulumi.azurenative.storsimple.outputs.GetBackupPolicyResult 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.storsimple.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetBackupPolicyResult {
/**
* @return The backup policy creation type. Indicates whether this was created through SaaS or through StorSimple Snapshot Manager.
*
*/
private String backupPolicyCreationType;
/**
* @return The path ID that uniquely identifies the object.
*
*/
private String id;
/**
* @return The Kind of the object. Currently only Series8000 is supported
*
*/
private @Nullable String kind;
/**
* @return The time of the last backup for the backup policy.
*
*/
private String lastBackupTime;
/**
* @return The name of the object.
*
*/
private String name;
/**
* @return The time of the next backup for the backup policy.
*
*/
private String nextBackupTime;
/**
* @return Indicates whether at least one of the schedules in the backup policy is active or not.
*
*/
private String scheduledBackupStatus;
/**
* @return The count of schedules the backup policy contains.
*
*/
private Double schedulesCount;
/**
* @return If the backup policy was created by StorSimple Snapshot Manager, then this field indicates the hostname of the StorSimple Snapshot Manager.
*
*/
private String ssmHostName;
/**
* @return The hierarchical type of the object.
*
*/
private String type;
/**
* @return The path IDs of the volumes which are part of the backup policy.
*
*/
private List volumeIds;
private GetBackupPolicyResult() {}
/**
* @return The backup policy creation type. Indicates whether this was created through SaaS or through StorSimple Snapshot Manager.
*
*/
public String backupPolicyCreationType() {
return this.backupPolicyCreationType;
}
/**
* @return The path ID that uniquely identifies the object.
*
*/
public String id() {
return this.id;
}
/**
* @return The Kind of the object. Currently only Series8000 is supported
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return The time of the last backup for the backup policy.
*
*/
public String lastBackupTime() {
return this.lastBackupTime;
}
/**
* @return The name of the object.
*
*/
public String name() {
return this.name;
}
/**
* @return The time of the next backup for the backup policy.
*
*/
public String nextBackupTime() {
return this.nextBackupTime;
}
/**
* @return Indicates whether at least one of the schedules in the backup policy is active or not.
*
*/
public String scheduledBackupStatus() {
return this.scheduledBackupStatus;
}
/**
* @return The count of schedules the backup policy contains.
*
*/
public Double schedulesCount() {
return this.schedulesCount;
}
/**
* @return If the backup policy was created by StorSimple Snapshot Manager, then this field indicates the hostname of the StorSimple Snapshot Manager.
*
*/
public String ssmHostName() {
return this.ssmHostName;
}
/**
* @return The hierarchical type of the object.
*
*/
public String type() {
return this.type;
}
/**
* @return The path IDs of the volumes which are part of the backup policy.
*
*/
public List volumeIds() {
return this.volumeIds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetBackupPolicyResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String backupPolicyCreationType;
private String id;
private @Nullable String kind;
private String lastBackupTime;
private String name;
private String nextBackupTime;
private String scheduledBackupStatus;
private Double schedulesCount;
private String ssmHostName;
private String type;
private List volumeIds;
public Builder() {}
public Builder(GetBackupPolicyResult defaults) {
Objects.requireNonNull(defaults);
this.backupPolicyCreationType = defaults.backupPolicyCreationType;
this.id = defaults.id;
this.kind = defaults.kind;
this.lastBackupTime = defaults.lastBackupTime;
this.name = defaults.name;
this.nextBackupTime = defaults.nextBackupTime;
this.scheduledBackupStatus = defaults.scheduledBackupStatus;
this.schedulesCount = defaults.schedulesCount;
this.ssmHostName = defaults.ssmHostName;
this.type = defaults.type;
this.volumeIds = defaults.volumeIds;
}
@CustomType.Setter
public Builder backupPolicyCreationType(String backupPolicyCreationType) {
if (backupPolicyCreationType == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "backupPolicyCreationType");
}
this.backupPolicyCreationType = backupPolicyCreationType;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder lastBackupTime(String lastBackupTime) {
if (lastBackupTime == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "lastBackupTime");
}
this.lastBackupTime = lastBackupTime;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder nextBackupTime(String nextBackupTime) {
if (nextBackupTime == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "nextBackupTime");
}
this.nextBackupTime = nextBackupTime;
return this;
}
@CustomType.Setter
public Builder scheduledBackupStatus(String scheduledBackupStatus) {
if (scheduledBackupStatus == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "scheduledBackupStatus");
}
this.scheduledBackupStatus = scheduledBackupStatus;
return this;
}
@CustomType.Setter
public Builder schedulesCount(Double schedulesCount) {
if (schedulesCount == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "schedulesCount");
}
this.schedulesCount = schedulesCount;
return this;
}
@CustomType.Setter
public Builder ssmHostName(String ssmHostName) {
if (ssmHostName == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "ssmHostName");
}
this.ssmHostName = ssmHostName;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder volumeIds(List volumeIds) {
if (volumeIds == null) {
throw new MissingRequiredPropertyException("GetBackupPolicyResult", "volumeIds");
}
this.volumeIds = volumeIds;
return this;
}
public Builder volumeIds(String... volumeIds) {
return volumeIds(List.of(volumeIds));
}
public GetBackupPolicyResult build() {
final var _resultValue = new GetBackupPolicyResult();
_resultValue.backupPolicyCreationType = backupPolicyCreationType;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.lastBackupTime = lastBackupTime;
_resultValue.name = name;
_resultValue.nextBackupTime = nextBackupTime;
_resultValue.scheduledBackupStatus = scheduledBackupStatus;
_resultValue.schedulesCount = schedulesCount;
_resultValue.ssmHostName = ssmHostName;
_resultValue.type = type;
_resultValue.volumeIds = volumeIds;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy