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

com.pulumi.azurenative.alertsmanagement.outputs.WeeklyRecurrenceResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.alertsmanagement.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 WeeklyRecurrenceResponse {
    /**
     * @return Specifies the values for weekly recurrence pattern.
     * 
     */
    private List daysOfWeek;
    /**
     * @return End time for recurrence.
     * 
     */
    private @Nullable String endTime;
    /**
     * @return Specifies when the recurrence should be applied.
     * Expected value is 'Weekly'.
     * 
     */
    private String recurrenceType;
    /**
     * @return Start time for recurrence.
     * 
     */
    private @Nullable String startTime;

    private WeeklyRecurrenceResponse() {}
    /**
     * @return Specifies the values for weekly recurrence pattern.
     * 
     */
    public List daysOfWeek() {
        return this.daysOfWeek;
    }
    /**
     * @return End time for recurrence.
     * 
     */
    public Optional endTime() {
        return Optional.ofNullable(this.endTime);
    }
    /**
     * @return Specifies when the recurrence should be applied.
     * Expected value is 'Weekly'.
     * 
     */
    public String recurrenceType() {
        return this.recurrenceType;
    }
    /**
     * @return Start time for recurrence.
     * 
     */
    public Optional startTime() {
        return Optional.ofNullable(this.startTime);
    }

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

    public static Builder builder(WeeklyRecurrenceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List daysOfWeek;
        private @Nullable String endTime;
        private String recurrenceType;
        private @Nullable String startTime;
        public Builder() {}
        public Builder(WeeklyRecurrenceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.daysOfWeek = defaults.daysOfWeek;
    	      this.endTime = defaults.endTime;
    	      this.recurrenceType = defaults.recurrenceType;
    	      this.startTime = defaults.startTime;
        }

        @CustomType.Setter
        public Builder daysOfWeek(List daysOfWeek) {
            if (daysOfWeek == null) {
              throw new MissingRequiredPropertyException("WeeklyRecurrenceResponse", "daysOfWeek");
            }
            this.daysOfWeek = daysOfWeek;
            return this;
        }
        public Builder daysOfWeek(String... daysOfWeek) {
            return daysOfWeek(List.of(daysOfWeek));
        }
        @CustomType.Setter
        public Builder endTime(@Nullable String endTime) {

            this.endTime = endTime;
            return this;
        }
        @CustomType.Setter
        public Builder recurrenceType(String recurrenceType) {
            if (recurrenceType == null) {
              throw new MissingRequiredPropertyException("WeeklyRecurrenceResponse", "recurrenceType");
            }
            this.recurrenceType = recurrenceType;
            return this;
        }
        @CustomType.Setter
        public Builder startTime(@Nullable String startTime) {

            this.startTime = startTime;
            return this;
        }
        public WeeklyRecurrenceResponse build() {
            final var _resultValue = new WeeklyRecurrenceResponse();
            _resultValue.daysOfWeek = daysOfWeek;
            _resultValue.endTime = endTime;
            _resultValue.recurrenceType = recurrenceType;
            _resultValue.startTime = startTime;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy