commonMain.aws.sdk.kotlin.services.fms.model.BatchAssociateResourceRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
public class BatchAssociateResourceRequest private constructor(builder: Builder) {
/**
* The uniform resource identifiers (URIs) of resources that should be associated to the resource set. The URIs must be Amazon Resource Names (ARNs).
*/
public val items: List? = builder.items
/**
* A unique identifier for the resource set, used in a request to refer to the resource set.
*/
public val resourceSetIdentifier: kotlin.String? = builder.resourceSetIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.BatchAssociateResourceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchAssociateResourceRequest(")
append("items=$items,")
append("resourceSetIdentifier=$resourceSetIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = items?.hashCode() ?: 0
result = 31 * result + (resourceSetIdentifier?.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 BatchAssociateResourceRequest
if (items != other.items) return false
if (resourceSetIdentifier != other.resourceSetIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.BatchAssociateResourceRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The uniform resource identifiers (URIs) of resources that should be associated to the resource set. The URIs must be Amazon Resource Names (ARNs).
*/
public var items: List? = null
/**
* A unique identifier for the resource set, used in a request to refer to the resource set.
*/
public var resourceSetIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.BatchAssociateResourceRequest) : this() {
this.items = x.items
this.resourceSetIdentifier = x.resourceSetIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.BatchAssociateResourceRequest = BatchAssociateResourceRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy