All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.datafactory.outputs.TriggerScheduleScheduleMonthly Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.azure.datafactory.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TriggerScheduleScheduleMonthly {
    /**
     * @return The occurrence of the specified day during the month. For example, a `monthly` property with `weekday` and `week` values of `Sunday, -1` means the last Sunday of the month.
     * 
     */
    private @Nullable Integer week;
    /**
     * @return The day of the week on which the trigger runs. For example, a `monthly` property with a `weekday` value of `Sunday` means every Sunday of the month.
     * 
     */
    private String weekday;

    private TriggerScheduleScheduleMonthly() {}
    /**
     * @return The occurrence of the specified day during the month. For example, a `monthly` property with `weekday` and `week` values of `Sunday, -1` means the last Sunday of the month.
     * 
     */
    public Optional week() {
        return Optional.ofNullable(this.week);
    }
    /**
     * @return The day of the week on which the trigger runs. For example, a `monthly` property with a `weekday` value of `Sunday` means every Sunday of the month.
     * 
     */
    public String weekday() {
        return this.weekday;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(TriggerScheduleScheduleMonthly defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer week;
        private String weekday;
        public Builder() {}
        public Builder(TriggerScheduleScheduleMonthly defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.week = defaults.week;
    	      this.weekday = defaults.weekday;
        }

        @CustomType.Setter
        public Builder week(@Nullable Integer week) {

            this.week = week;
            return this;
        }
        @CustomType.Setter
        public Builder weekday(String weekday) {
            if (weekday == null) {
              throw new MissingRequiredPropertyException("TriggerScheduleScheduleMonthly", "weekday");
            }
            this.weekday = weekday;
            return this;
        }
        public TriggerScheduleScheduleMonthly build() {
            final var _resultValue = new TriggerScheduleScheduleMonthly();
            _resultValue.week = week;
            _resultValue.weekday = weekday;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy