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

com.pulumi.azurenative.dbforpostgresql.outputs.MaintenanceWindowResponse Maven / Gradle / Ivy

The 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.dbforpostgresql.outputs;

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

@CustomType
public final class MaintenanceWindowResponse {
    /**
     * @return indicates whether custom window is enabled or disabled
     * 
     */
    private @Nullable String customWindow;
    /**
     * @return day of week for maintenance window
     * 
     */
    private @Nullable Integer dayOfWeek;
    /**
     * @return start hour for maintenance window
     * 
     */
    private @Nullable Integer startHour;
    /**
     * @return start minute for maintenance window
     * 
     */
    private @Nullable Integer startMinute;

    private MaintenanceWindowResponse() {}
    /**
     * @return indicates whether custom window is enabled or disabled
     * 
     */
    public Optional customWindow() {
        return Optional.ofNullable(this.customWindow);
    }
    /**
     * @return day of week for maintenance window
     * 
     */
    public Optional dayOfWeek() {
        return Optional.ofNullable(this.dayOfWeek);
    }
    /**
     * @return start hour for maintenance window
     * 
     */
    public Optional startHour() {
        return Optional.ofNullable(this.startHour);
    }
    /**
     * @return start minute for maintenance window
     * 
     */
    public Optional startMinute() {
        return Optional.ofNullable(this.startMinute);
    }

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

    public static Builder builder(MaintenanceWindowResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String customWindow;
        private @Nullable Integer dayOfWeek;
        private @Nullable Integer startHour;
        private @Nullable Integer startMinute;
        public Builder() {}
        public Builder(MaintenanceWindowResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.customWindow = defaults.customWindow;
    	      this.dayOfWeek = defaults.dayOfWeek;
    	      this.startHour = defaults.startHour;
    	      this.startMinute = defaults.startMinute;
        }

        @CustomType.Setter
        public Builder customWindow(@Nullable String customWindow) {

            this.customWindow = customWindow;
            return this;
        }
        @CustomType.Setter
        public Builder dayOfWeek(@Nullable Integer dayOfWeek) {

            this.dayOfWeek = dayOfWeek;
            return this;
        }
        @CustomType.Setter
        public Builder startHour(@Nullable Integer startHour) {

            this.startHour = startHour;
            return this;
        }
        @CustomType.Setter
        public Builder startMinute(@Nullable Integer startMinute) {

            this.startMinute = startMinute;
            return this;
        }
        public MaintenanceWindowResponse build() {
            final var _resultValue = new MaintenanceWindowResponse();
            _resultValue.customWindow = customWindow;
            _resultValue.dayOfWeek = dayOfWeek;
            _resultValue.startHour = startHour;
            _resultValue.startMinute = startMinute;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy