commonMain.aws.sdk.kotlin.services.bedrockagent.model.UpdateFlowAliasRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateFlowAliasRequest private constructor(builder: Builder) {
/**
* The unique identifier of the alias.
*/
public val aliasIdentifier: kotlin.String? = builder.aliasIdentifier
/**
* A description for the alias.
*/
public val description: kotlin.String? = builder.description
/**
* The unique identifier of the flow.
*/
public val flowIdentifier: kotlin.String? = builder.flowIdentifier
/**
* The name of the alias.
*/
public val name: kotlin.String? = builder.name
/**
* Contains information about the version to which to map the alias.
*/
public val routingConfiguration: List? = builder.routingConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.UpdateFlowAliasRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateFlowAliasRequest(")
append("aliasIdentifier=$aliasIdentifier,")
append("description=$description,")
append("flowIdentifier=$flowIdentifier,")
append("name=$name,")
append("routingConfiguration=$routingConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aliasIdentifier?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (flowIdentifier?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (routingConfiguration?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as UpdateFlowAliasRequest
if (aliasIdentifier != other.aliasIdentifier) return false
if (description != other.description) return false
if (flowIdentifier != other.flowIdentifier) return false
if (name != other.name) return false
if (routingConfiguration != other.routingConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.UpdateFlowAliasRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the alias.
*/
public var aliasIdentifier: kotlin.String? = null
/**
* A description for the alias.
*/
public var description: kotlin.String? = null
/**
* The unique identifier of the flow.
*/
public var flowIdentifier: kotlin.String? = null
/**
* The name of the alias.
*/
public var name: kotlin.String? = null
/**
* Contains information about the version to which to map the alias.
*/
public var routingConfiguration: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.UpdateFlowAliasRequest) : this() {
this.aliasIdentifier = x.aliasIdentifier
this.description = x.description
this.flowIdentifier = x.flowIdentifier
this.name = x.name
this.routingConfiguration = x.routingConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.UpdateFlowAliasRequest = UpdateFlowAliasRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}