
com.pulumi.azurenative.storsimple.outputs.GetBackupScheduleResult 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.azurenative.storsimple.outputs.ScheduleRecurrenceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetBackupScheduleResult {
/**
* @return The type of backup which needs to be taken.
*
*/
private String backupType;
/**
* @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 last successful backup run which was triggered for the schedule.
*
*/
private String lastSuccessfulRun;
/**
* @return The name of the object.
*
*/
private String name;
/**
* @return The number of backups to be retained.
*
*/
private Double retentionCount;
/**
* @return The schedule recurrence.
*
*/
private ScheduleRecurrenceResponse scheduleRecurrence;
/**
* @return The schedule status.
*
*/
private String scheduleStatus;
/**
* @return The start time of the schedule.
*
*/
private String startTime;
/**
* @return The hierarchical type of the object.
*
*/
private String type;
private GetBackupScheduleResult() {}
/**
* @return The type of backup which needs to be taken.
*
*/
public String backupType() {
return this.backupType;
}
/**
* @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 last successful backup run which was triggered for the schedule.
*
*/
public String lastSuccessfulRun() {
return this.lastSuccessfulRun;
}
/**
* @return The name of the object.
*
*/
public String name() {
return this.name;
}
/**
* @return The number of backups to be retained.
*
*/
public Double retentionCount() {
return this.retentionCount;
}
/**
* @return The schedule recurrence.
*
*/
public ScheduleRecurrenceResponse scheduleRecurrence() {
return this.scheduleRecurrence;
}
/**
* @return The schedule status.
*
*/
public String scheduleStatus() {
return this.scheduleStatus;
}
/**
* @return The start time of the schedule.
*
*/
public String startTime() {
return this.startTime;
}
/**
* @return The hierarchical type of the object.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetBackupScheduleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String backupType;
private String id;
private @Nullable String kind;
private String lastSuccessfulRun;
private String name;
private Double retentionCount;
private ScheduleRecurrenceResponse scheduleRecurrence;
private String scheduleStatus;
private String startTime;
private String type;
public Builder() {}
public Builder(GetBackupScheduleResult defaults) {
Objects.requireNonNull(defaults);
this.backupType = defaults.backupType;
this.id = defaults.id;
this.kind = defaults.kind;
this.lastSuccessfulRun = defaults.lastSuccessfulRun;
this.name = defaults.name;
this.retentionCount = defaults.retentionCount;
this.scheduleRecurrence = defaults.scheduleRecurrence;
this.scheduleStatus = defaults.scheduleStatus;
this.startTime = defaults.startTime;
this.type = defaults.type;
}
@CustomType.Setter
public Builder backupType(String backupType) {
if (backupType == null) {
throw new MissingRequiredPropertyException("GetBackupScheduleResult", "backupType");
}
this.backupType = backupType;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetBackupScheduleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder lastSuccessfulRun(String lastSuccessfulRun) {
if (lastSuccessfulRun == null) {
throw new MissingRequiredPropertyException("GetBackupScheduleResult", "lastSuccessfulRun");
}
this.lastSuccessfulRun = lastSuccessfulRun;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetBackupScheduleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder retentionCount(Double retentionCount) {
if (retentionCount == null) {
throw new MissingRequiredPropertyException("GetBackupScheduleResult", "retentionCount");
}
this.retentionCount = retentionCount;
return this;
}
@CustomType.Setter
public Builder scheduleRecurrence(ScheduleRecurrenceResponse scheduleRecurrence) {
if (scheduleRecurrence == null) {
throw new MissingRequiredPropertyException("GetBackupScheduleResult", "scheduleRecurrence");
}
this.scheduleRecurrence = scheduleRecurrence;
return this;
}
@CustomType.Setter
public Builder scheduleStatus(String scheduleStatus) {
if (scheduleStatus == null) {
throw new MissingRequiredPropertyException("GetBackupScheduleResult", "scheduleStatus");
}
this.scheduleStatus = scheduleStatus;
return this;
}
@CustomType.Setter
public Builder startTime(String startTime) {
if (startTime == null) {
throw new MissingRequiredPropertyException("GetBackupScheduleResult", "startTime");
}
this.startTime = startTime;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetBackupScheduleResult", "type");
}
this.type = type;
return this;
}
public GetBackupScheduleResult build() {
final var _resultValue = new GetBackupScheduleResult();
_resultValue.backupType = backupType;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.lastSuccessfulRun = lastSuccessfulRun;
_resultValue.name = name;
_resultValue.retentionCount = retentionCount;
_resultValue.scheduleRecurrence = scheduleRecurrence;
_resultValue.scheduleStatus = scheduleStatus;
_resultValue.startTime = startTime;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy