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

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

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
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.aws.opensearch.inputs;

import com.pulumi.aws.opensearch.inputs.GetDomainOffPeakWindowOptionsOffPeakWindowArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;


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

    public static final GetDomainOffPeakWindowOptionsArgs Empty = new GetDomainOffPeakWindowOptionsArgs();

    /**
     * Enabled disabled toggle for off-peak update window
     * 
     */
    @Import(name="enabled", required=true)
    private Output enabled;

    /**
     * @return Enabled disabled toggle for off-peak update window
     * 
     */
    public Output enabled() {
        return this.enabled;
    }

    @Import(name="offPeakWindows", required=true)
    private Output> offPeakWindows;

    public Output> offPeakWindows() {
        return this.offPeakWindows;
    }

    private GetDomainOffPeakWindowOptionsArgs() {}

    private GetDomainOffPeakWindowOptionsArgs(GetDomainOffPeakWindowOptionsArgs $) {
        this.enabled = $.enabled;
        this.offPeakWindows = $.offPeakWindows;
    }

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

    public static final class Builder {
        private GetDomainOffPeakWindowOptionsArgs $;

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

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

        /**
         * @param enabled Enabled disabled toggle for off-peak update window
         * 
         * @return builder
         * 
         */
        public Builder enabled(Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Enabled disabled toggle for off-peak update window
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        public Builder offPeakWindows(Output> offPeakWindows) {
            $.offPeakWindows = offPeakWindows;
            return this;
        }

        public Builder offPeakWindows(List offPeakWindows) {
            return offPeakWindows(Output.of(offPeakWindows));
        }

        public Builder offPeakWindows(GetDomainOffPeakWindowOptionsOffPeakWindowArgs... offPeakWindows) {
            return offPeakWindows(List.of(offPeakWindows));
        }

        public GetDomainOffPeakWindowOptionsArgs build() {
            if ($.enabled == null) {
                throw new MissingRequiredPropertyException("GetDomainOffPeakWindowOptionsArgs", "enabled");
            }
            if ($.offPeakWindows == null) {
                throw new MissingRequiredPropertyException("GetDomainOffPeakWindowOptionsArgs", "offPeakWindows");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy