
com.pulumi.azurenative.insights.outputs.RecurrenceResponse 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.insights.outputs;
import com.pulumi.azurenative.insights.outputs.RecurrentScheduleResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class RecurrenceResponse {
/**
* @return the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.
*
*/
private String frequency;
/**
* @return the scheduling constraints for when the profile begins.
*
*/
private RecurrentScheduleResponse schedule;
private RecurrenceResponse() {}
/**
* @return the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.
*
*/
public String frequency() {
return this.frequency;
}
/**
* @return the scheduling constraints for when the profile begins.
*
*/
public RecurrentScheduleResponse schedule() {
return this.schedule;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RecurrenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String frequency;
private RecurrentScheduleResponse schedule;
public Builder() {}
public Builder(RecurrenceResponse defaults) {
Objects.requireNonNull(defaults);
this.frequency = defaults.frequency;
this.schedule = defaults.schedule;
}
@CustomType.Setter
public Builder frequency(String frequency) {
if (frequency == null) {
throw new MissingRequiredPropertyException("RecurrenceResponse", "frequency");
}
this.frequency = frequency;
return this;
}
@CustomType.Setter
public Builder schedule(RecurrentScheduleResponse schedule) {
if (schedule == null) {
throw new MissingRequiredPropertyException("RecurrenceResponse", "schedule");
}
this.schedule = schedule;
return this;
}
public RecurrenceResponse build() {
final var _resultValue = new RecurrenceResponse();
_resultValue.frequency = frequency;
_resultValue.schedule = schedule;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy