
com.pulumi.azurenative.dataprotection.outputs.BackupScheduleResponse 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.dataprotection.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BackupScheduleResponse {
/**
* @return ISO 8601 repeating time interval format
*
*/
private List repeatingTimeIntervals;
/**
* @return Time zone for a schedule. Example: Pacific Standard Time
*
*/
private @Nullable String timeZone;
private BackupScheduleResponse() {}
/**
* @return ISO 8601 repeating time interval format
*
*/
public List repeatingTimeIntervals() {
return this.repeatingTimeIntervals;
}
/**
* @return Time zone for a schedule. Example: Pacific Standard Time
*
*/
public Optional timeZone() {
return Optional.ofNullable(this.timeZone);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BackupScheduleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List repeatingTimeIntervals;
private @Nullable String timeZone;
public Builder() {}
public Builder(BackupScheduleResponse defaults) {
Objects.requireNonNull(defaults);
this.repeatingTimeIntervals = defaults.repeatingTimeIntervals;
this.timeZone = defaults.timeZone;
}
@CustomType.Setter
public Builder repeatingTimeIntervals(List repeatingTimeIntervals) {
if (repeatingTimeIntervals == null) {
throw new MissingRequiredPropertyException("BackupScheduleResponse", "repeatingTimeIntervals");
}
this.repeatingTimeIntervals = repeatingTimeIntervals;
return this;
}
public Builder repeatingTimeIntervals(String... repeatingTimeIntervals) {
return repeatingTimeIntervals(List.of(repeatingTimeIntervals));
}
@CustomType.Setter
public Builder timeZone(@Nullable String timeZone) {
this.timeZone = timeZone;
return this;
}
public BackupScheduleResponse build() {
final var _resultValue = new BackupScheduleResponse();
_resultValue.repeatingTimeIntervals = repeatingTimeIntervals;
_resultValue.timeZone = timeZone;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy