
commonMain.aws.sdk.kotlin.services.s3control.model.GetStorageLensGroupResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class GetStorageLensGroupResponse private constructor(builder: Builder) {
/**
* The name of the Storage Lens group that you're trying to retrieve the configuration details for.
*/
public val storageLensGroup: aws.sdk.kotlin.services.s3control.model.StorageLensGroup? = builder.storageLensGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.GetStorageLensGroupResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetStorageLensGroupResponse(")
append("storageLensGroup=$storageLensGroup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = storageLensGroup?.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 GetStorageLensGroupResponse
if (storageLensGroup != other.storageLensGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.GetStorageLensGroupResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the Storage Lens group that you're trying to retrieve the configuration details for.
*/
public var storageLensGroup: aws.sdk.kotlin.services.s3control.model.StorageLensGroup? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.GetStorageLensGroupResponse) : this() {
this.storageLensGroup = x.storageLensGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.GetStorageLensGroupResponse = GetStorageLensGroupResponse(this)
/**
* construct an [aws.sdk.kotlin.services.s3control.model.StorageLensGroup] inside the given [block]
*/
public fun storageLensGroup(block: aws.sdk.kotlin.services.s3control.model.StorageLensGroup.Builder.() -> kotlin.Unit) {
this.storageLensGroup = aws.sdk.kotlin.services.s3control.model.StorageLensGroup.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy