commonMain.aws.sdk.kotlin.services.wellarchitected.model.JiraConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Configuration of the Jira integration.
*/
public class JiraConfiguration private constructor(builder: Builder) {
/**
* The URL of the associated Jira issue.
*/
public val jiraIssueUrl: kotlin.String? = builder.jiraIssueUrl
/**
* The date and time recorded.
*/
public val lastSyncedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastSyncedTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.JiraConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JiraConfiguration(")
append("jiraIssueUrl=$jiraIssueUrl,")
append("lastSyncedTime=$lastSyncedTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jiraIssueUrl?.hashCode() ?: 0
result = 31 * result + (lastSyncedTime?.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 JiraConfiguration
if (jiraIssueUrl != other.jiraIssueUrl) return false
if (lastSyncedTime != other.lastSyncedTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.JiraConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The URL of the associated Jira issue.
*/
public var jiraIssueUrl: kotlin.String? = null
/**
* The date and time recorded.
*/
public var lastSyncedTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.JiraConfiguration) : this() {
this.jiraIssueUrl = x.jiraIssueUrl
this.lastSyncedTime = x.lastSyncedTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.JiraConfiguration = JiraConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy