
commonMain.aws.sdk.kotlin.services.s3control.model.CreateStorageLensGroupRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class CreateStorageLensGroupRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID that the Storage Lens group is created from and associated with.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The Storage Lens group configuration.
*/
public val storageLensGroup: aws.sdk.kotlin.services.s3control.model.StorageLensGroup? = builder.storageLensGroup
/**
* The Amazon Web Services resource tags that you're adding to your Storage Lens group. This parameter is optional.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.CreateStorageLensGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateStorageLensGroupRequest(")
append("accountId=$accountId,")
append("storageLensGroup=$storageLensGroup,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (storageLensGroup?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateStorageLensGroupRequest
if (accountId != other.accountId) return false
if (storageLensGroup != other.storageLensGroup) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.CreateStorageLensGroupRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Web Services account ID that the Storage Lens group is created from and associated with.
*/
public var accountId: kotlin.String? = null
/**
* The Storage Lens group configuration.
*/
public var storageLensGroup: aws.sdk.kotlin.services.s3control.model.StorageLensGroup? = null
/**
* The Amazon Web Services resource tags that you're adding to your Storage Lens group. This parameter is optional.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.CreateStorageLensGroupRequest) : this() {
this.accountId = x.accountId
this.storageLensGroup = x.storageLensGroup
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.CreateStorageLensGroupRequest = CreateStorageLensGroupRequest(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