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

com.pulumi.cloudflare.kotlin.EmailRoutingSettingsArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin

import com.pulumi.cloudflare.EmailRoutingSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Provides a resource for managing Email Routing settings.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as cloudflare from "@pulumi/cloudflare";
 * const myZone = new cloudflare.EmailRoutingSettings("my_zone", {
 *     zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
 *     enabled: true,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_cloudflare as cloudflare
 * my_zone = cloudflare.EmailRoutingSettings("my_zone",
 *     zone_id="0da42c8d2132a9ddaf714f9e7c920711",
 *     enabled=True)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Cloudflare = Pulumi.Cloudflare;
 * return await Deployment.RunAsync(() =>
 * {
 *     var myZone = new Cloudflare.EmailRoutingSettings("my_zone", new()
 *     {
 *         ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
 *         Enabled = true,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := cloudflare.NewEmailRoutingSettings(ctx, "my_zone", &cloudflare.EmailRoutingSettingsArgs{
 * 			ZoneId:  pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
 * 			Enabled: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.cloudflare.EmailRoutingSettings;
 * import com.pulumi.cloudflare.EmailRoutingSettingsArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var myZone = new EmailRoutingSettings("myZone", EmailRoutingSettingsArgs.builder()
 *             .zoneId("0da42c8d2132a9ddaf714f9e7c920711")
 *             .enabled("true")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   myZone:
 *     type: cloudflare:EmailRoutingSettings
 *     name: my_zone
 *     properties:
 *       zoneId: 0da42c8d2132a9ddaf714f9e7c920711
 *       enabled: 'true'
 * ```
 * 
 * @property enabled State of the zone settings for Email Routing. **Modifying this attribute will force creation of a new resource.**
 * @property skipWizard Flag to check if the user skipped the configuration wizard.
 * @property zoneId The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
 */
public data class EmailRoutingSettingsArgs(
    public val enabled: Output? = null,
    public val skipWizard: Output? = null,
    public val zoneId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.EmailRoutingSettingsArgs =
        com.pulumi.cloudflare.EmailRoutingSettingsArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .skipWizard(skipWizard?.applyValue({ args0 -> args0 }))
            .zoneId(zoneId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EmailRoutingSettingsArgs].
 */
@PulumiTagMarker
public class EmailRoutingSettingsArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var skipWizard: Output? = null

    private var zoneId: Output? = null

    /**
     * @param value State of the zone settings for Email Routing. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("fcsddtordpoahdmy")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Flag to check if the user skipped the configuration wizard.
     */
    @JvmName("ijhnmghwnyvjuydx")
    public suspend fun skipWizard(`value`: Output) {
        this.skipWizard = value
    }

    /**
     * @param value The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("ckymdarlfiagbqgy")
    public suspend fun zoneId(`value`: Output) {
        this.zoneId = value
    }

    /**
     * @param value State of the zone settings for Email Routing. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("bdvyablywnoqapat")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Flag to check if the user skipped the configuration wizard.
     */
    @JvmName("anovbwijccsgoqvc")
    public suspend fun skipWizard(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skipWizard = mapped
    }

    /**
     * @param value The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("fbnknicjflmciuqa")
    public suspend fun zoneId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zoneId = mapped
    }

    internal fun build(): EmailRoutingSettingsArgs = EmailRoutingSettingsArgs(
        enabled = enabled,
        skipWizard = skipWizard,
        zoneId = zoneId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy