
commonMain.aws.sdk.kotlin.services.xray.model.GetInsightImpactGraphResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.xray.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetInsightImpactGraphResponse private constructor(builder: Builder) {
/**
* The provided end time.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* The insight's unique identifier.
*/
public val insightId: kotlin.String? = builder.insightId
/**
* Pagination token.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The time, in Unix seconds, at which the service graph ended.
*/
public val serviceGraphEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.serviceGraphEndTime
/**
* The time, in Unix seconds, at which the service graph started.
*/
public val serviceGraphStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.serviceGraphStartTime
/**
* The Amazon Web Services instrumented services related to the insight.
*/
public val services: List? = builder.services
/**
* The provided start time.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.GetInsightImpactGraphResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetInsightImpactGraphResponse(")
append("endTime=$endTime,")
append("insightId=$insightId,")
append("nextToken=$nextToken,")
append("serviceGraphEndTime=$serviceGraphEndTime,")
append("serviceGraphStartTime=$serviceGraphStartTime,")
append("services=$services,")
append("startTime=$startTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endTime?.hashCode() ?: 0
result = 31 * result + (insightId?.hashCode() ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (serviceGraphEndTime?.hashCode() ?: 0)
result = 31 * result + (serviceGraphStartTime?.hashCode() ?: 0)
result = 31 * result + (services?.hashCode() ?: 0)
result = 31 * result + (startTime?.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 GetInsightImpactGraphResponse
if (endTime != other.endTime) return false
if (insightId != other.insightId) return false
if (nextToken != other.nextToken) return false
if (serviceGraphEndTime != other.serviceGraphEndTime) return false
if (serviceGraphStartTime != other.serviceGraphStartTime) return false
if (services != other.services) return false
if (startTime != other.startTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.GetInsightImpactGraphResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The provided end time.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The insight's unique identifier.
*/
public var insightId: kotlin.String? = null
/**
* Pagination token.
*/
public var nextToken: kotlin.String? = null
/**
* The time, in Unix seconds, at which the service graph ended.
*/
public var serviceGraphEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The time, in Unix seconds, at which the service graph started.
*/
public var serviceGraphStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Web Services instrumented services related to the insight.
*/
public var services: List? = null
/**
* The provided start time.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.GetInsightImpactGraphResponse) : this() {
this.endTime = x.endTime
this.insightId = x.insightId
this.nextToken = x.nextToken
this.serviceGraphEndTime = x.serviceGraphEndTime
this.serviceGraphStartTime = x.serviceGraphStartTime
this.services = x.services
this.startTime = x.startTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.GetInsightImpactGraphResponse = GetInsightImpactGraphResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy