commonMain.aws.sdk.kotlin.services.devopsguru.model.SearchOrganizationInsightsRequest.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 SearchOrganizationInsightsRequest private constructor(builder: Builder) {
/**
* The ID of the Amazon Web Services account.
*/
public val accountIds: List? = builder.accountIds
/**
* A `SearchOrganizationInsightsFilters` object that is used to set the severity and status filters on your insight search.
*/
public val filters: aws.sdk.kotlin.services.devopsguru.model.SearchOrganizationInsightsFilters? = 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
/**
* A time range used to specify when the behavior of an insight or anomaly started.
*/
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.SearchOrganizationInsightsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchOrganizationInsightsRequest(")
append("accountIds=$accountIds,")
append("filters=$filters,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("startTimeRange=$startTimeRange,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountIds?.hashCode() ?: 0
result = 31 * 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 SearchOrganizationInsightsRequest
if (accountIds != other.accountIds) return false
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.SearchOrganizationInsightsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the Amazon Web Services account.
*/
public var accountIds: List? = null
/**
* A `SearchOrganizationInsightsFilters` object that is used to set the severity and status filters on your insight search.
*/
public var filters: aws.sdk.kotlin.services.devopsguru.model.SearchOrganizationInsightsFilters? = 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
/**
* A time range used to specify when the behavior of an insight or anomaly started.
*/
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.SearchOrganizationInsightsRequest) : this() {
this.accountIds = x.accountIds
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.SearchOrganizationInsightsRequest = SearchOrganizationInsightsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.SearchOrganizationInsightsFilters] inside the given [block]
*/
public fun filters(block: aws.sdk.kotlin.services.devopsguru.model.SearchOrganizationInsightsFilters.Builder.() -> kotlin.Unit) {
this.filters = aws.sdk.kotlin.services.devopsguru.model.SearchOrganizationInsightsFilters.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
}
}
}