
aws.sdk.kotlin.services.devopsguru.model.ReactiveOrganizationInsightSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
/**
* Information about a reactive insight. This object is returned by
* DescribeInsight.
*/
class ReactiveOrganizationInsightSummary private constructor(builder: Builder) {
/**
* The ID of the Amazon Web Services account.
*/
val accountId: kotlin.String? = builder.accountId
/**
* The ID of the insight summary.
*/
val id: kotlin.String? = builder.id
/**
* A time ranged that specifies when the observed behavior in an insight started and
* ended.
*/
val insightTimeRange: aws.sdk.kotlin.services.devopsguru.model.InsightTimeRange? = builder.insightTimeRange
/**
* The name of the insight summary.
*/
val name: kotlin.String? = builder.name
/**
* The ID of the organizational unit.
*/
val organizationalUnitId: kotlin.String? = builder.organizationalUnitId
/**
* A collection of Amazon Web Services resources supported by DevOps Guru.
* The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and
* Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze
* the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
*/
val resourceCollection: aws.sdk.kotlin.services.devopsguru.model.ResourceCollection? = builder.resourceCollection
/**
* A collection of the names of Amazon Web Services services.
*/
val serviceCollection: aws.sdk.kotlin.services.devopsguru.model.ServiceCollection? = builder.serviceCollection
/**
* An array of severity values used to search for insights.
* For more information, see
* Understanding
* insight severities in the Amazon DevOps Guru User Guide.
*/
val severity: aws.sdk.kotlin.services.devopsguru.model.InsightSeverity? = builder.severity
/**
* An array of status values used to search for insights.
*/
val status: aws.sdk.kotlin.services.devopsguru.model.InsightStatus? = builder.status
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.ReactiveOrganizationInsightSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReactiveOrganizationInsightSummary(")
append("accountId=$accountId,")
append("id=$id,")
append("insightTimeRange=$insightTimeRange,")
append("name=$name,")
append("organizationalUnitId=$organizationalUnitId,")
append("resourceCollection=$resourceCollection,")
append("serviceCollection=$serviceCollection,")
append("severity=$severity,")
append("status=$status)")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (insightTimeRange?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (organizationalUnitId?.hashCode() ?: 0)
result = 31 * result + (resourceCollection?.hashCode() ?: 0)
result = 31 * result + (serviceCollection?.hashCode() ?: 0)
result = 31 * result + (severity?.hashCode() ?: 0)
result = 31 * result + (status?.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 ReactiveOrganizationInsightSummary
if (accountId != other.accountId) return false
if (id != other.id) return false
if (insightTimeRange != other.insightTimeRange) return false
if (name != other.name) return false
if (organizationalUnitId != other.organizationalUnitId) return false
if (resourceCollection != other.resourceCollection) return false
if (serviceCollection != other.serviceCollection) return false
if (severity != other.severity) return false
if (status != other.status) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.ReactiveOrganizationInsightSummary = Builder(this).apply(block).build()
class Builder {
/**
* The ID of the Amazon Web Services account.
*/
var accountId: kotlin.String? = null
/**
* The ID of the insight summary.
*/
var id: kotlin.String? = null
/**
* A time ranged that specifies when the observed behavior in an insight started and
* ended.
*/
var insightTimeRange: aws.sdk.kotlin.services.devopsguru.model.InsightTimeRange? = null
/**
* The name of the insight summary.
*/
var name: kotlin.String? = null
/**
* The ID of the organizational unit.
*/
var organizationalUnitId: kotlin.String? = null
/**
* A collection of Amazon Web Services resources supported by DevOps Guru.
* The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and
* Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze
* the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
*/
var resourceCollection: aws.sdk.kotlin.services.devopsguru.model.ResourceCollection? = null
/**
* A collection of the names of Amazon Web Services services.
*/
var serviceCollection: aws.sdk.kotlin.services.devopsguru.model.ServiceCollection? = null
/**
* An array of severity values used to search for insights.
* For more information, see
* Understanding
* insight severities in the Amazon DevOps Guru User Guide.
*/
var severity: aws.sdk.kotlin.services.devopsguru.model.InsightSeverity? = null
/**
* An array of status values used to search for insights.
*/
var status: aws.sdk.kotlin.services.devopsguru.model.InsightStatus? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.ReactiveOrganizationInsightSummary) : this() {
this.accountId = x.accountId
this.id = x.id
this.insightTimeRange = x.insightTimeRange
this.name = x.name
this.organizationalUnitId = x.organizationalUnitId
this.resourceCollection = x.resourceCollection
this.serviceCollection = x.serviceCollection
this.severity = x.severity
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.ReactiveOrganizationInsightSummary = ReactiveOrganizationInsightSummary(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.InsightTimeRange] inside the given [block]
*/
fun insightTimeRange(block: aws.sdk.kotlin.services.devopsguru.model.InsightTimeRange.Builder.() -> kotlin.Unit) {
this.insightTimeRange = aws.sdk.kotlin.services.devopsguru.model.InsightTimeRange.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.ResourceCollection] inside the given [block]
*/
fun resourceCollection(block: aws.sdk.kotlin.services.devopsguru.model.ResourceCollection.Builder.() -> kotlin.Unit) {
this.resourceCollection = aws.sdk.kotlin.services.devopsguru.model.ResourceCollection.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.ServiceCollection] inside the given [block]
*/
fun serviceCollection(block: aws.sdk.kotlin.services.devopsguru.model.ServiceCollection.Builder.() -> kotlin.Unit) {
this.serviceCollection = aws.sdk.kotlin.services.devopsguru.model.ServiceCollection.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy