
com.pulumi.azurenative.insights.inputs.RecurrenceArgs 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.inputs;
import com.pulumi.azurenative.insights.enums.RecurrenceFrequency;
import com.pulumi.azurenative.insights.inputs.RecurrentScheduleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
/**
* The repeating times at which this profile begins. This element is not used if the FixedDate element is used.
*
*/
public final class RecurrenceArgs extends com.pulumi.resources.ResourceArgs {
public static final RecurrenceArgs Empty = new RecurrenceArgs();
/**
* 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.
*
*/
@Import(name="frequency", required=true)
private Output frequency;
/**
* @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 Output frequency() {
return this.frequency;
}
/**
* the scheduling constraints for when the profile begins.
*
*/
@Import(name="schedule", required=true)
private Output schedule;
/**
* @return the scheduling constraints for when the profile begins.
*
*/
public Output schedule() {
return this.schedule;
}
private RecurrenceArgs() {}
private RecurrenceArgs(RecurrenceArgs $) {
this.frequency = $.frequency;
this.schedule = $.schedule;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RecurrenceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RecurrenceArgs $;
public Builder() {
$ = new RecurrenceArgs();
}
public Builder(RecurrenceArgs defaults) {
$ = new RecurrenceArgs(Objects.requireNonNull(defaults));
}
/**
* @param frequency 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.
*
* @return builder
*
*/
public Builder frequency(Output frequency) {
$.frequency = frequency;
return this;
}
/**
* @param frequency 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.
*
* @return builder
*
*/
public Builder frequency(RecurrenceFrequency frequency) {
return frequency(Output.of(frequency));
}
/**
* @param schedule the scheduling constraints for when the profile begins.
*
* @return builder
*
*/
public Builder schedule(Output schedule) {
$.schedule = schedule;
return this;
}
/**
* @param schedule the scheduling constraints for when the profile begins.
*
* @return builder
*
*/
public Builder schedule(RecurrentScheduleArgs schedule) {
return schedule(Output.of(schedule));
}
public RecurrenceArgs build() {
if ($.frequency == null) {
throw new MissingRequiredPropertyException("RecurrenceArgs", "frequency");
}
if ($.schedule == null) {
throw new MissingRequiredPropertyException("RecurrenceArgs", "schedule");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy