commonMain.aws.sdk.kotlin.services.devopsguru.model.SearchInsightsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devopsguru-jvm Show documentation
Show all versions of devopsguru-jvm Show documentation
The AWS SDK for Kotlin client for DevOps Guru
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SearchInsightsRequest private constructor(builder: Builder) {
/**
* A `SearchInsightsFilters` object that is used to set the severity and status filters on your insight search.
*/
public val filters: aws.sdk.kotlin.services.devopsguru.model.SearchInsightsFilters? = builder.filters
/**
* The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The start of the time range passed in. Returned insights occurred after this time.
*/
public val startTimeRange: aws.sdk.kotlin.services.devopsguru.model.StartTimeRange? = builder.startTimeRange
/**
* The type of insights you are searching for (`REACTIVE` or `PROACTIVE`).
*/
public val type: aws.sdk.kotlin.services.devopsguru.model.InsightType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.SearchInsightsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchInsightsRequest(")
append("filters=$filters,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("startTimeRange=$startTimeRange,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = filters?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (startTimeRange?.hashCode() ?: 0)
result = 31 * result + (type?.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 SearchInsightsRequest
if (filters != other.filters) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (startTimeRange != other.startTimeRange) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.SearchInsightsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A `SearchInsightsFilters` object that is used to set the severity and status filters on your insight search.
*/
public var filters: aws.sdk.kotlin.services.devopsguru.model.SearchInsightsFilters? = null
/**
* The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned `nextToken` value.
*/
public var maxResults: kotlin.Int? = null
/**
* The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
*/
public var nextToken: kotlin.String? = null
/**
* The start of the time range passed in. Returned insights occurred after this time.
*/
public var startTimeRange: aws.sdk.kotlin.services.devopsguru.model.StartTimeRange? = null
/**
* The type of insights you are searching for (`REACTIVE` or `PROACTIVE`).
*/
public var type: aws.sdk.kotlin.services.devopsguru.model.InsightType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.SearchInsightsRequest) : this() {
this.filters = x.filters
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.startTimeRange = x.startTimeRange
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.SearchInsightsRequest = SearchInsightsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.SearchInsightsFilters] inside the given [block]
*/
public fun filters(block: aws.sdk.kotlin.services.devopsguru.model.SearchInsightsFilters.Builder.() -> kotlin.Unit) {
this.filters = aws.sdk.kotlin.services.devopsguru.model.SearchInsightsFilters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.StartTimeRange] inside the given [block]
*/
public fun startTimeRange(block: aws.sdk.kotlin.services.devopsguru.model.StartTimeRange.Builder.() -> kotlin.Unit) {
this.startTimeRange = aws.sdk.kotlin.services.devopsguru.model.StartTimeRange.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}