
commonMain.aws.sdk.kotlin.services.wellarchitected.model.GetConsolidatedReportRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
public class GetConsolidatedReportRequest private constructor(builder: Builder) {
/**
* The format of the consolidated report.
*
* For `PDF`, `Base64String` is returned. For `JSON`, `Metrics` is returned.
*/
public val format: aws.sdk.kotlin.services.wellarchitected.model.ReportFormat? = requireNotNull(builder.format) { "A non-null value must be provided for format" }
/**
* Set to `true` to have shared resources included in the report.
*/
public val includeSharedResources: kotlin.Boolean = builder.includeSharedResources
/**
* The maximum number of results to return for this request.
*/
public val maxResults: kotlin.Int = builder.maxResults
/**
* 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.GetConsolidatedReportRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConsolidatedReportRequest(")
append("format=$format,")
append("includeSharedResources=$includeSharedResources,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = format?.hashCode() ?: 0
result = 31 * result + (includeSharedResources.hashCode())
result = 31 * result + (maxResults)
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 GetConsolidatedReportRequest
if (format != other.format) return false
if (includeSharedResources != other.includeSharedResources) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.GetConsolidatedReportRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The format of the consolidated report.
*
* For `PDF`, `Base64String` is returned. For `JSON`, `Metrics` is returned.
*/
public var format: aws.sdk.kotlin.services.wellarchitected.model.ReportFormat? = null
/**
* Set to `true` to have shared resources included in the report.
*/
public var includeSharedResources: kotlin.Boolean = false
/**
* The maximum number of results to return for this request.
*/
public var maxResults: kotlin.Int = 0
/**
* 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.GetConsolidatedReportRequest) : this() {
this.format = x.format
this.includeSharedResources = x.includeSharedResources
this.maxResults = x.maxResults
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.GetConsolidatedReportRequest = GetConsolidatedReportRequest(this)
internal fun correctErrors(): Builder {
if (format == null) format = ReportFormat.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy