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

com.pulumi.azurenative.cache.outputs.ScheduleEntryResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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.cache.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 ScheduleEntryResponse {
    /**
     * @return Day of the week when a cache can be patched.
     * 
     */
    private String dayOfWeek;
    /**
     * @return ISO8601 timespan specifying how much time cache patching can take.
     * 
     */
    private @Nullable String maintenanceWindow;
    /**
     * @return Start hour after which cache patching can start.
     * 
     */
    private Integer startHourUtc;

    private ScheduleEntryResponse() {}
    /**
     * @return Day of the week when a cache can be patched.
     * 
     */
    public String dayOfWeek() {
        return this.dayOfWeek;
    }
    /**
     * @return ISO8601 timespan specifying how much time cache patching can take.
     * 
     */
    public Optional maintenanceWindow() {
        return Optional.ofNullable(this.maintenanceWindow);
    }
    /**
     * @return Start hour after which cache patching can start.
     * 
     */
    public Integer startHourUtc() {
        return this.startHourUtc;
    }

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

    public static Builder builder(ScheduleEntryResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String dayOfWeek;
        private @Nullable String maintenanceWindow;
        private Integer startHourUtc;
        public Builder() {}
        public Builder(ScheduleEntryResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dayOfWeek = defaults.dayOfWeek;
    	      this.maintenanceWindow = defaults.maintenanceWindow;
    	      this.startHourUtc = defaults.startHourUtc;
        }

        @CustomType.Setter
        public Builder dayOfWeek(String dayOfWeek) {
            if (dayOfWeek == null) {
              throw new MissingRequiredPropertyException("ScheduleEntryResponse", "dayOfWeek");
            }
            this.dayOfWeek = dayOfWeek;
            return this;
        }
        @CustomType.Setter
        public Builder maintenanceWindow(@Nullable String maintenanceWindow) {

            this.maintenanceWindow = maintenanceWindow;
            return this;
        }
        @CustomType.Setter
        public Builder startHourUtc(Integer startHourUtc) {
            if (startHourUtc == null) {
              throw new MissingRequiredPropertyException("ScheduleEntryResponse", "startHourUtc");
            }
            this.startHourUtc = startHourUtc;
            return this;
        }
        public ScheduleEntryResponse build() {
            final var _resultValue = new ScheduleEntryResponse();
            _resultValue.dayOfWeek = dayOfWeek;
            _resultValue.maintenanceWindow = maintenanceWindow;
            _resultValue.startHourUtc = startHourUtc;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy