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

com.pulumi.azure.cosmosdb.outputs.PostgresqlClusterMaintenanceWindow Maven / Gradle / Ivy

// *** 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.cosmosdb.outputs;

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

@CustomType
public final class PostgresqlClusterMaintenanceWindow {
    /**
     * @return The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday = `0`, Monday = `1`. Defaults to `0`.
     * 
     */
    private @Nullable Integer dayOfWeek;
    /**
     * @return The start hour for maintenance window. Defaults to `0`.
     * 
     */
    private @Nullable Integer startHour;
    /**
     * @return The start minute for maintenance window. Defaults to `0`.
     * 
     */
    private @Nullable Integer startMinute;

    private PostgresqlClusterMaintenanceWindow() {}
    /**
     * @return The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday = `0`, Monday = `1`. Defaults to `0`.
     * 
     */
    public Optional dayOfWeek() {
        return Optional.ofNullable(this.dayOfWeek);
    }
    /**
     * @return The start hour for maintenance window. Defaults to `0`.
     * 
     */
    public Optional startHour() {
        return Optional.ofNullable(this.startHour);
    }
    /**
     * @return The start minute for maintenance window. Defaults to `0`.
     * 
     */
    public Optional startMinute() {
        return Optional.ofNullable(this.startMinute);
    }

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

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

        @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 PostgresqlClusterMaintenanceWindow build() {
            final var _resultValue = new PostgresqlClusterMaintenanceWindow();
            _resultValue.dayOfWeek = dayOfWeek;
            _resultValue.startHour = startHour;
            _resultValue.startMinute = startMinute;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy