commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.auth.PinpointSmsVoiceV2AuthSchemeParameters.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointsmsvoicev2-jvm Show documentation
Show all versions of pinpointsmsvoicev2-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint SMS Voice V2
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointsmsvoicev2.auth
public class PinpointSmsVoiceV2AuthSchemeParameters private constructor(builder: Builder) {
public val operationName: String = requireNotNull(builder.operationName) { "operationName is a required auth scheme parameter" }
public companion object {
public inline operator fun invoke(block: Builder.() -> kotlin.Unit): PinpointSmsVoiceV2AuthSchemeParameters = Builder().apply(block).build()
}
public fun toBuilder(): Builder = Builder().apply {
operationName = [email protected]
}
public class Builder {
/**
* The name of the operation currently being invoked.
*/
public var operationName: String? = null
@PublishedApi
internal fun build(): PinpointSmsVoiceV2AuthSchemeParameters = PinpointSmsVoiceV2AuthSchemeParameters(this)
}
override fun toString(): String = buildString {
append("PinpointSmsVoiceV2AuthSchemeParameters(")
append("operationName=$operationName)")
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is PinpointSmsVoiceV2AuthSchemeParameters) return false
if (this.operationName != other.operationName) return false
return true
}
override fun hashCode(): Int {
var result = operationName?.hashCode() ?: 0
return result
}
public fun copy(block: Builder.() -> Unit = {}): PinpointSmsVoiceV2AuthSchemeParameters {
return Builder().apply {
operationName = [email protected]
block()
}
.build()
}
}