aws.sdk.kotlin.services.codebuild.model.CloudWatchLogsConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild Show documentation
Show all versions of codebuild 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
/**
* Information about CloudWatch Logs for a build project.
*/
class CloudWatchLogsConfig private constructor(builder: Builder) {
/**
* The group name of the logs in CloudWatch Logs. For more information, see Working
* with Log Groups and Log Streams.
*/
val groupName: kotlin.String? = builder.groupName
/**
* The current status of the logs in CloudWatch Logs for a build project. Valid values are:
* ENABLED: CloudWatch Logs are enabled for this build project.
* DISABLED: CloudWatch Logs are not enabled for this build project.
*/
val status: aws.sdk.kotlin.services.codebuild.model.LogsConfigStatusType? = builder.status
/**
* The prefix of the stream name of the CloudWatch Logs. For more information, see Working
* with Log Groups and Log Streams.
*/
val streamName: kotlin.String? = builder.streamName
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.CloudWatchLogsConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CloudWatchLogsConfig(")
append("groupName=$groupName,")
append("status=$status,")
append("streamName=$streamName)")
}
override fun hashCode(): kotlin.Int {
var result = groupName?.hashCode() ?: 0
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (streamName?.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 CloudWatchLogsConfig
if (groupName != other.groupName) return false
if (status != other.status) return false
if (streamName != other.streamName) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.CloudWatchLogsConfig = Builder(this).apply(block).build()
class Builder {
/**
* The group name of the logs in CloudWatch Logs. For more information, see Working
* with Log Groups and Log Streams.
*/
var groupName: kotlin.String? = null
/**
* The current status of the logs in CloudWatch Logs for a build project. Valid values are:
* ENABLED: CloudWatch Logs are enabled for this build project.
* DISABLED: CloudWatch Logs are not enabled for this build project.
*/
var status: aws.sdk.kotlin.services.codebuild.model.LogsConfigStatusType? = null
/**
* The prefix of the stream name of the CloudWatch Logs. For more information, see Working
* with Log Groups and Log Streams.
*/
var streamName: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.CloudWatchLogsConfig) : this() {
this.groupName = x.groupName
this.status = x.status
this.streamName = x.streamName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.CloudWatchLogsConfig = CloudWatchLogsConfig(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy