commonMain.aws.sdk.kotlin.services.codebuild.model.DeleteReportGroupRequest.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
public class DeleteReportGroupRequest private constructor(builder: Builder) {
/**
* The ARN of the report group to delete.
*/
public val arn: kotlin.String? = builder.arn
/**
* If `true`, deletes any reports that belong to a report group before deleting the report group.
*
* If `false`, you must delete any reports in the report group. Use [ListReportsForReportGroup](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ListReportsForReportGroup.html) to get the reports in a report group. Use [DeleteReport](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DeleteReport.html) to delete the reports. If you call `DeleteReportGroup` for a report group that contains one or more reports, an exception is thrown.
*/
public val deleteReports: kotlin.Boolean? = builder.deleteReports
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.DeleteReportGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteReportGroupRequest(")
append("arn=$arn,")
append("deleteReports=$deleteReports")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (deleteReports?.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 DeleteReportGroupRequest
if (arn != other.arn) return false
if (deleteReports != other.deleteReports) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.DeleteReportGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the report group to delete.
*/
public var arn: kotlin.String? = null
/**
* If `true`, deletes any reports that belong to a report group before deleting the report group.
*
* If `false`, you must delete any reports in the report group. Use [ListReportsForReportGroup](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ListReportsForReportGroup.html) to get the reports in a report group. Use [DeleteReport](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DeleteReport.html) to delete the reports. If you call `DeleteReportGroup` for a report group that contains one or more reports, an exception is thrown.
*/
public var deleteReports: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.DeleteReportGroupRequest) : this() {
this.arn = x.arn
this.deleteReports = x.deleteReports
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.DeleteReportGroupRequest = DeleteReportGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}