
commonMain.aws.sdk.kotlin.services.s3control.model.PutStorageLensConfigurationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class PutStorageLensConfigurationRequest private constructor(builder: Builder) {
/**
* The account ID of the requester.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The ID of the S3 Storage Lens configuration.
*/
public val configId: kotlin.String? = builder.configId
/**
* The S3 Storage Lens configuration.
*/
public val storageLensConfiguration: aws.sdk.kotlin.services.s3control.model.StorageLensConfiguration? = builder.storageLensConfiguration
/**
* The tag set of the S3 Storage Lens configuration.
*
* You can set up to a maximum of 50 tags.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.PutStorageLensConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutStorageLensConfigurationRequest(")
append("accountId=$accountId,")
append("configId=$configId,")
append("storageLensConfiguration=$storageLensConfiguration,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (configId?.hashCode() ?: 0)
result = 31 * result + (storageLensConfiguration?.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 PutStorageLensConfigurationRequest
if (accountId != other.accountId) return false
if (configId != other.configId) return false
if (storageLensConfiguration != other.storageLensConfiguration) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.PutStorageLensConfigurationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The account ID of the requester.
*/
public var accountId: kotlin.String? = null
/**
* The ID of the S3 Storage Lens configuration.
*/
public var configId: kotlin.String? = null
/**
* The S3 Storage Lens configuration.
*/
public var storageLensConfiguration: aws.sdk.kotlin.services.s3control.model.StorageLensConfiguration? = null
/**
* The tag set of the S3 Storage Lens configuration.
*
* You can set up to a maximum of 50 tags.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.PutStorageLensConfigurationRequest) : this() {
this.accountId = x.accountId
this.configId = x.configId
this.storageLensConfiguration = x.storageLensConfiguration
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.PutStorageLensConfigurationRequest = PutStorageLensConfigurationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.s3control.model.StorageLensConfiguration] inside the given [block]
*/
public fun storageLensConfiguration(block: aws.sdk.kotlin.services.s3control.model.StorageLensConfiguration.Builder.() -> kotlin.Unit) {
this.storageLensConfiguration = aws.sdk.kotlin.services.s3control.model.StorageLensConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy