commonMain.aws.sdk.kotlin.services.firehose.model.HttpEndpointRequestConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firehose-jvm Show documentation
Show all versions of firehose-jvm Show documentation
The AWS SDK for Kotlin client for Firehose
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.firehose.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration of the HTTP endpoint request.
*/
public class HttpEndpointRequestConfiguration private constructor(builder: Builder) {
/**
* Describes the metadata sent to the HTTP endpoint destination.
*/
public val commonAttributes: List? = builder.commonAttributes
/**
* Firehose uses the content encoding to compress the body of a request before sending the request to the destination. For more information, see [Content-Encoding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding) in MDN Web Docs, the official Mozilla documentation.
*/
public val contentEncoding: aws.sdk.kotlin.services.firehose.model.ContentEncoding? = builder.contentEncoding
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.firehose.model.HttpEndpointRequestConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HttpEndpointRequestConfiguration(")
append("commonAttributes=$commonAttributes,")
append("contentEncoding=$contentEncoding")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = commonAttributes?.hashCode() ?: 0
result = 31 * result + (contentEncoding?.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 HttpEndpointRequestConfiguration
if (commonAttributes != other.commonAttributes) return false
if (contentEncoding != other.contentEncoding) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.firehose.model.HttpEndpointRequestConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Describes the metadata sent to the HTTP endpoint destination.
*/
public var commonAttributes: List? = null
/**
* Firehose uses the content encoding to compress the body of a request before sending the request to the destination. For more information, see [Content-Encoding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding) in MDN Web Docs, the official Mozilla documentation.
*/
public var contentEncoding: aws.sdk.kotlin.services.firehose.model.ContentEncoding? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.firehose.model.HttpEndpointRequestConfiguration) : this() {
this.commonAttributes = x.commonAttributes
this.contentEncoding = x.contentEncoding
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.firehose.model.HttpEndpointRequestConfiguration = HttpEndpointRequestConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}