commonMain.aws.sdk.kotlin.services.resourcegroups.model.UngroupResourcesResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resourcegroups-jvm Show documentation
Show all versions of resourcegroups-jvm Show documentation
The AWS SDK for Kotlin client for Resource Groups
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.resourcegroups.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UngroupResourcesResponse private constructor(builder: Builder) {
/**
* A list of any resources that failed to be removed from the group by this operation.
*/
public val failed: List? = builder.failed
/**
* A list of any resources that are still in the process of being removed from the group by this operation. These pending removals continue asynchronously. You can check the status of pending removals by using the ` ListGroupResources ` operation. After the resource is successfully removed, it no longer appears in the response.
*/
public val pending: List? = builder.pending
/**
* A list of resources that were successfully removed from the group by this operation.
*/
public val succeeded: List? = builder.succeeded
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.resourcegroups.model.UngroupResourcesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UngroupResourcesResponse(")
append("failed=$failed,")
append("pending=$pending,")
append("succeeded=$succeeded")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failed?.hashCode() ?: 0
result = 31 * result + (pending?.hashCode() ?: 0)
result = 31 * result + (succeeded?.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 UngroupResourcesResponse
if (failed != other.failed) return false
if (pending != other.pending) return false
if (succeeded != other.succeeded) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.resourcegroups.model.UngroupResourcesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of any resources that failed to be removed from the group by this operation.
*/
public var failed: List? = null
/**
* A list of any resources that are still in the process of being removed from the group by this operation. These pending removals continue asynchronously. You can check the status of pending removals by using the ` ListGroupResources ` operation. After the resource is successfully removed, it no longer appears in the response.
*/
public var pending: List? = null
/**
* A list of resources that were successfully removed from the group by this operation.
*/
public var succeeded: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.UngroupResourcesResponse) : this() {
this.failed = x.failed
this.pending = x.pending
this.succeeded = x.succeeded
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resourcegroups.model.UngroupResourcesResponse = UngroupResourcesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy