
commonMain.aws.sdk.kotlin.services.s3.model.AnalyticsAndOperator.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
/**
* A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates in any combination, and an object must match all of the predicates for the filter to apply.
*/
public class AnalyticsAndOperator private constructor(builder: Builder) {
/**
* The prefix to use when evaluating an AND predicate: The prefix that an object must have to be included in the metrics results.
*/
public val prefix: kotlin.String? = builder.prefix
/**
* The list of tags to use when evaluating an AND predicate.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.AnalyticsAndOperator = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnalyticsAndOperator(")
append("prefix=$prefix,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = prefix?.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 AnalyticsAndOperator
if (prefix != other.prefix) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.AnalyticsAndOperator = Builder(this).apply(block).build()
public class Builder {
/**
* The prefix to use when evaluating an AND predicate: The prefix that an object must have to be included in the metrics results.
*/
public var prefix: kotlin.String? = null
/**
* The list of tags to use when evaluating an AND predicate.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3.model.AnalyticsAndOperator) : this() {
this.prefix = x.prefix
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.AnalyticsAndOperator = AnalyticsAndOperator(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy