commonMain.aws.sdk.kotlin.services.codebuild.model.ReportWithRawData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild-jvm Show documentation
Show all versions of codebuild-jvm Show documentation
The AWS SDK for Kotlin client for CodeBuild
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codebuild.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains the unmodified data for the report. For more information, see .
*/
public class ReportWithRawData private constructor(builder: Builder) {
/**
* The value of the requested data field from the report.
*/
public val data: kotlin.String? = builder.data
/**
* The ARN of the report.
*/
public val reportArn: kotlin.String? = builder.reportArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.ReportWithRawData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReportWithRawData(")
append("data=$data,")
append("reportArn=$reportArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = data?.hashCode() ?: 0
result = 31 * result + (reportArn?.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 ReportWithRawData
if (data != other.data) return false
if (reportArn != other.reportArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.ReportWithRawData = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The value of the requested data field from the report.
*/
public var data: kotlin.String? = null
/**
* The ARN of the report.
*/
public var reportArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.ReportWithRawData) : this() {
this.data = x.data
this.reportArn = x.reportArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.ReportWithRawData = ReportWithRawData(this)
internal fun correctErrors(): Builder {
return this
}
}
}