commonMain.aws.sdk.kotlin.services.codebuild.model.CreateReportGroupRequest.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
class CreateReportGroupRequest private constructor(builder: Builder) {
/**
* A `ReportExportConfig` object that contains information about where the report group test results are exported.
*/
val exportConfig: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig? = builder.exportConfig
/**
* The name of the report group.
*/
val name: kotlin.String? = builder.name
/**
* A list of tag key and value pairs associated with this report group.
*
* These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
*/
val tags: List? = builder.tags
/**
* The type of report group.
*/
val type: aws.sdk.kotlin.services.codebuild.model.ReportType? = builder.type
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.CreateReportGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateReportGroupRequest(")
append("exportConfig=$exportConfig,")
append("name=$name,")
append("tags=$tags,")
append("type=$type)")
}
override fun hashCode(): kotlin.Int {
var result = exportConfig?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (type?.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 CreateReportGroupRequest
if (exportConfig != other.exportConfig) return false
if (name != other.name) return false
if (tags != other.tags) return false
if (type != other.type) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.CreateReportGroupRequest = Builder(this).apply(block).build()
class Builder {
/**
* A `ReportExportConfig` object that contains information about where the report group test results are exported.
*/
var exportConfig: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig? = null
/**
* The name of the report group.
*/
var name: kotlin.String? = null
/**
* A list of tag key and value pairs associated with this report group.
*
* These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.
*/
var tags: List? = null
/**
* The type of report group.
*/
var type: aws.sdk.kotlin.services.codebuild.model.ReportType? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.CreateReportGroupRequest) : this() {
this.exportConfig = x.exportConfig
this.name = x.name
this.tags = x.tags
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.CreateReportGroupRequest = CreateReportGroupRequest(this)
/**
* construct an [aws.sdk.kotlin.services.codebuild.model.ReportExportConfig] inside the given [block]
*/
fun exportConfig(block: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig.Builder.() -> kotlin.Unit) {
this.exportConfig = aws.sdk.kotlin.services.codebuild.model.ReportExportConfig.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy