
commonMain.aws.sdk.kotlin.services.wellarchitected.model.GetConsolidatedReportResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
public class GetConsolidatedReportResponse private constructor(builder: Builder) {
/**
* The Base64-encoded string representation of a lens review report.
*
* This data can be used to create a PDF file.
*
* Only returned by GetConsolidatedReport when `PDF` format is requested.
*/
public val base64String: kotlin.String? = builder.base64String
/**
* The metrics that make up the consolidated report.
*
* Only returned when `JSON` format is requested.
*/
public val metrics: List? = builder.metrics
/**
* The token to use to retrieve the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.GetConsolidatedReportResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConsolidatedReportResponse(")
append("base64String=$base64String,")
append("metrics=$metrics,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = base64String?.hashCode() ?: 0
result = 31 * result + (metrics?.hashCode() ?: 0)
result = 31 * result + (nextToken?.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 GetConsolidatedReportResponse
if (base64String != other.base64String) return false
if (metrics != other.metrics) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.GetConsolidatedReportResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Base64-encoded string representation of a lens review report.
*
* This data can be used to create a PDF file.
*
* Only returned by GetConsolidatedReport when `PDF` format is requested.
*/
public var base64String: kotlin.String? = null
/**
* The metrics that make up the consolidated report.
*
* Only returned when `JSON` format is requested.
*/
public var metrics: List? = null
/**
* The token to use to retrieve the next set of results.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.GetConsolidatedReportResponse) : this() {
this.base64String = x.base64String
this.metrics = x.metrics
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.GetConsolidatedReportResponse = GetConsolidatedReportResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy