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

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

import com.pulumi.aws.connect.inputs.QueueOutboundCallerConfigArgs;
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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final QueueArgs Empty = new QueueArgs();

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

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

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

    /**
     * @return Specifies the identifier of the Hours of Operation.
     * 
     */
    public Output hoursOfOperationId() {
        return this.hoursOfOperationId;
    }

    /**
     * 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 maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
     * 
     */
    @Import(name="maxContacts")
    private @Nullable Output maxContacts;

    /**
     * @return Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
     * 
     */
    public Optional> maxContacts() {
        return Optional.ofNullable(this.maxContacts);
    }

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

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

    /**
     * A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
     * 
     */
    @Import(name="outboundCallerConfig")
    private @Nullable Output outboundCallerConfig;

    /**
     * @return A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
     * 
     */
    public Optional> outboundCallerConfig() {
        return Optional.ofNullable(this.outboundCallerConfig);
    }

    /**
     * Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue.
     * 
     */
    @Import(name="quickConnectIds")
    private @Nullable Output> quickConnectIds;

    /**
     * @return Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue.
     * 
     */
    public Optional>> quickConnectIds() {
        return Optional.ofNullable(this.quickConnectIds);
    }

    /**
     * Specifies the description of the Queue. Valid values are `ENABLED`, `DISABLED`.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Specifies the description of the Queue. Valid values are `ENABLED`, `DISABLED`.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * Tags to apply to the Queue. 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 Queue. 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);
    }

    private QueueArgs() {}

    private QueueArgs(QueueArgs $) {
        this.description = $.description;
        this.hoursOfOperationId = $.hoursOfOperationId;
        this.instanceId = $.instanceId;
        this.maxContacts = $.maxContacts;
        this.name = $.name;
        this.outboundCallerConfig = $.outboundCallerConfig;
        this.quickConnectIds = $.quickConnectIds;
        this.status = $.status;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private QueueArgs $;

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

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

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

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

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

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

        /**
         * @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 maxContacts Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
         * 
         * @return builder
         * 
         */
        public Builder maxContacts(@Nullable Output maxContacts) {
            $.maxContacts = maxContacts;
            return this;
        }

        /**
         * @param maxContacts Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0.
         * 
         * @return builder
         * 
         */
        public Builder maxContacts(Integer maxContacts) {
            return maxContacts(Output.of(maxContacts));
        }

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

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

        /**
         * @param outboundCallerConfig A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder outboundCallerConfig(@Nullable Output outboundCallerConfig) {
            $.outboundCallerConfig = outboundCallerConfig;
            return this;
        }

        /**
         * @param outboundCallerConfig A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder outboundCallerConfig(QueueOutboundCallerConfigArgs outboundCallerConfig) {
            return outboundCallerConfig(Output.of(outboundCallerConfig));
        }

        /**
         * @param quickConnectIds Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue.
         * 
         * @return builder
         * 
         */
        public Builder quickConnectIds(@Nullable Output> quickConnectIds) {
            $.quickConnectIds = quickConnectIds;
            return this;
        }

        /**
         * @param quickConnectIds Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue.
         * 
         * @return builder
         * 
         */
        public Builder quickConnectIds(List quickConnectIds) {
            return quickConnectIds(Output.of(quickConnectIds));
        }

        /**
         * @param quickConnectIds Specifies a list of quick connects ids that determine the quick connects available to agents who are working the queue.
         * 
         * @return builder
         * 
         */
        public Builder quickConnectIds(String... quickConnectIds) {
            return quickConnectIds(List.of(quickConnectIds));
        }

        /**
         * @param status Specifies the description of the Queue. Valid values are `ENABLED`, `DISABLED`.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Specifies the description of the Queue. Valid values are `ENABLED`, `DISABLED`.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tags Tags to apply to the Queue. 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 Queue. 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));
        }

        public QueueArgs build() {
            if ($.hoursOfOperationId == null) {
                throw new MissingRequiredPropertyException("QueueArgs", "hoursOfOperationId");
            }
            if ($.instanceId == null) {
                throw new MissingRequiredPropertyException("QueueArgs", "instanceId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy