
com.pulumi.azurenative.workloads.outputs.SimpleSchedulePolicyV2Response 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.workloads.outputs;
import com.pulumi.azurenative.workloads.outputs.DailyScheduleResponse;
import com.pulumi.azurenative.workloads.outputs.HourlyScheduleResponse;
import com.pulumi.azurenative.workloads.outputs.WeeklyScheduleResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SimpleSchedulePolicyV2Response {
/**
* @return Daily schedule of this policy
*
*/
private @Nullable DailyScheduleResponse dailySchedule;
/**
* @return hourly schedule of this policy
*
*/
private @Nullable HourlyScheduleResponse hourlySchedule;
/**
* @return This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
* Expected value is 'SimpleSchedulePolicyV2'.
*
*/
private String schedulePolicyType;
/**
* @return Frequency of the schedule operation of this policy.
*
*/
private @Nullable String scheduleRunFrequency;
/**
* @return Weekly schedule of this policy
*
*/
private @Nullable WeeklyScheduleResponse weeklySchedule;
private SimpleSchedulePolicyV2Response() {}
/**
* @return Daily schedule of this policy
*
*/
public Optional dailySchedule() {
return Optional.ofNullable(this.dailySchedule);
}
/**
* @return hourly schedule of this policy
*
*/
public Optional hourlySchedule() {
return Optional.ofNullable(this.hourlySchedule);
}
/**
* @return This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
* Expected value is 'SimpleSchedulePolicyV2'.
*
*/
public String schedulePolicyType() {
return this.schedulePolicyType;
}
/**
* @return Frequency of the schedule operation of this policy.
*
*/
public Optional scheduleRunFrequency() {
return Optional.ofNullable(this.scheduleRunFrequency);
}
/**
* @return Weekly schedule of this policy
*
*/
public Optional weeklySchedule() {
return Optional.ofNullable(this.weeklySchedule);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SimpleSchedulePolicyV2Response defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable DailyScheduleResponse dailySchedule;
private @Nullable HourlyScheduleResponse hourlySchedule;
private String schedulePolicyType;
private @Nullable String scheduleRunFrequency;
private @Nullable WeeklyScheduleResponse weeklySchedule;
public Builder() {}
public Builder(SimpleSchedulePolicyV2Response defaults) {
Objects.requireNonNull(defaults);
this.dailySchedule = defaults.dailySchedule;
this.hourlySchedule = defaults.hourlySchedule;
this.schedulePolicyType = defaults.schedulePolicyType;
this.scheduleRunFrequency = defaults.scheduleRunFrequency;
this.weeklySchedule = defaults.weeklySchedule;
}
@CustomType.Setter
public Builder dailySchedule(@Nullable DailyScheduleResponse dailySchedule) {
this.dailySchedule = dailySchedule;
return this;
}
@CustomType.Setter
public Builder hourlySchedule(@Nullable HourlyScheduleResponse hourlySchedule) {
this.hourlySchedule = hourlySchedule;
return this;
}
@CustomType.Setter
public Builder schedulePolicyType(String schedulePolicyType) {
if (schedulePolicyType == null) {
throw new MissingRequiredPropertyException("SimpleSchedulePolicyV2Response", "schedulePolicyType");
}
this.schedulePolicyType = schedulePolicyType;
return this;
}
@CustomType.Setter
public Builder scheduleRunFrequency(@Nullable String scheduleRunFrequency) {
this.scheduleRunFrequency = scheduleRunFrequency;
return this;
}
@CustomType.Setter
public Builder weeklySchedule(@Nullable WeeklyScheduleResponse weeklySchedule) {
this.weeklySchedule = weeklySchedule;
return this;
}
public SimpleSchedulePolicyV2Response build() {
final var _resultValue = new SimpleSchedulePolicyV2Response();
_resultValue.dailySchedule = dailySchedule;
_resultValue.hourlySchedule = hourlySchedule;
_resultValue.schedulePolicyType = schedulePolicyType;
_resultValue.scheduleRunFrequency = scheduleRunFrequency;
_resultValue.weeklySchedule = weeklySchedule;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy