
commonMain.aws.sdk.kotlin.services.sms.model.UpdateAppRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sms.model
public class UpdateAppRequest private constructor(builder: Builder) {
/**
* The ID of the application.
*/
public val appId: kotlin.String? = builder.appId
/**
* The new description of the application.
*/
public val description: kotlin.String? = builder.description
/**
* The new name of the application.
*/
public val name: kotlin.String? = builder.name
/**
* The name of the service role in the customer's account used by Server Migration Service.
*/
public val roleName: kotlin.String? = builder.roleName
/**
* The server groups in the application to update.
*/
public val serverGroups: List? = builder.serverGroups
/**
* The tags to associate 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.UpdateAppRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAppRequest(")
append("appId=$appId,")
append("description=$description,")
append("name=$name,")
append("roleName=$roleName,")
append("serverGroups=$serverGroups,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appId?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (roleName?.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 UpdateAppRequest
if (appId != other.appId) return false
if (description != other.description) return false
if (name != other.name) return false
if (roleName != other.roleName) 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.UpdateAppRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the application.
*/
public var appId: kotlin.String? = null
/**
* The new description of the application.
*/
public var description: kotlin.String? = null
/**
* The new name of the application.
*/
public var name: kotlin.String? = null
/**
* The name of the service role in the customer's account used by Server Migration Service.
*/
public var roleName: kotlin.String? = null
/**
* The server groups in the application to update.
*/
public var serverGroups: List? = null
/**
* The tags to associate with the application.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sms.model.UpdateAppRequest) : this() {
this.appId = x.appId
this.description = x.description
this.name = x.name
this.roleName = x.roleName
this.serverGroups = x.serverGroups
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sms.model.UpdateAppRequest = UpdateAppRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy