
com.pulumi.googlenative.compute.v1.kotlin.RegionNotificationEndpointArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
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.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.v1.RegionNotificationEndpointArgs.builder
import com.pulumi.googlenative.compute.v1.kotlin.inputs.NotificationEndpointGrpcSettingsArgs
import com.pulumi.googlenative.compute.v1.kotlin.inputs.NotificationEndpointGrpcSettingsArgsBuilder
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
/**
* Create a NotificationEndpoint 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 grpcSettings Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
* @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 project
* @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 RegionNotificationEndpointArgs(
public val description: Output? = null,
public val grpcSettings: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
public val region: Output? = null,
public val requestId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.v1.RegionNotificationEndpointArgs =
com.pulumi.googlenative.compute.v1.RegionNotificationEndpointArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.grpcSettings(grpcSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.region(region?.applyValue({ args0 -> args0 }))
.requestId(requestId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionNotificationEndpointArgs].
*/
@PulumiTagMarker
public class RegionNotificationEndpointArgsBuilder internal constructor() {
private var description: Output? = null
private var grpcSettings: Output? = null
private var name: Output? = null
private var project: 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("lodvttnyuwykjhlf")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
*/
@JvmName("cokgsygrwaxclflg")
public suspend fun grpcSettings(`value`: Output) {
this.grpcSettings = 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("xxvmcfeopvkkabxw")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("rtmroxjiuisedrkv")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value
*/
@JvmName("voygkfkovpadrcot")
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("lrplnunljbkdmqai")
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("qgpuevtrutwiuvwc")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
*/
@JvmName("dwwhnonykfiepdss")
public suspend fun grpcSettings(`value`: NotificationEndpointGrpcSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.grpcSettings = mapped
}
/**
* @param argument Settings of the gRPC notification endpoint including the endpoint URL and the retry duration.
*/
@JvmName("nejtsiqjvsgweuyl")
public suspend fun grpcSettings(argument: suspend NotificationEndpointGrpcSettingsArgsBuilder.() -> Unit) {
val toBeMapped = NotificationEndpointGrpcSettingsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.grpcSettings = 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("obhmxdwpxxjcgghy")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("rqapvsskqfcserew")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value
*/
@JvmName("bipkkaggsbdmkrll")
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("xcicrxvameodecua")
public suspend fun requestId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.requestId = mapped
}
internal fun build(): RegionNotificationEndpointArgs = RegionNotificationEndpointArgs(
description = description,
grpcSettings = grpcSettings,
name = name,
project = project,
region = region,
requestId = requestId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy