commonMain.aws.sdk.kotlin.services.eventbridge.model.UpdateEndpointResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventbridge-jvm Show documentation
Show all versions of eventbridge-jvm Show documentation
The AWS SDK for Kotlin client for EventBridge
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eventbridge.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateEndpointResponse private constructor(builder: Builder) {
/**
* The ARN of the endpoint you updated in this request.
*/
public val arn: kotlin.String? = builder.arn
/**
* The ID of the endpoint you updated in this request.
*/
public val endpointId: kotlin.String? = builder.endpointId
/**
* The URL of the endpoint you updated in this request.
*/
public val endpointUrl: kotlin.String? = builder.endpointUrl
/**
* The event buses used for replication for the endpoint you updated in this request.
*/
public val eventBuses: List? = builder.eventBuses
/**
* The name of the endpoint you updated in this request.
*/
public val name: kotlin.String? = builder.name
/**
* Whether event replication was enabled or disabled for the endpoint you updated in this request.
*/
public val replicationConfig: aws.sdk.kotlin.services.eventbridge.model.ReplicationConfig? = builder.replicationConfig
/**
* The ARN of the role used by event replication for the endpoint you updated in this request.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The routing configuration you updated in this request.
*/
public val routingConfig: aws.sdk.kotlin.services.eventbridge.model.RoutingConfig? = builder.routingConfig
/**
* The state of the endpoint you updated in this request.
*/
public val state: aws.sdk.kotlin.services.eventbridge.model.EndpointState? = builder.state
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eventbridge.model.UpdateEndpointResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateEndpointResponse(")
append("arn=$arn,")
append("endpointId=$endpointId,")
append("endpointUrl=$endpointUrl,")
append("eventBuses=$eventBuses,")
append("name=$name,")
append("replicationConfig=$replicationConfig,")
append("roleArn=$roleArn,")
append("routingConfig=$routingConfig,")
append("state=$state")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (endpointId?.hashCode() ?: 0)
result = 31 * result + (endpointUrl?.hashCode() ?: 0)
result = 31 * result + (eventBuses?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (replicationConfig?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (routingConfig?.hashCode() ?: 0)
result = 31 * result + (state?.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 UpdateEndpointResponse
if (arn != other.arn) return false
if (endpointId != other.endpointId) return false
if (endpointUrl != other.endpointUrl) return false
if (eventBuses != other.eventBuses) return false
if (name != other.name) return false
if (replicationConfig != other.replicationConfig) return false
if (roleArn != other.roleArn) return false
if (routingConfig != other.routingConfig) return false
if (state != other.state) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eventbridge.model.UpdateEndpointResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the endpoint you updated in this request.
*/
public var arn: kotlin.String? = null
/**
* The ID of the endpoint you updated in this request.
*/
public var endpointId: kotlin.String? = null
/**
* The URL of the endpoint you updated in this request.
*/
public var endpointUrl: kotlin.String? = null
/**
* The event buses used for replication for the endpoint you updated in this request.
*/
public var eventBuses: List? = null
/**
* The name of the endpoint you updated in this request.
*/
public var name: kotlin.String? = null
/**
* Whether event replication was enabled or disabled for the endpoint you updated in this request.
*/
public var replicationConfig: aws.sdk.kotlin.services.eventbridge.model.ReplicationConfig? = null
/**
* The ARN of the role used by event replication for the endpoint you updated in this request.
*/
public var roleArn: kotlin.String? = null
/**
* The routing configuration you updated in this request.
*/
public var routingConfig: aws.sdk.kotlin.services.eventbridge.model.RoutingConfig? = null
/**
* The state of the endpoint you updated in this request.
*/
public var state: aws.sdk.kotlin.services.eventbridge.model.EndpointState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.UpdateEndpointResponse) : this() {
this.arn = x.arn
this.endpointId = x.endpointId
this.endpointUrl = x.endpointUrl
this.eventBuses = x.eventBuses
this.name = x.name
this.replicationConfig = x.replicationConfig
this.roleArn = x.roleArn
this.routingConfig = x.routingConfig
this.state = x.state
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eventbridge.model.UpdateEndpointResponse = UpdateEndpointResponse(this)
/**
* construct an [aws.sdk.kotlin.services.eventbridge.model.ReplicationConfig] inside the given [block]
*/
public fun replicationConfig(block: aws.sdk.kotlin.services.eventbridge.model.ReplicationConfig.Builder.() -> kotlin.Unit) {
this.replicationConfig = aws.sdk.kotlin.services.eventbridge.model.ReplicationConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.eventbridge.model.RoutingConfig] inside the given [block]
*/
public fun routingConfig(block: aws.sdk.kotlin.services.eventbridge.model.RoutingConfig.Builder.() -> kotlin.Unit) {
this.routingConfig = aws.sdk.kotlin.services.eventbridge.model.RoutingConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}