
commonMain.aws.sdk.kotlin.services.iot.model.HttpContext.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* Specifies the HTTP context to use for the test authorizer request.
*/
public class HttpContext private constructor(builder: Builder) {
/**
* The header keys and values in an HTTP authorization request.
*/
public val headers: Map? = builder.headers
/**
* The query string keys and values in an HTTP authorization request.
*/
public val queryString: kotlin.String? = builder.queryString
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.HttpContext = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HttpContext(")
append("headers=$headers,")
append("queryString=$queryString")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = headers?.hashCode() ?: 0
result = 31 * result + (queryString?.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 HttpContext
if (headers != other.headers) return false
if (queryString != other.queryString) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.HttpContext = Builder(this).apply(block).build()
public class Builder {
/**
* The header keys and values in an HTTP authorization request.
*/
public var headers: Map? = null
/**
* The query string keys and values in an HTTP authorization request.
*/
public var queryString: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.HttpContext) : this() {
this.headers = x.headers
this.queryString = x.queryString
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.HttpContext = HttpContext(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy