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