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
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateReportGroupRequest private constructor(builder: Builder) {
/**
* A `ReportExportConfig` object that contains information about where the report group test results are exported.
*/
public val exportConfig: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig? = builder.exportConfig
/**
* The name of the report group.
*/
public 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.
*/
public val tags: List? = builder.tags
/**
* The type of report group.
*/
public val type: aws.sdk.kotlin.services.codebuild.model.ReportType? = builder.type
public companion object {
public 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")
append(")")
}
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
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.CreateReportGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A `ReportExportConfig` object that contains information about where the report group test results are exported.
*/
public var exportConfig: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig? = null
/**
* The name of the report group.
*/
public 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.
*/
public var tags: List? = null
/**
* The type of report group.
*/
public var type: aws.sdk.kotlin.services.codebuild.model.ReportType? = null
@PublishedApi
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]
*/
public fun exportConfig(block: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig.Builder.() -> kotlin.Unit) {
this.exportConfig = aws.sdk.kotlin.services.codebuild.model.ReportExportConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}