commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartBatchDeleteConfigurationTaskRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationdiscoveryservice-jvm Show documentation
Show all versions of applicationdiscoveryservice-jvm Show documentation
The AWS SDK for Kotlin client for Application Discovery Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationdiscoveryservice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartBatchDeleteConfigurationTaskRequest private constructor(builder: Builder) {
/**
* The list of configuration IDs that will be deleted by the task.
*/
public val configurationIds: List? = builder.configurationIds
/**
* The type of configuration item to delete. Supported types are: SERVER.
*/
public val configurationType: aws.sdk.kotlin.services.applicationdiscoveryservice.model.DeletionConfigurationItemType? = builder.configurationType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartBatchDeleteConfigurationTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartBatchDeleteConfigurationTaskRequest(")
append("configurationIds=$configurationIds,")
append("configurationType=$configurationType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configurationIds?.hashCode() ?: 0
result = 31 * result + (configurationType?.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 StartBatchDeleteConfigurationTaskRequest
if (configurationIds != other.configurationIds) return false
if (configurationType != other.configurationType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartBatchDeleteConfigurationTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The list of configuration IDs that will be deleted by the task.
*/
public var configurationIds: List? = null
/**
* The type of configuration item to delete. Supported types are: SERVER.
*/
public var configurationType: aws.sdk.kotlin.services.applicationdiscoveryservice.model.DeletionConfigurationItemType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartBatchDeleteConfigurationTaskRequest) : this() {
this.configurationIds = x.configurationIds
this.configurationType = x.configurationType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartBatchDeleteConfigurationTaskRequest = StartBatchDeleteConfigurationTaskRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}