commonMain.aws.sdk.kotlin.services.bedrockagent.model.WebCrawlerLimits.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The rate limits for the URLs that you want to crawl. You should be authorized to crawl the URLs.
*/
public class WebCrawlerLimits private constructor(builder: Builder) {
/**
* The max rate at which pages are crawled, up to 300 per minute per host.
*/
public val rateLimit: kotlin.Int? = builder.rateLimit
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.WebCrawlerLimits = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WebCrawlerLimits(")
append("rateLimit=$rateLimit")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = rateLimit ?: 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 WebCrawlerLimits
if (rateLimit != other.rateLimit) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.WebCrawlerLimits = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The max rate at which pages are crawled, up to 300 per minute per host.
*/
public var rateLimit: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.WebCrawlerLimits) : this() {
this.rateLimit = x.rateLimit
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.WebCrawlerLimits = WebCrawlerLimits(this)
internal fun correctErrors(): Builder {
return this
}
}
}