commonMain.aws.sdk.kotlin.services.eventbridge.model.ConnectionHttpParameters.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
/**
* Contains additional parameters for the connection.
*/
public class ConnectionHttpParameters private constructor(builder: Builder) {
/**
* Contains additional body string parameters for the connection.
*/
public val bodyParameters: List? = builder.bodyParameters
/**
* Contains additional header parameters for the connection.
*/
public val headerParameters: List? = builder.headerParameters
/**
* Contains additional query string parameters for the connection.
*/
public val queryStringParameters: List? = builder.queryStringParameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eventbridge.model.ConnectionHttpParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConnectionHttpParameters(")
append("bodyParameters=$bodyParameters,")
append("headerParameters=$headerParameters,")
append("queryStringParameters=$queryStringParameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bodyParameters?.hashCode() ?: 0
result = 31 * result + (headerParameters?.hashCode() ?: 0)
result = 31 * result + (queryStringParameters?.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 ConnectionHttpParameters
if (bodyParameters != other.bodyParameters) return false
if (headerParameters != other.headerParameters) return false
if (queryStringParameters != other.queryStringParameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eventbridge.model.ConnectionHttpParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains additional body string parameters for the connection.
*/
public var bodyParameters: List? = null
/**
* Contains additional header parameters for the connection.
*/
public var headerParameters: List? = null
/**
* Contains additional query string parameters for the connection.
*/
public var queryStringParameters: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.ConnectionHttpParameters) : this() {
this.bodyParameters = x.bodyParameters
this.headerParameters = x.headerParameters
this.queryStringParameters = x.queryStringParameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eventbridge.model.ConnectionHttpParameters = ConnectionHttpParameters(this)
internal fun correctErrors(): Builder {
return this
}
}
}