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

com.pulumi.gcp.dns.kotlin.inputs.ResponsePolicyRuleLocalDataLocalDataArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dns.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dns.inputs.ResponsePolicyRuleLocalDataLocalDataArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property name For example, www.example.com.
 * @property rrdatas As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1)
 * @property ttl Number of seconds that this ResourceRecordSet can be cached by
 * resolvers.
 * @property type One of valid DNS resource types.
 * Possible values are: `A`, `AAAA`, `CAA`, `CNAME`, `DNSKEY`, `DS`, `HTTPS`, `IPSECVPNKEY`, `MX`, `NAPTR`, `NS`, `PTR`, `SOA`, `SPF`, `SRV`, `SSHFP`, `SVCB`, `TLSA`, `TXT`.
 */
public data class ResponsePolicyRuleLocalDataLocalDataArgs(
    public val name: Output,
    public val rrdatas: Output>? = null,
    public val ttl: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dns.inputs.ResponsePolicyRuleLocalDataLocalDataArgs =
        com.pulumi.gcp.dns.inputs.ResponsePolicyRuleLocalDataLocalDataArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .rrdatas(rrdatas?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ttl(ttl?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResponsePolicyRuleLocalDataLocalDataArgs].
 */
@PulumiTagMarker
public class ResponsePolicyRuleLocalDataLocalDataArgsBuilder internal constructor() {
    private var name: Output? = null

    private var rrdatas: Output>? = null

    private var ttl: Output? = null

    private var type: Output? = null

    /**
     * @param value For example, www.example.com.
     */
    @JvmName("pqbfouymrywxjoco")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1)
     */
    @JvmName("wwqatybatwxewfvb")
    public suspend fun rrdatas(`value`: Output>) {
        this.rrdatas = value
    }

    @JvmName("ssbwvchckkkmvgvv")
    public suspend fun rrdatas(vararg values: Output) {
        this.rrdatas = Output.all(values.asList())
    }

    /**
     * @param values As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1)
     */
    @JvmName("ccauergtuoborywh")
    public suspend fun rrdatas(values: List>) {
        this.rrdatas = Output.all(values)
    }

    /**
     * @param value Number of seconds that this ResourceRecordSet can be cached by
     * resolvers.
     */
    @JvmName("uljqsmufnqimqndo")
    public suspend fun ttl(`value`: Output) {
        this.ttl = value
    }

    /**
     * @param value One of valid DNS resource types.
     * Possible values are: `A`, `AAAA`, `CAA`, `CNAME`, `DNSKEY`, `DS`, `HTTPS`, `IPSECVPNKEY`, `MX`, `NAPTR`, `NS`, `PTR`, `SOA`, `SPF`, `SRV`, `SSHFP`, `SVCB`, `TLSA`, `TXT`.
     */
    @JvmName("eflwhxkujfsyaxbk")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value For example, www.example.com.
     */
    @JvmName("loiyvxryebepowhp")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1)
     */
    @JvmName("rfibftqjdlwgcrbe")
    public suspend fun rrdatas(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rrdatas = mapped
    }

    /**
     * @param values As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1)
     */
    @JvmName("mwpmwnoweqlwwkww")
    public suspend fun rrdatas(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rrdatas = mapped
    }

    /**
     * @param value Number of seconds that this ResourceRecordSet can be cached by
     * resolvers.
     */
    @JvmName("cekiirfqtcwhofjf")
    public suspend fun ttl(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ttl = mapped
    }

    /**
     * @param value One of valid DNS resource types.
     * Possible values are: `A`, `AAAA`, `CAA`, `CNAME`, `DNSKEY`, `DS`, `HTTPS`, `IPSECVPNKEY`, `MX`, `NAPTR`, `NS`, `PTR`, `SOA`, `SPF`, `SRV`, `SSHFP`, `SVCB`, `TLSA`, `TXT`.
     */
    @JvmName("fmpstufsbosomyen")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ResponsePolicyRuleLocalDataLocalDataArgs =
        ResponsePolicyRuleLocalDataLocalDataArgs(
            name = name ?: throw PulumiNullFieldException("name"),
            rrdatas = rrdatas,
            ttl = ttl,
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy