commonMain.aws.sdk.kotlin.services.fms.model.GetResourceSetResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
public class GetResourceSetResponse private constructor(builder: Builder) {
/**
* Information about the specified resource set.
*/
public val resourceSet: aws.sdk.kotlin.services.fms.model.ResourceSet? = builder.resourceSet
/**
* The Amazon Resource Name (ARN) of the resource set.
*/
public val resourceSetArn: kotlin.String? = builder.resourceSetArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.GetResourceSetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetResourceSetResponse(")
append("resourceSet=$resourceSet,")
append("resourceSetArn=$resourceSetArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = resourceSet?.hashCode() ?: 0
result = 31 * result + (resourceSetArn?.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 GetResourceSetResponse
if (resourceSet != other.resourceSet) return false
if (resourceSetArn != other.resourceSetArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.GetResourceSetResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Information about the specified resource set.
*/
public var resourceSet: aws.sdk.kotlin.services.fms.model.ResourceSet? = null
/**
* The Amazon Resource Name (ARN) of the resource set.
*/
public var resourceSetArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.GetResourceSetResponse) : this() {
this.resourceSet = x.resourceSet
this.resourceSetArn = x.resourceSetArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.GetResourceSetResponse = GetResourceSetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.fms.model.ResourceSet] inside the given [block]
*/
public fun resourceSet(block: aws.sdk.kotlin.services.fms.model.ResourceSet.Builder.() -> kotlin.Unit) {
this.resourceSet = aws.sdk.kotlin.services.fms.model.ResourceSet.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy