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

com.pulumi.aws.connect.HoursOfOperationArgs 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.connect;

import com.pulumi.aws.connect.inputs.HoursOfOperationConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HoursOfOperationArgs Empty = new HoursOfOperationArgs();

    /**
     * One or more config blocks which define the configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below.
     * 
     */
    @Import(name="configs", required=true)
    private Output> configs;

    /**
     * @return One or more config blocks which define the configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below.
     * 
     */
    public Output> configs() {
        return this.configs;
    }

    /**
     * Specifies the description of the Hours of Operation.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Specifies the description of the Hours of Operation.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Specifies the identifier of the hosting Amazon Connect Instance.
     * 
     */
    @Import(name="instanceId", required=true)
    private Output instanceId;

    /**
     * @return Specifies the identifier of the hosting Amazon Connect Instance.
     * 
     */
    public Output instanceId() {
        return this.instanceId;
    }

    /**
     * Specifies the name of the Hours of Operation.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the Hours of Operation.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Tags to apply to the Hours of Operation. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Tags to apply to the Hours of Operation. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Specifies the time zone of the Hours of Operation.
     * 
     */
    @Import(name="timeZone", required=true)
    private Output timeZone;

    /**
     * @return Specifies the time zone of the Hours of Operation.
     * 
     */
    public Output timeZone() {
        return this.timeZone;
    }

    private HoursOfOperationArgs() {}

    private HoursOfOperationArgs(HoursOfOperationArgs $) {
        this.configs = $.configs;
        this.description = $.description;
        this.instanceId = $.instanceId;
        this.name = $.name;
        this.tags = $.tags;
        this.timeZone = $.timeZone;
    }

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

    public static final class Builder {
        private HoursOfOperationArgs $;

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

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

        /**
         * @param configs One or more config blocks which define the configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below.
         * 
         * @return builder
         * 
         */
        public Builder configs(Output> configs) {
            $.configs = configs;
            return this;
        }

        /**
         * @param configs One or more config blocks which define the configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below.
         * 
         * @return builder
         * 
         */
        public Builder configs(List configs) {
            return configs(Output.of(configs));
        }

        /**
         * @param configs One or more config blocks which define the configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below.
         * 
         * @return builder
         * 
         */
        public Builder configs(HoursOfOperationConfigArgs... configs) {
            return configs(List.of(configs));
        }

        /**
         * @param description Specifies the description of the Hours of Operation.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Specifies the description of the Hours of Operation.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param instanceId Specifies the identifier of the hosting Amazon Connect Instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(Output instanceId) {
            $.instanceId = instanceId;
            return this;
        }

        /**
         * @param instanceId Specifies the identifier of the hosting Amazon Connect Instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(String instanceId) {
            return instanceId(Output.of(instanceId));
        }

        /**
         * @param name Specifies the name of the Hours of Operation.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Hours of Operation.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tags Tags to apply to the Hours of Operation. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Tags to apply to the Hours of Operation. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param timeZone Specifies the time zone of the Hours of Operation.
         * 
         * @return builder
         * 
         */
        public Builder timeZone(Output timeZone) {
            $.timeZone = timeZone;
            return this;
        }

        /**
         * @param timeZone Specifies the time zone of the Hours of Operation.
         * 
         * @return builder
         * 
         */
        public Builder timeZone(String timeZone) {
            return timeZone(Output.of(timeZone));
        }

        public HoursOfOperationArgs build() {
            if ($.configs == null) {
                throw new MissingRequiredPropertyException("HoursOfOperationArgs", "configs");
            }
            if ($.instanceId == null) {
                throw new MissingRequiredPropertyException("HoursOfOperationArgs", "instanceId");
            }
            if ($.timeZone == null) {
                throw new MissingRequiredPropertyException("HoursOfOperationArgs", "timeZone");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy