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

com.pulumi.gcp.clouddomains.kotlin.RegistrationArgs.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.clouddomains.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.clouddomains.RegistrationArgs.builder
import com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationContactSettingsArgs
import com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationContactSettingsArgsBuilder
import com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationDnsSettingsArgs
import com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationDnsSettingsArgsBuilder
import com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationManagementSettingsArgs
import com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationManagementSettingsArgsBuilder
import com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationYearlyPriceArgs
import com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationYearlyPriceArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * ## Example Usage
 * ### Clouddomains Registration Full
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const myRegistration = new gcp.clouddomains.Registration("my_registration", {
 *     domainName: "example-domain.com",
 *     location: "global",
 *     labels: {
 *         labelkey: "labelvalue",
 *     },
 *     yearlyPrice: {
 *         currencyCode: "USD",
 *         units: "12",
 *     },
 *     dnsSettings: {
 *         customDns: {
 *             nameServers: [
 *                 "ns-cloud-a1.googledomains.com.",
 *                 "ns-cloud-a2.googledomains.com.",
 *                 "ns-cloud-a3.googledomains.com.",
 *                 "ns-cloud-a4.googledomains.com.",
 *             ],
 *         },
 *     },
 *     contactSettings: {
 *         privacy: "REDACTED_CONTACT_DATA",
 *         registrantContact: {
 *             phoneNumber: "+12345000000",
 *             email: "[email protected]",
 *             postalAddress: {
 *                 regionCode: "US",
 *                 postalCode: "95050",
 *                 administrativeArea: "CA",
 *                 locality: "Example City",
 *                 addressLines: ["1234 Example street"],
 *                 recipients: ["example recipient"],
 *             },
 *         },
 *         adminContact: {
 *             phoneNumber: "+12345000000",
 *             email: "[email protected]",
 *             postalAddress: {
 *                 regionCode: "US",
 *                 postalCode: "95050",
 *                 administrativeArea: "CA",
 *                 locality: "Example City",
 *                 addressLines: ["1234 Example street"],
 *                 recipients: ["example recipient"],
 *             },
 *         },
 *         technicalContact: {
 *             phoneNumber: "+12345000000",
 *             email: "[email protected]",
 *             postalAddress: {
 *                 regionCode: "US",
 *                 postalCode: "95050",
 *                 administrativeArea: "CA",
 *                 locality: "Example City",
 *                 addressLines: ["1234 Example street"],
 *                 recipients: ["example recipient"],
 *             },
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * my_registration = gcp.clouddomains.Registration("my_registration",
 *     domain_name="example-domain.com",
 *     location="global",
 *     labels={
 *         "labelkey": "labelvalue",
 *     },
 *     yearly_price=gcp.clouddomains.RegistrationYearlyPriceArgs(
 *         currency_code="USD",
 *         units="12",
 *     ),
 *     dns_settings=gcp.clouddomains.RegistrationDnsSettingsArgs(
 *         custom_dns=gcp.clouddomains.RegistrationDnsSettingsCustomDnsArgs(
 *             name_servers=[
 *                 "ns-cloud-a1.googledomains.com.",
 *                 "ns-cloud-a2.googledomains.com.",
 *                 "ns-cloud-a3.googledomains.com.",
 *                 "ns-cloud-a4.googledomains.com.",
 *             ],
 *         ),
 *     ),
 *     contact_settings=gcp.clouddomains.RegistrationContactSettingsArgs(
 *         privacy="REDACTED_CONTACT_DATA",
 *         registrant_contact=gcp.clouddomains.RegistrationContactSettingsRegistrantContactArgs(
 *             phone_number="+12345000000",
 *             email="[email protected]",
 *             postal_address=gcp.clouddomains.RegistrationContactSettingsRegistrantContactPostalAddressArgs(
 *                 region_code="US",
 *                 postal_code="95050",
 *                 administrative_area="CA",
 *                 locality="Example City",
 *                 address_lines=["1234 Example street"],
 *                 recipients=["example recipient"],
 *             ),
 *         ),
 *         admin_contact=gcp.clouddomains.RegistrationContactSettingsAdminContactArgs(
 *             phone_number="+12345000000",
 *             email="[email protected]",
 *             postal_address=gcp.clouddomains.RegistrationContactSettingsAdminContactPostalAddressArgs(
 *                 region_code="US",
 *                 postal_code="95050",
 *                 administrative_area="CA",
 *                 locality="Example City",
 *                 address_lines=["1234 Example street"],
 *                 recipients=["example recipient"],
 *             ),
 *         ),
 *         technical_contact=gcp.clouddomains.RegistrationContactSettingsTechnicalContactArgs(
 *             phone_number="+12345000000",
 *             email="[email protected]",
 *             postal_address=gcp.clouddomains.RegistrationContactSettingsTechnicalContactPostalAddressArgs(
 *                 region_code="US",
 *                 postal_code="95050",
 *                 administrative_area="CA",
 *                 locality="Example City",
 *                 address_lines=["1234 Example street"],
 *                 recipients=["example recipient"],
 *             ),
 *         ),
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var myRegistration = new Gcp.CloudDomains.Registration("my_registration", new()
 *     {
 *         DomainName = "example-domain.com",
 *         Location = "global",
 *         Labels =
 *         {
 *             { "labelkey", "labelvalue" },
 *         },
 *         YearlyPrice = new Gcp.CloudDomains.Inputs.RegistrationYearlyPriceArgs
 *         {
 *             CurrencyCode = "USD",
 *             Units = "12",
 *         },
 *         DnsSettings = new Gcp.CloudDomains.Inputs.RegistrationDnsSettingsArgs
 *         {
 *             CustomDns = new Gcp.CloudDomains.Inputs.RegistrationDnsSettingsCustomDnsArgs
 *             {
 *                 NameServers = new[]
 *                 {
 *                     "ns-cloud-a1.googledomains.com.",
 *                     "ns-cloud-a2.googledomains.com.",
 *                     "ns-cloud-a3.googledomains.com.",
 *                     "ns-cloud-a4.googledomains.com.",
 *                 },
 *             },
 *         },
 *         ContactSettings = new Gcp.CloudDomains.Inputs.RegistrationContactSettingsArgs
 *         {
 *             Privacy = "REDACTED_CONTACT_DATA",
 *             RegistrantContact = new Gcp.CloudDomains.Inputs.RegistrationContactSettingsRegistrantContactArgs
 *             {
 *                 PhoneNumber = "+12345000000",
 *                 Email = "[email protected]",
 *                 PostalAddress = new Gcp.CloudDomains.Inputs.RegistrationContactSettingsRegistrantContactPostalAddressArgs
 *                 {
 *                     RegionCode = "US",
 *                     PostalCode = "95050",
 *                     AdministrativeArea = "CA",
 *                     Locality = "Example City",
 *                     AddressLines = new[]
 *                     {
 *                         "1234 Example street",
 *                     },
 *                     Recipients = new[]
 *                     {
 *                         "example recipient",
 *                     },
 *                 },
 *             },
 *             AdminContact = new Gcp.CloudDomains.Inputs.RegistrationContactSettingsAdminContactArgs
 *             {
 *                 PhoneNumber = "+12345000000",
 *                 Email = "[email protected]",
 *                 PostalAddress = new Gcp.CloudDomains.Inputs.RegistrationContactSettingsAdminContactPostalAddressArgs
 *                 {
 *                     RegionCode = "US",
 *                     PostalCode = "95050",
 *                     AdministrativeArea = "CA",
 *                     Locality = "Example City",
 *                     AddressLines = new[]
 *                     {
 *                         "1234 Example street",
 *                     },
 *                     Recipients = new[]
 *                     {
 *                         "example recipient",
 *                     },
 *                 },
 *             },
 *             TechnicalContact = new Gcp.CloudDomains.Inputs.RegistrationContactSettingsTechnicalContactArgs
 *             {
 *                 PhoneNumber = "+12345000000",
 *                 Email = "[email protected]",
 *                 PostalAddress = new Gcp.CloudDomains.Inputs.RegistrationContactSettingsTechnicalContactPostalAddressArgs
 *                 {
 *                     RegionCode = "US",
 *                     PostalCode = "95050",
 *                     AdministrativeArea = "CA",
 *                     Locality = "Example City",
 *                     AddressLines = new[]
 *                     {
 *                         "1234 Example street",
 *                     },
 *                     Recipients = new[]
 *                     {
 *                         "example recipient",
 *                     },
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/clouddomains"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := clouddomains.NewRegistration(ctx, "my_registration", &clouddomains.RegistrationArgs{
 * 			DomainName: pulumi.String("example-domain.com"),
 * 			Location:   pulumi.String("global"),
 * 			Labels: pulumi.StringMap{
 * 				"labelkey": pulumi.String("labelvalue"),
 * 			},
 * 			YearlyPrice: &clouddomains.RegistrationYearlyPriceArgs{
 * 				CurrencyCode: pulumi.String("USD"),
 * 				Units:        pulumi.String("12"),
 * 			},
 * 			DnsSettings: &clouddomains.RegistrationDnsSettingsArgs{
 * 				CustomDns: &clouddomains.RegistrationDnsSettingsCustomDnsArgs{
 * 					NameServers: pulumi.StringArray{
 * 						pulumi.String("ns-cloud-a1.googledomains.com."),
 * 						pulumi.String("ns-cloud-a2.googledomains.com."),
 * 						pulumi.String("ns-cloud-a3.googledomains.com."),
 * 						pulumi.String("ns-cloud-a4.googledomains.com."),
 * 					},
 * 				},
 * 			},
 * 			ContactSettings: &clouddomains.RegistrationContactSettingsArgs{
 * 				Privacy: pulumi.String("REDACTED_CONTACT_DATA"),
 * 				RegistrantContact: &clouddomains.RegistrationContactSettingsRegistrantContactArgs{
 * 					PhoneNumber: pulumi.String("+12345000000"),
 * 					Email:       pulumi.String("[email protected]"),
 * 					PostalAddress: &clouddomains.RegistrationContactSettingsRegistrantContactPostalAddressArgs{
 * 						RegionCode:         pulumi.String("US"),
 * 						PostalCode:         pulumi.String("95050"),
 * 						AdministrativeArea: pulumi.String("CA"),
 * 						Locality:           pulumi.String("Example City"),
 * 						AddressLines: pulumi.StringArray{
 * 							pulumi.String("1234 Example street"),
 * 						},
 * 						Recipients: pulumi.StringArray{
 * 							pulumi.String("example recipient"),
 * 						},
 * 					},
 * 				},
 * 				AdminContact: &clouddomains.RegistrationContactSettingsAdminContactArgs{
 * 					PhoneNumber: pulumi.String("+12345000000"),
 * 					Email:       pulumi.String("[email protected]"),
 * 					PostalAddress: &clouddomains.RegistrationContactSettingsAdminContactPostalAddressArgs{
 * 						RegionCode:         pulumi.String("US"),
 * 						PostalCode:         pulumi.String("95050"),
 * 						AdministrativeArea: pulumi.String("CA"),
 * 						Locality:           pulumi.String("Example City"),
 * 						AddressLines: pulumi.StringArray{
 * 							pulumi.String("1234 Example street"),
 * 						},
 * 						Recipients: pulumi.StringArray{
 * 							pulumi.String("example recipient"),
 * 						},
 * 					},
 * 				},
 * 				TechnicalContact: &clouddomains.RegistrationContactSettingsTechnicalContactArgs{
 * 					PhoneNumber: pulumi.String("+12345000000"),
 * 					Email:       pulumi.String("[email protected]"),
 * 					PostalAddress: &clouddomains.RegistrationContactSettingsTechnicalContactPostalAddressArgs{
 * 						RegionCode:         pulumi.String("US"),
 * 						PostalCode:         pulumi.String("95050"),
 * 						AdministrativeArea: pulumi.String("CA"),
 * 						Locality:           pulumi.String("Example City"),
 * 						AddressLines: pulumi.StringArray{
 * 							pulumi.String("1234 Example street"),
 * 						},
 * 						Recipients: pulumi.StringArray{
 * 							pulumi.String("example recipient"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.gcp.clouddomains.Registration;
 * import com.pulumi.gcp.clouddomains.RegistrationArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationYearlyPriceArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationDnsSettingsArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationDnsSettingsCustomDnsArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsRegistrantContactArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsRegistrantContactPostalAddressArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsAdminContactArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsAdminContactPostalAddressArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsTechnicalContactArgs;
 * import com.pulumi.gcp.clouddomains.inputs.RegistrationContactSettingsTechnicalContactPostalAddressArgs;
 * 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 myRegistration = new Registration("myRegistration", RegistrationArgs.builder()
 *             .domainName("example-domain.com")
 *             .location("global")
 *             .labels(Map.of("labelkey", "labelvalue"))
 *             .yearlyPrice(RegistrationYearlyPriceArgs.builder()
 *                 .currencyCode("USD")
 *                 .units(12)
 *                 .build())
 *             .dnsSettings(RegistrationDnsSettingsArgs.builder()
 *                 .customDns(RegistrationDnsSettingsCustomDnsArgs.builder()
 *                     .nameServers(
 *                         "ns-cloud-a1.googledomains.com.",
 *                         "ns-cloud-a2.googledomains.com.",
 *                         "ns-cloud-a3.googledomains.com.",
 *                         "ns-cloud-a4.googledomains.com.")
 *                     .build())
 *                 .build())
 *             .contactSettings(RegistrationContactSettingsArgs.builder()
 *                 .privacy("REDACTED_CONTACT_DATA")
 *                 .registrantContact(RegistrationContactSettingsRegistrantContactArgs.builder()
 *                     .phoneNumber("+12345000000")
 *                     .email("[email protected]")
 *                     .postalAddress(RegistrationContactSettingsRegistrantContactPostalAddressArgs.builder()
 *                         .regionCode("US")
 *                         .postalCode("95050")
 *                         .administrativeArea("CA")
 *                         .locality("Example City")
 *                         .addressLines("1234 Example street")
 *                         .recipients("example recipient")
 *                         .build())
 *                     .build())
 *                 .adminContact(RegistrationContactSettingsAdminContactArgs.builder()
 *                     .phoneNumber("+12345000000")
 *                     .email("[email protected]")
 *                     .postalAddress(RegistrationContactSettingsAdminContactPostalAddressArgs.builder()
 *                         .regionCode("US")
 *                         .postalCode("95050")
 *                         .administrativeArea("CA")
 *                         .locality("Example City")
 *                         .addressLines("1234 Example street")
 *                         .recipients("example recipient")
 *                         .build())
 *                     .build())
 *                 .technicalContact(RegistrationContactSettingsTechnicalContactArgs.builder()
 *                     .phoneNumber("+12345000000")
 *                     .email("[email protected]")
 *                     .postalAddress(RegistrationContactSettingsTechnicalContactPostalAddressArgs.builder()
 *                         .regionCode("US")
 *                         .postalCode("95050")
 *                         .administrativeArea("CA")
 *                         .locality("Example City")
 *                         .addressLines("1234 Example street")
 *                         .recipients("example recipient")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   myRegistration:
 *     type: gcp:clouddomains:Registration
 *     name: my_registration
 *     properties:
 *       domainName: example-domain.com
 *       location: global
 *       labels:
 *         labelkey: labelvalue
 *       yearlyPrice:
 *         currencyCode: USD
 *         units: 12
 *       dnsSettings:
 *         customDns:
 *           nameServers:
 *             - ns-cloud-a1.googledomains.com.
 *             - ns-cloud-a2.googledomains.com.
 *             - ns-cloud-a3.googledomains.com.
 *             - ns-cloud-a4.googledomains.com.
 *       contactSettings:
 *         privacy: REDACTED_CONTACT_DATA
 *         registrantContact:
 *           phoneNumber: '+12345000000'
 *           email: [email protected]
 *           postalAddress:
 *             regionCode: US
 *             postalCode: '95050'
 *             administrativeArea: CA
 *             locality: Example City
 *             addressLines:
 *               - 1234 Example street
 *             recipients:
 *               - example recipient
 *         adminContact:
 *           phoneNumber: '+12345000000'
 *           email: [email protected]
 *           postalAddress:
 *             regionCode: US
 *             postalCode: '95050'
 *             administrativeArea: CA
 *             locality: Example City
 *             addressLines:
 *               - 1234 Example street
 *             recipients:
 *               - example recipient
 *         technicalContact:
 *           phoneNumber: '+12345000000'
 *           email: [email protected]
 *           postalAddress:
 *             regionCode: US
 *             postalCode: '95050'
 *             administrativeArea: CA
 *             locality: Example City
 *             addressLines:
 *               - 1234 Example street
 *             recipients:
 *               - example recipient
 * ```
 * 
 * ## Import
 * Registration can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/registrations/{{domain_name}}`
 * * `{{project}}/{{location}}/{{domain_name}}`
 * * `{{location}}/{{domain_name}}`
 * When using the `pulumi import` command, Registration can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:clouddomains/registration:Registration default projects/{{project}}/locations/{{location}}/registrations/{{domain_name}}
 * ```
 * ```sh
 * $ pulumi import gcp:clouddomains/registration:Registration default {{project}}/{{location}}/{{domain_name}}
 * ```
 * ```sh
 * $ pulumi import gcp:clouddomains/registration:Registration default {{location}}/{{domain_name}}
 * ```
 * @property contactNotices The list of contact notices that the caller acknowledges. Possible value is PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT
 * @property contactSettings Required. Settings for contact information linked to the Registration.
 * Structure is documented below.
 * @property dnsSettings Settings controlling the DNS configuration of the Registration.
 * @property domainName Required. The domain name. Unicode domain names must be expressed in Punycode format.
 * @property domainNotices The list of domain notices that you acknowledge. Possible value is HSTS_PRELOADED
 * @property labels Set of labels associated with the Registration. **Note**: This field is non-authoritative, and will only manage the
 * labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the
 * resource.
 * @property location The location for the resource
 * @property managementSettings Settings for management of the Registration, including renewal, billing, and transfer
 * @property project
 * @property yearlyPrice Required. Yearly price to register or renew the domain. The value that should be put here can be obtained from
 * registrations.retrieveRegisterParameters or registrations.searchDomains calls.
 * Structure is documented below.
 */
public data class RegistrationArgs(
    public val contactNotices: Output>? = null,
    public val contactSettings: Output? = null,
    public val dnsSettings: Output? = null,
    public val domainName: Output? = null,
    public val domainNotices: Output>? = null,
    public val labels: Output>? = null,
    public val location: Output? = null,
    public val managementSettings: Output? = null,
    public val project: Output? = null,
    public val yearlyPrice: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.clouddomains.RegistrationArgs =
        com.pulumi.gcp.clouddomains.RegistrationArgs.builder()
            .contactNotices(contactNotices?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .contactSettings(contactSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .dnsSettings(dnsSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .domainNotices(domainNotices?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .location(location?.applyValue({ args0 -> args0 }))
            .managementSettings(
                managementSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .project(project?.applyValue({ args0 -> args0 }))
            .yearlyPrice(yearlyPrice?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RegistrationArgs].
 */
@PulumiTagMarker
public class RegistrationArgsBuilder internal constructor() {
    private var contactNotices: Output>? = null

    private var contactSettings: Output? = null

    private var dnsSettings: Output? = null

    private var domainName: Output? = null

    private var domainNotices: Output>? = null

    private var labels: Output>? = null

    private var location: Output? = null

    private var managementSettings: Output? = null

    private var project: Output? = null

    private var yearlyPrice: Output? = null

    /**
     * @param value The list of contact notices that the caller acknowledges. Possible value is PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT
     */
    @JvmName("ayjxcnwpqmrtrhbo")
    public suspend fun contactNotices(`value`: Output>) {
        this.contactNotices = value
    }

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

    /**
     * @param values The list of contact notices that the caller acknowledges. Possible value is PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT
     */
    @JvmName("ovrpqqcsxjssjpin")
    public suspend fun contactNotices(values: List>) {
        this.contactNotices = Output.all(values)
    }

    /**
     * @param value Required. Settings for contact information linked to the Registration.
     * Structure is documented below.
     */
    @JvmName("lveywuswcfxkjomw")
    public suspend fun contactSettings(`value`: Output) {
        this.contactSettings = value
    }

    /**
     * @param value Settings controlling the DNS configuration of the Registration.
     */
    @JvmName("khptllpeabsmbqol")
    public suspend fun dnsSettings(`value`: Output) {
        this.dnsSettings = value
    }

    /**
     * @param value Required. The domain name. Unicode domain names must be expressed in Punycode format.
     */
    @JvmName("pfxbrmybvavkhlki")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The list of domain notices that you acknowledge. Possible value is HSTS_PRELOADED
     */
    @JvmName("uwgqajciumpqxqym")
    public suspend fun domainNotices(`value`: Output>) {
        this.domainNotices = value
    }

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

    /**
     * @param values The list of domain notices that you acknowledge. Possible value is HSTS_PRELOADED
     */
    @JvmName("ahntasnneambcnvn")
    public suspend fun domainNotices(values: List>) {
        this.domainNotices = Output.all(values)
    }

    /**
     * @param value Set of labels associated with the Registration. **Note**: This field is non-authoritative, and will only manage the
     * labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the
     * resource.
     */
    @JvmName("qwfhqypurufgvkli")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The location for the resource
     */
    @JvmName("xhmsbtwqgyoioygc")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Settings for management of the Registration, including renewal, billing, and transfer
     */
    @JvmName("ogqttedvtvvnvnpc")
    public suspend fun managementSettings(`value`: Output) {
        this.managementSettings = value
    }

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

    /**
     * @param value Required. Yearly price to register or renew the domain. The value that should be put here can be obtained from
     * registrations.retrieveRegisterParameters or registrations.searchDomains calls.
     * Structure is documented below.
     */
    @JvmName("kqvkfhlsnwiqybjt")
    public suspend fun yearlyPrice(`value`: Output) {
        this.yearlyPrice = value
    }

    /**
     * @param value The list of contact notices that the caller acknowledges. Possible value is PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT
     */
    @JvmName("gyiisbeowkticenf")
    public suspend fun contactNotices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contactNotices = mapped
    }

    /**
     * @param values The list of contact notices that the caller acknowledges. Possible value is PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT
     */
    @JvmName("yqfwugcnyxyaxjle")
    public suspend fun contactNotices(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contactNotices = mapped
    }

    /**
     * @param value Required. Settings for contact information linked to the Registration.
     * Structure is documented below.
     */
    @JvmName("kfatsieysiwjgcvq")
    public suspend fun contactSettings(`value`: RegistrationContactSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contactSettings = mapped
    }

    /**
     * @param argument Required. Settings for contact information linked to the Registration.
     * Structure is documented below.
     */
    @JvmName("qwyyocjrjxcncgth")
    public suspend fun contactSettings(argument: suspend RegistrationContactSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = RegistrationContactSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.contactSettings = mapped
    }

    /**
     * @param value Settings controlling the DNS configuration of the Registration.
     */
    @JvmName("psuqfbvbsnnsbrkh")
    public suspend fun dnsSettings(`value`: RegistrationDnsSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsSettings = mapped
    }

    /**
     * @param argument Settings controlling the DNS configuration of the Registration.
     */
    @JvmName("bttvkejvsvivoehn")
    public suspend fun dnsSettings(argument: suspend RegistrationDnsSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = RegistrationDnsSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dnsSettings = mapped
    }

    /**
     * @param value Required. The domain name. Unicode domain names must be expressed in Punycode format.
     */
    @JvmName("hhbtgicgkuyagsxe")
    public suspend fun domainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value The list of domain notices that you acknowledge. Possible value is HSTS_PRELOADED
     */
    @JvmName("kgdhcddhcgafvvkv")
    public suspend fun domainNotices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainNotices = mapped
    }

    /**
     * @param values The list of domain notices that you acknowledge. Possible value is HSTS_PRELOADED
     */
    @JvmName("adtxekcssqtuxtlb")
    public suspend fun domainNotices(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domainNotices = mapped
    }

    /**
     * @param value Set of labels associated with the Registration. **Note**: This field is non-authoritative, and will only manage the
     * labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the
     * resource.
     */
    @JvmName("graguywrhpitvdvr")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Set of labels associated with the Registration. **Note**: This field is non-authoritative, and will only manage the
     * labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the
     * resource.
     */
    @JvmName("qjwwnqhjfecmdsod")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The location for the resource
     */
    @JvmName("aagnncqfnvoonpsk")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Settings for management of the Registration, including renewal, billing, and transfer
     */
    @JvmName("llqjofllmsrjhesq")
    public suspend fun managementSettings(`value`: RegistrationManagementSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managementSettings = mapped
    }

    /**
     * @param argument Settings for management of the Registration, including renewal, billing, and transfer
     */
    @JvmName("fdvabvxpbfbhmxev")
    public suspend fun managementSettings(argument: suspend RegistrationManagementSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = RegistrationManagementSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.managementSettings = mapped
    }

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

    /**
     * @param value Required. Yearly price to register or renew the domain. The value that should be put here can be obtained from
     * registrations.retrieveRegisterParameters or registrations.searchDomains calls.
     * Structure is documented below.
     */
    @JvmName("xhwpcbmeujidxqph")
    public suspend fun yearlyPrice(`value`: RegistrationYearlyPriceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.yearlyPrice = mapped
    }

    /**
     * @param argument Required. Yearly price to register or renew the domain. The value that should be put here can be obtained from
     * registrations.retrieveRegisterParameters or registrations.searchDomains calls.
     * Structure is documented below.
     */
    @JvmName("myywwbtvkhrcailw")
    public suspend fun yearlyPrice(argument: suspend RegistrationYearlyPriceArgsBuilder.() -> Unit) {
        val toBeMapped = RegistrationYearlyPriceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.yearlyPrice = mapped
    }

    internal fun build(): RegistrationArgs = RegistrationArgs(
        contactNotices = contactNotices,
        contactSettings = contactSettings,
        dnsSettings = dnsSettings,
        domainName = domainName,
        domainNotices = domainNotices,
        labels = labels,
        location = location,
        managementSettings = managementSettings,
        project = project,
        yearlyPrice = yearlyPrice,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy