
commonMain.aws.sdk.kotlin.services.codecommit.model.UserInfo.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codecommit.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the user who made a specified commit.
*/
public class UserInfo private constructor(builder: Builder) {
/**
* The date when the specified commit was commited, in timestamp format with GMT offset.
*/
public val date: kotlin.String? = builder.date
/**
* The email address associated with the user who made the commit, if any.
*/
public val email: kotlin.String? = builder.email
/**
* The name of the user who made the specified commit.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.UserInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UserInfo(")
append("date=$date,")
append("email=$email,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = date?.hashCode() ?: 0
result = 31 * result + (email?.hashCode() ?: 0)
result = 31 * result + (name?.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 UserInfo
if (date != other.date) return false
if (email != other.email) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.UserInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date when the specified commit was commited, in timestamp format with GMT offset.
*/
public var date: kotlin.String? = null
/**
* The email address associated with the user who made the commit, if any.
*/
public var email: kotlin.String? = null
/**
* The name of the user who made the specified commit.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.UserInfo) : this() {
this.date = x.date
this.email = x.email
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.UserInfo = UserInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy