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

com.pulumi.aws.chime.SdkvoiceSipRuleArgs 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.chime;

import com.pulumi.aws.chime.inputs.SdkvoiceSipRuleTargetApplicationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SdkvoiceSipRuleArgs Empty = new SdkvoiceSipRuleArgs();

    /**
     * Enables or disables a rule. You must disable rules before you can delete them.
     * 
     */
    @Import(name="disabled")
    private @Nullable Output disabled;

    /**
     * @return Enables or disables a rule. You must disable rules before you can delete them.
     * 
     */
    public Optional> disabled() {
        return Optional.ofNullable(this.disabled);
    }

    /**
     * The name of the SIP rule.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the SIP rule.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used. See `target_applications`.
     * 
     */
    @Import(name="targetApplications", required=true)
    private Output> targetApplications;

    /**
     * @return List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used. See `target_applications`.
     * 
     */
    public Output> targetApplications() {
        return this.targetApplications;
    }

    /**
     * The type of trigger assigned to the SIP rule in `trigger_value`. Valid values are `RequestUriHostname` or `ToPhoneNumber`.
     * 
     */
    @Import(name="triggerType", required=true)
    private Output triggerType;

    /**
     * @return The type of trigger assigned to the SIP rule in `trigger_value`. Valid values are `RequestUriHostname` or `ToPhoneNumber`.
     * 
     */
    public Output triggerType() {
        return this.triggerType;
    }

    /**
     * If `trigger_type` is `RequestUriHostname`, the value can be the outbound host name of an Amazon Chime Voice Connector. If `trigger_type` is `ToPhoneNumber`, the value can be a customer-owned phone number in the E164 format. The Sip Media Application specified in the Sip Rule is triggered if the request URI in an incoming SIP request matches the `RequestUriHostname`, or if the "To" header in the incoming SIP request matches the `ToPhoneNumber` value.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="triggerValue", required=true)
    private Output triggerValue;

    /**
     * @return If `trigger_type` is `RequestUriHostname`, the value can be the outbound host name of an Amazon Chime Voice Connector. If `trigger_type` is `ToPhoneNumber`, the value can be a customer-owned phone number in the E164 format. The Sip Media Application specified in the Sip Rule is triggered if the request URI in an incoming SIP request matches the `RequestUriHostname`, or if the "To" header in the incoming SIP request matches the `ToPhoneNumber` value.
     * 
     * The following arguments are optional:
     * 
     */
    public Output triggerValue() {
        return this.triggerValue;
    }

    private SdkvoiceSipRuleArgs() {}

    private SdkvoiceSipRuleArgs(SdkvoiceSipRuleArgs $) {
        this.disabled = $.disabled;
        this.name = $.name;
        this.targetApplications = $.targetApplications;
        this.triggerType = $.triggerType;
        this.triggerValue = $.triggerValue;
    }

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

    public static final class Builder {
        private SdkvoiceSipRuleArgs $;

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

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

        /**
         * @param disabled Enables or disables a rule. You must disable rules before you can delete them.
         * 
         * @return builder
         * 
         */
        public Builder disabled(@Nullable Output disabled) {
            $.disabled = disabled;
            return this;
        }

        /**
         * @param disabled Enables or disables a rule. You must disable rules before you can delete them.
         * 
         * @return builder
         * 
         */
        public Builder disabled(Boolean disabled) {
            return disabled(Output.of(disabled));
        }

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

        /**
         * @param name The name of the SIP rule.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param targetApplications List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used. See `target_applications`.
         * 
         * @return builder
         * 
         */
        public Builder targetApplications(Output> targetApplications) {
            $.targetApplications = targetApplications;
            return this;
        }

        /**
         * @param targetApplications List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used. See `target_applications`.
         * 
         * @return builder
         * 
         */
        public Builder targetApplications(List targetApplications) {
            return targetApplications(Output.of(targetApplications));
        }

        /**
         * @param targetApplications List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used. See `target_applications`.
         * 
         * @return builder
         * 
         */
        public Builder targetApplications(SdkvoiceSipRuleTargetApplicationArgs... targetApplications) {
            return targetApplications(List.of(targetApplications));
        }

        /**
         * @param triggerType The type of trigger assigned to the SIP rule in `trigger_value`. Valid values are `RequestUriHostname` or `ToPhoneNumber`.
         * 
         * @return builder
         * 
         */
        public Builder triggerType(Output triggerType) {
            $.triggerType = triggerType;
            return this;
        }

        /**
         * @param triggerType The type of trigger assigned to the SIP rule in `trigger_value`. Valid values are `RequestUriHostname` or `ToPhoneNumber`.
         * 
         * @return builder
         * 
         */
        public Builder triggerType(String triggerType) {
            return triggerType(Output.of(triggerType));
        }

        /**
         * @param triggerValue If `trigger_type` is `RequestUriHostname`, the value can be the outbound host name of an Amazon Chime Voice Connector. If `trigger_type` is `ToPhoneNumber`, the value can be a customer-owned phone number in the E164 format. The Sip Media Application specified in the Sip Rule is triggered if the request URI in an incoming SIP request matches the `RequestUriHostname`, or if the "To" header in the incoming SIP request matches the `ToPhoneNumber` value.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder triggerValue(Output triggerValue) {
            $.triggerValue = triggerValue;
            return this;
        }

        /**
         * @param triggerValue If `trigger_type` is `RequestUriHostname`, the value can be the outbound host name of an Amazon Chime Voice Connector. If `trigger_type` is `ToPhoneNumber`, the value can be a customer-owned phone number in the E164 format. The Sip Media Application specified in the Sip Rule is triggered if the request URI in an incoming SIP request matches the `RequestUriHostname`, or if the "To" header in the incoming SIP request matches the `ToPhoneNumber` value.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder triggerValue(String triggerValue) {
            return triggerValue(Output.of(triggerValue));
        }

        public SdkvoiceSipRuleArgs build() {
            if ($.targetApplications == null) {
                throw new MissingRequiredPropertyException("SdkvoiceSipRuleArgs", "targetApplications");
            }
            if ($.triggerType == null) {
                throw new MissingRequiredPropertyException("SdkvoiceSipRuleArgs", "triggerType");
            }
            if ($.triggerValue == null) {
                throw new MissingRequiredPropertyException("SdkvoiceSipRuleArgs", "triggerValue");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy