
com.pulumi.gcp.siteverification.kotlin.inputs.GetTokenPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.siteverification.kotlin.inputs
import com.pulumi.gcp.siteverification.inputs.GetTokenPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getToken.
* @property identifier The site identifier. If the type is set to SITE, the identifier is a URL. If the type is
* set to INET_DOMAIN, the identifier is a domain name.
* @property type The type of resource to be verified, either a domain or a web site.
* Possible values are: `INET_DOMAIN`, `SITE`.
* @property verificationMethod The verification method for the Site Verification system to use to verify
* this site or domain.
* Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`.
* - - -
*/
public data class GetTokenPlainArgs(
public val identifier: String,
public val type: String,
public val verificationMethod: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.siteverification.inputs.GetTokenPlainArgs =
com.pulumi.gcp.siteverification.inputs.GetTokenPlainArgs.builder()
.identifier(identifier.let({ args0 -> args0 }))
.type(type.let({ args0 -> args0 }))
.verificationMethod(verificationMethod.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetTokenPlainArgs].
*/
@PulumiTagMarker
public class GetTokenPlainArgsBuilder internal constructor() {
private var identifier: String? = null
private var type: String? = null
private var verificationMethod: String? = null
/**
* @param value The site identifier. If the type is set to SITE, the identifier is a URL. If the type is
* set to INET_DOMAIN, the identifier is a domain name.
*/
@JvmName("jmahlwebwqbxqwrr")
public suspend fun identifier(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.identifier = mapped
}
/**
* @param value The type of resource to be verified, either a domain or a web site.
* Possible values are: `INET_DOMAIN`, `SITE`.
*/
@JvmName("yikpbdjhxpclrlgc")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.type = mapped
}
/**
* @param value The verification method for the Site Verification system to use to verify
* this site or domain.
* Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`.
* - - -
*/
@JvmName("ekjwabpttvctaacp")
public suspend fun verificationMethod(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.verificationMethod = mapped
}
internal fun build(): GetTokenPlainArgs = GetTokenPlainArgs(
identifier = identifier ?: throw PulumiNullFieldException("identifier"),
type = type ?: throw PulumiNullFieldException("type"),
verificationMethod = verificationMethod ?: throw PulumiNullFieldException("verificationMethod"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy