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

com.pulumi.googlenative.compute.beta.kotlin.PublicDelegatedPrefixArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.beta.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.beta.PublicDelegatedPrefixArgs.builder
import com.pulumi.googlenative.compute.beta.kotlin.inputs.PublicDelegatedPrefixPublicDelegatedSubPrefixArgs
import com.pulumi.googlenative.compute.beta.kotlin.inputs.PublicDelegatedPrefixPublicDelegatedSubPrefixArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.
 * @property description An optional description of this resource. Provide this property when you create the resource.
 * @property ipCidrRange The IPv4 address range, in CIDR format, represented by this public delegated prefix.
 * @property isLiveMigration If true, the prefix will be live migrated.
 * @property name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
 * @property parentPrefix The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
 * @property project
 * @property publicDelegatedSubPrefixs The list of sub public delegated prefixes that exist for this public delegated prefix.
 * @property region
 * @property requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
 */
public data class PublicDelegatedPrefixArgs(
    public val description: Output? = null,
    public val ipCidrRange: Output? = null,
    public val isLiveMigration: Output? = null,
    public val name: Output? = null,
    public val parentPrefix: Output? = null,
    public val project: Output? = null,
    public val publicDelegatedSubPrefixs: Output>? = null,
    public val region: Output? = null,
    public val requestId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.compute.beta.PublicDelegatedPrefixArgs =
        com.pulumi.googlenative.compute.beta.PublicDelegatedPrefixArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .ipCidrRange(ipCidrRange?.applyValue({ args0 -> args0 }))
            .isLiveMigration(isLiveMigration?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .parentPrefix(parentPrefix?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .publicDelegatedSubPrefixs(
                publicDelegatedSubPrefixs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .region(region?.applyValue({ args0 -> args0 }))
            .requestId(requestId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PublicDelegatedPrefixArgs].
 */
@PulumiTagMarker
public class PublicDelegatedPrefixArgsBuilder internal constructor() {
    private var description: Output? = null

    private var ipCidrRange: Output? = null

    private var isLiveMigration: Output? = null

    private var name: Output? = null

    private var parentPrefix: Output? = null

    private var project: Output? = null

    private var publicDelegatedSubPrefixs:
        Output>? = null

    private var region: Output? = null

    private var requestId: Output? = null

    /**
     * @param value An optional description of this resource. Provide this property when you create the resource.
     */
    @JvmName("yriickxcibydplcs")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The IPv4 address range, in CIDR format, represented by this public delegated prefix.
     */
    @JvmName("ybtpmfbibwprwthp")
    public suspend fun ipCidrRange(`value`: Output) {
        this.ipCidrRange = value
    }

    /**
     * @param value If true, the prefix will be live migrated.
     */
    @JvmName("mjkuflehcwffedjj")
    public suspend fun isLiveMigration(`value`: Output) {
        this.isLiveMigration = value
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     */
    @JvmName("lynjharaylrsnbjd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
     */
    @JvmName("tggdrlirkabpulik")
    public suspend fun parentPrefix(`value`: Output) {
        this.parentPrefix = value
    }

    /**
     * @param value
     */
    @JvmName("bsjvolwcxtgrmxkp")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value The list of sub public delegated prefixes that exist for this public delegated prefix.
     */
    @JvmName("skcewfhofbbnnxri")
    public suspend fun publicDelegatedSubPrefixs(`value`: Output>) {
        this.publicDelegatedSubPrefixs = value
    }

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

    /**
     * @param values The list of sub public delegated prefixes that exist for this public delegated prefix.
     */
    @JvmName("xxurngwrhymgimjo")
    public suspend fun publicDelegatedSubPrefixs(values: List>) {
        this.publicDelegatedSubPrefixs = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("ummvenbyenfmcgsf")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
     */
    @JvmName("vlhsxfvuuktxfwsc")
    public suspend fun requestId(`value`: Output) {
        this.requestId = value
    }

    /**
     * @param value An optional description of this resource. Provide this property when you create the resource.
     */
    @JvmName("xltrykfgqjmhjpmm")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The IPv4 address range, in CIDR format, represented by this public delegated prefix.
     */
    @JvmName("ctfecxqgjqijirjh")
    public suspend fun ipCidrRange(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipCidrRange = mapped
    }

    /**
     * @param value If true, the prefix will be live migrated.
     */
    @JvmName("wuwjoeculebhcqaq")
    public suspend fun isLiveMigration(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isLiveMigration = mapped
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     */
    @JvmName("nlapvitorxeknhqs")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
     */
    @JvmName("qgfwnciygdcrepgg")
    public suspend fun parentPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parentPrefix = mapped
    }

    /**
     * @param value
     */
    @JvmName("fftjqxdyqcigmbby")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value The list of sub public delegated prefixes that exist for this public delegated prefix.
     */
    @JvmName("cewbngfyqmoagced")
    public suspend fun publicDelegatedSubPrefixs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicDelegatedSubPrefixs = mapped
    }

    /**
     * @param argument The list of sub public delegated prefixes that exist for this public delegated prefix.
     */
    @JvmName("ftivbtsmqdqvfced")
    public suspend fun publicDelegatedSubPrefixs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PublicDelegatedPrefixPublicDelegatedSubPrefixArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.publicDelegatedSubPrefixs = mapped
    }

    /**
     * @param argument The list of sub public delegated prefixes that exist for this public delegated prefix.
     */
    @JvmName("knplgqvjutgsimht")
    public suspend fun publicDelegatedSubPrefixs(vararg argument: suspend PublicDelegatedPrefixPublicDelegatedSubPrefixArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PublicDelegatedPrefixPublicDelegatedSubPrefixArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.publicDelegatedSubPrefixs = mapped
    }

    /**
     * @param argument The list of sub public delegated prefixes that exist for this public delegated prefix.
     */
    @JvmName("imchtfhtjjlxqalg")
    public suspend fun publicDelegatedSubPrefixs(argument: suspend PublicDelegatedPrefixPublicDelegatedSubPrefixArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PublicDelegatedPrefixPublicDelegatedSubPrefixArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.publicDelegatedSubPrefixs = mapped
    }

    /**
     * @param values The list of sub public delegated prefixes that exist for this public delegated prefix.
     */
    @JvmName("vvhjewuxneyxhmtm")
    public suspend fun publicDelegatedSubPrefixs(vararg values: PublicDelegatedPrefixPublicDelegatedSubPrefixArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicDelegatedSubPrefixs = mapped
    }

    /**
     * @param value
     */
    @JvmName("olfloskyymwpgnnf")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    /**
     * @param value An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
     */
    @JvmName("qlshvipycmifkjga")
    public suspend fun requestId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestId = mapped
    }

    internal fun build(): PublicDelegatedPrefixArgs = PublicDelegatedPrefixArgs(
        description = description,
        ipCidrRange = ipCidrRange,
        isLiveMigration = isLiveMigration,
        name = name,
        parentPrefix = parentPrefix,
        project = project,
        publicDelegatedSubPrefixs = publicDelegatedSubPrefixs,
        region = region,
        requestId = requestId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy