commonMain.aws.sdk.kotlin.services.eventbridge.model.HttpParameters.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
/**
* These are custom parameter to be used when the target is an API Gateway APIs or EventBridge ApiDestinations. In the latter case, these are merged with any InvocationParameters specified on the Connection, with any values from the Connection taking precedence.
*/
public class HttpParameters private constructor(builder: Builder) {
/**
* The headers that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.
*/
public val headerParameters: Map? = builder.headerParameters
/**
* The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path wildcards ("*").
*/
public val pathParameterValues: List? = builder.pathParameterValues
/**
* The query string keys/values that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.
*/
public val queryStringParameters: Map? = builder.queryStringParameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eventbridge.model.HttpParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HttpParameters(")
append("headerParameters=$headerParameters,")
append("pathParameterValues=$pathParameterValues,")
append("queryStringParameters=$queryStringParameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = headerParameters?.hashCode() ?: 0
result = 31 * result + (pathParameterValues?.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 HttpParameters
if (headerParameters != other.headerParameters) return false
if (pathParameterValues != other.pathParameterValues) return false
if (queryStringParameters != other.queryStringParameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eventbridge.model.HttpParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The headers that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.
*/
public var headerParameters: Map? = null
/**
* The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path wildcards ("*").
*/
public var pathParameterValues: List? = null
/**
* The query string keys/values that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.
*/
public var queryStringParameters: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.HttpParameters) : this() {
this.headerParameters = x.headerParameters
this.pathParameterValues = x.pathParameterValues
this.queryStringParameters = x.queryStringParameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eventbridge.model.HttpParameters = HttpParameters(this)
internal fun correctErrors(): Builder {
return this
}
}
}