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

com.pulumi.googlenative.apigee.v1.kotlin.ExportArgs.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.apigee.v1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.apigee.v1.ExportArgs.builder
import com.pulumi.googlenative.apigee.v1.kotlin.inputs.GoogleCloudApigeeV1DateRangeArgs
import com.pulumi.googlenative.apigee.v1.kotlin.inputs.GoogleCloudApigeeV1DateRangeArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Submit a data export job to be processed in the background. If the request is successful, the API returns a 201 status, a URI that can be used to retrieve the status of the export job, and the `state` value of "enqueued".
 * Note - this resource's API doesn't support deletion. When deleted, the resource will persist
 * on Google Cloud even though it will be deleted from Pulumi state.
 * @property csvDelimiter Optional. Delimiter used in the CSV file, if `outputFormat` is set to `csv`. Defaults to the `,` (comma) character. Supported delimiter characters include comma (`,`), pipe (`|`), and tab (`\t`).
 * @property datastoreName Name of the preconfigured datastore.
 * @property dateRange Date range of the data to export.
 * @property description Optional. Description of the export job.
 * @property environmentId
 * @property name Display name of the export job.
 * @property organizationId
 * @property outputFormat Optional. Output format of the export. Valid values include: `csv` or `json`. Defaults to `json`. Note: Configure the delimiter for CSV output using the `csvDelimiter` property.
 */
public data class ExportArgs(
    public val csvDelimiter: Output? = null,
    public val datastoreName: Output? = null,
    public val dateRange: Output? = null,
    public val description: Output? = null,
    public val environmentId: Output? = null,
    public val name: Output? = null,
    public val organizationId: Output? = null,
    public val outputFormat: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.apigee.v1.ExportArgs =
        com.pulumi.googlenative.apigee.v1.ExportArgs.builder()
            .csvDelimiter(csvDelimiter?.applyValue({ args0 -> args0 }))
            .datastoreName(datastoreName?.applyValue({ args0 -> args0 }))
            .dateRange(dateRange?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .environmentId(environmentId?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .organizationId(organizationId?.applyValue({ args0 -> args0 }))
            .outputFormat(outputFormat?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ExportArgs].
 */
@PulumiTagMarker
public class ExportArgsBuilder internal constructor() {
    private var csvDelimiter: Output? = null

    private var datastoreName: Output? = null

    private var dateRange: Output? = null

    private var description: Output? = null

    private var environmentId: Output? = null

    private var name: Output? = null

    private var organizationId: Output? = null

    private var outputFormat: Output? = null

    /**
     * @param value Optional. Delimiter used in the CSV file, if `outputFormat` is set to `csv`. Defaults to the `,` (comma) character. Supported delimiter characters include comma (`,`), pipe (`|`), and tab (`\t`).
     */
    @JvmName("gypxwtcrchwquase")
    public suspend fun csvDelimiter(`value`: Output) {
        this.csvDelimiter = value
    }

    /**
     * @param value Name of the preconfigured datastore.
     */
    @JvmName("fmppmpphhsjueayx")
    public suspend fun datastoreName(`value`: Output) {
        this.datastoreName = value
    }

    /**
     * @param value Date range of the data to export.
     */
    @JvmName("ijedmkgccmvljqkk")
    public suspend fun dateRange(`value`: Output) {
        this.dateRange = value
    }

    /**
     * @param value Optional. Description of the export job.
     */
    @JvmName("pqxfxvxhdhvynimb")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

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

    /**
     * @param value Display name of the export job.
     */
    @JvmName("qprdwpbqibfhqqgc")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value Optional. Output format of the export. Valid values include: `csv` or `json`. Defaults to `json`. Note: Configure the delimiter for CSV output using the `csvDelimiter` property.
     */
    @JvmName("mbbyagojhjccfskr")
    public suspend fun outputFormat(`value`: Output) {
        this.outputFormat = value
    }

    /**
     * @param value Optional. Delimiter used in the CSV file, if `outputFormat` is set to `csv`. Defaults to the `,` (comma) character. Supported delimiter characters include comma (`,`), pipe (`|`), and tab (`\t`).
     */
    @JvmName("fdmypmprpdixmbnm")
    public suspend fun csvDelimiter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.csvDelimiter = mapped
    }

    /**
     * @param value Name of the preconfigured datastore.
     */
    @JvmName("ylshhbesihgrlrgd")
    public suspend fun datastoreName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datastoreName = mapped
    }

    /**
     * @param value Date range of the data to export.
     */
    @JvmName("fqkkoqlbhoxpoxlr")
    public suspend fun dateRange(`value`: GoogleCloudApigeeV1DateRangeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dateRange = mapped
    }

    /**
     * @param argument Date range of the data to export.
     */
    @JvmName("lmwnrbuihjbxmsdj")
    public suspend fun dateRange(argument: suspend GoogleCloudApigeeV1DateRangeArgsBuilder.() -> Unit) {
        val toBeMapped = GoogleCloudApigeeV1DateRangeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dateRange = mapped
    }

    /**
     * @param value Optional. Description of the export job.
     */
    @JvmName("jbmobrbdjsiomdbt")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

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

    /**
     * @param value Display name of the export job.
     */
    @JvmName("suqaciyvuqebepel")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

    /**
     * @param value Optional. Output format of the export. Valid values include: `csv` or `json`. Defaults to `json`. Note: Configure the delimiter for CSV output using the `csvDelimiter` property.
     */
    @JvmName("thcpnicclhcyoblb")
    public suspend fun outputFormat(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputFormat = mapped
    }

    internal fun build(): ExportArgs = ExportArgs(
        csvDelimiter = csvDelimiter,
        datastoreName = datastoreName,
        dateRange = dateRange,
        description = description,
        environmentId = environmentId,
        name = name,
        organizationId = organizationId,
        outputFormat = outputFormat,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy