commonMain.aws.sdk.kotlin.services.resourcegroups.model.GroupResourcesResponse.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 GroupResourcesResponse private constructor(builder: Builder) {
/**
* A list of Amazon resource names (ARNs) of any resources that this operation failed to add to the group.
*/
public val failed: List? = builder.failed
/**
* A list of Amazon resource names (ARNs) of any resources that this operation is still in the process adding to the group. These pending additions continue asynchronously. You can check the status of pending additions by using the ` ListGroupResources ` operation, and checking the `Resources` array in the response and the `Status` field of each object in that array.
*/
public val pending: List? = builder.pending
/**
* A list of Amazon resource names (ARNs) of the resources that this operation successfully added to the group.
*/
public val succeeded: List? = builder.succeeded
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.resourcegroups.model.GroupResourcesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GroupResourcesResponse(")
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 GroupResourcesResponse
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.GroupResourcesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of Amazon resource names (ARNs) of any resources that this operation failed to add to the group.
*/
public var failed: List? = null
/**
* A list of Amazon resource names (ARNs) of any resources that this operation is still in the process adding to the group. These pending additions continue asynchronously. You can check the status of pending additions by using the ` ListGroupResources ` operation, and checking the `Resources` array in the response and the `Status` field of each object in that array.
*/
public var pending: List? = null
/**
* A list of Amazon resource names (ARNs) of the resources that this operation successfully added to the group.
*/
public var succeeded: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.GroupResourcesResponse) : this() {
this.failed = x.failed
this.pending = x.pending
this.succeeded = x.succeeded
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resourcegroups.model.GroupResourcesResponse = GroupResourcesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy