
commonMain.aws.sdk.kotlin.services.sms.model.CreateAppResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sms.model
public class CreateAppResponse private constructor(builder: Builder) {
/**
* A summary description of the application.
*/
public val appSummary: aws.sdk.kotlin.services.sms.model.AppSummary? = builder.appSummary
/**
* The server groups included in the application.
*/
public val serverGroups: List? = builder.serverGroups
/**
* The tags associated with the application.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sms.model.CreateAppResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAppResponse(")
append("appSummary=$appSummary,")
append("serverGroups=$serverGroups,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appSummary?.hashCode() ?: 0
result = 31 * result + (serverGroups?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateAppResponse
if (appSummary != other.appSummary) return false
if (serverGroups != other.serverGroups) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sms.model.CreateAppResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A summary description of the application.
*/
public var appSummary: aws.sdk.kotlin.services.sms.model.AppSummary? = null
/**
* The server groups included in the application.
*/
public var serverGroups: List? = null
/**
* The tags associated with the application.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sms.model.CreateAppResponse) : this() {
this.appSummary = x.appSummary
this.serverGroups = x.serverGroups
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sms.model.CreateAppResponse = CreateAppResponse(this)
/**
* construct an [aws.sdk.kotlin.services.sms.model.AppSummary] inside the given [block]
*/
public fun appSummary(block: aws.sdk.kotlin.services.sms.model.AppSummary.Builder.() -> kotlin.Unit) {
this.appSummary = aws.sdk.kotlin.services.sms.model.AppSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy