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

com.pulumi.aws.opensearch.inputs.DomainAutoTuneOptionsMaintenanceScheduleDurationArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

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.aws.opensearch.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


public final class DomainAutoTuneOptionsMaintenanceScheduleDurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final DomainAutoTuneOptionsMaintenanceScheduleDurationArgs Empty = new DomainAutoTuneOptionsMaintenanceScheduleDurationArgs();

    /**
     * Unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: `HOURS`.
     * 
     */
    @Import(name="unit", required=true)
    private Output unit;

    /**
     * @return Unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: `HOURS`.
     * 
     */
    public Output unit() {
        return this.unit;
    }

    /**
     * An integer specifying the value of the duration of an Auto-Tune maintenance window.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return An integer specifying the value of the duration of an Auto-Tune maintenance window.
     * 
     */
    public Output value() {
        return this.value;
    }

    private DomainAutoTuneOptionsMaintenanceScheduleDurationArgs() {}

    private DomainAutoTuneOptionsMaintenanceScheduleDurationArgs(DomainAutoTuneOptionsMaintenanceScheduleDurationArgs $) {
        this.unit = $.unit;
        this.value = $.value;
    }

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

    public static final class Builder {
        private DomainAutoTuneOptionsMaintenanceScheduleDurationArgs $;

        public Builder() {
            $ = new DomainAutoTuneOptionsMaintenanceScheduleDurationArgs();
        }

        public Builder(DomainAutoTuneOptionsMaintenanceScheduleDurationArgs defaults) {
            $ = new DomainAutoTuneOptionsMaintenanceScheduleDurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param unit Unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: `HOURS`.
         * 
         * @return builder
         * 
         */
        public Builder unit(Output unit) {
            $.unit = unit;
            return this;
        }

        /**
         * @param unit Unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: `HOURS`.
         * 
         * @return builder
         * 
         */
        public Builder unit(String unit) {
            return unit(Output.of(unit));
        }

        /**
         * @param value An integer specifying the value of the duration of an Auto-Tune maintenance window.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value An integer specifying the value of the duration of an Auto-Tune maintenance window.
         * 
         * @return builder
         * 
         */
        public Builder value(Integer value) {
            return value(Output.of(value));
        }

        public DomainAutoTuneOptionsMaintenanceScheduleDurationArgs build() {
            if ($.unit == null) {
                throw new MissingRequiredPropertyException("DomainAutoTuneOptionsMaintenanceScheduleDurationArgs", "unit");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("DomainAutoTuneOptionsMaintenanceScheduleDurationArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy