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

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

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

@CustomType
public final class UserPhoneConfig {
    /**
     * @return The After Call Work (ACW) timeout setting, in seconds. Minimum value of 0.
     * 
     */
    private @Nullable Integer afterContactWorkTimeLimit;
    /**
     * @return When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
     * 
     */
    private @Nullable Boolean autoAccept;
    /**
     * @return The phone number for the user's desk phone. Required if `phone_type` is set as `DESK_PHONE`.
     * 
     */
    private @Nullable String deskPhoneNumber;
    /**
     * @return The phone type. Valid values are `DESK_PHONE` and `SOFT_PHONE`.
     * 
     */
    private String phoneType;

    private UserPhoneConfig() {}
    /**
     * @return The After Call Work (ACW) timeout setting, in seconds. Minimum value of 0.
     * 
     */
    public Optional afterContactWorkTimeLimit() {
        return Optional.ofNullable(this.afterContactWorkTimeLimit);
    }
    /**
     * @return When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
     * 
     */
    public Optional autoAccept() {
        return Optional.ofNullable(this.autoAccept);
    }
    /**
     * @return The phone number for the user's desk phone. Required if `phone_type` is set as `DESK_PHONE`.
     * 
     */
    public Optional deskPhoneNumber() {
        return Optional.ofNullable(this.deskPhoneNumber);
    }
    /**
     * @return The phone type. Valid values are `DESK_PHONE` and `SOFT_PHONE`.
     * 
     */
    public String phoneType() {
        return this.phoneType;
    }

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

    public static Builder builder(UserPhoneConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer afterContactWorkTimeLimit;
        private @Nullable Boolean autoAccept;
        private @Nullable String deskPhoneNumber;
        private String phoneType;
        public Builder() {}
        public Builder(UserPhoneConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.afterContactWorkTimeLimit = defaults.afterContactWorkTimeLimit;
    	      this.autoAccept = defaults.autoAccept;
    	      this.deskPhoneNumber = defaults.deskPhoneNumber;
    	      this.phoneType = defaults.phoneType;
        }

        @CustomType.Setter
        public Builder afterContactWorkTimeLimit(@Nullable Integer afterContactWorkTimeLimit) {

            this.afterContactWorkTimeLimit = afterContactWorkTimeLimit;
            return this;
        }
        @CustomType.Setter
        public Builder autoAccept(@Nullable Boolean autoAccept) {

            this.autoAccept = autoAccept;
            return this;
        }
        @CustomType.Setter
        public Builder deskPhoneNumber(@Nullable String deskPhoneNumber) {

            this.deskPhoneNumber = deskPhoneNumber;
            return this;
        }
        @CustomType.Setter
        public Builder phoneType(String phoneType) {
            if (phoneType == null) {
              throw new MissingRequiredPropertyException("UserPhoneConfig", "phoneType");
            }
            this.phoneType = phoneType;
            return this;
        }
        public UserPhoneConfig build() {
            final var _resultValue = new UserPhoneConfig();
            _resultValue.afterContactWorkTimeLimit = afterContactWorkTimeLimit;
            _resultValue.autoAccept = autoAccept;
            _resultValue.deskPhoneNumber = deskPhoneNumber;
            _resultValue.phoneType = phoneType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy