commonMain.aws.sdk.kotlin.services.databrew.model.RulesetItem.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Contains metadata about the ruleset.
*/
public class RulesetItem private constructor(builder: Builder) {
/**
* The ID of the Amazon Web Services account that owns the ruleset.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The date and time that the ruleset was created.
*/
public val createDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createDate
/**
* The Amazon Resource Name (ARN) of the user who created the ruleset.
*/
public val createdBy: kotlin.String? = builder.createdBy
/**
* The description of the ruleset.
*/
public val description: kotlin.String? = builder.description
/**
* The Amazon Resource Name (ARN) of the user who last modified the ruleset.
*/
public val lastModifiedBy: kotlin.String? = builder.lastModifiedBy
/**
* The modification date and time of the ruleset.
*/
public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
/**
* The name of the ruleset.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The Amazon Resource Name (ARN) for the ruleset.
*/
public val resourceArn: kotlin.String? = builder.resourceArn
/**
* The number of rules that are defined in the ruleset.
*/
public val ruleCount: kotlin.Int = builder.ruleCount
/**
* Metadata tags that have been applied to the ruleset.
*/
public val tags: Map? = builder.tags
/**
* The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.
*/
public val targetArn: kotlin.String = requireNotNull(builder.targetArn) { "A non-null value must be provided for targetArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.RulesetItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RulesetItem(")
append("accountId=$accountId,")
append("createDate=$createDate,")
append("createdBy=$createdBy,")
append("description=$description,")
append("lastModifiedBy=$lastModifiedBy,")
append("lastModifiedDate=$lastModifiedDate,")
append("name=$name,")
append("resourceArn=$resourceArn,")
append("ruleCount=$ruleCount,")
append("tags=$tags,")
append("targetArn=$targetArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (createDate?.hashCode() ?: 0)
result = 31 * result + (createdBy?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lastModifiedBy?.hashCode() ?: 0)
result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
result = 31 * result + (name.hashCode())
result = 31 * result + (resourceArn?.hashCode() ?: 0)
result = 31 * result + (ruleCount)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (targetArn.hashCode())
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 RulesetItem
if (accountId != other.accountId) return false
if (createDate != other.createDate) return false
if (createdBy != other.createdBy) return false
if (description != other.description) return false
if (lastModifiedBy != other.lastModifiedBy) return false
if (lastModifiedDate != other.lastModifiedDate) return false
if (name != other.name) return false
if (resourceArn != other.resourceArn) return false
if (ruleCount != other.ruleCount) return false
if (tags != other.tags) return false
if (targetArn != other.targetArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.RulesetItem = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the Amazon Web Services account that owns the ruleset.
*/
public var accountId: kotlin.String? = null
/**
* The date and time that the ruleset was created.
*/
public var createDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name (ARN) of the user who created the ruleset.
*/
public var createdBy: kotlin.String? = null
/**
* The description of the ruleset.
*/
public var description: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the user who last modified the ruleset.
*/
public var lastModifiedBy: kotlin.String? = null
/**
* The modification date and time of the ruleset.
*/
public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the ruleset.
*/
public var name: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) for the ruleset.
*/
public var resourceArn: kotlin.String? = null
/**
* The number of rules that are defined in the ruleset.
*/
public var ruleCount: kotlin.Int = 0
/**
* Metadata tags that have been applied to the ruleset.
*/
public var tags: Map? = null
/**
* The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.
*/
public var targetArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.RulesetItem) : this() {
this.accountId = x.accountId
this.createDate = x.createDate
this.createdBy = x.createdBy
this.description = x.description
this.lastModifiedBy = x.lastModifiedBy
this.lastModifiedDate = x.lastModifiedDate
this.name = x.name
this.resourceArn = x.resourceArn
this.ruleCount = x.ruleCount
this.tags = x.tags
this.targetArn = x.targetArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.RulesetItem = RulesetItem(this)
internal fun correctErrors(): Builder {
if (name == null) name = ""
if (targetArn == null) targetArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy