commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ScApplicationAttributes.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provides information that defines a schema conversion application.
*/
public class ScApplicationAttributes private constructor(builder: Builder) {
/**
* The path for the Amazon S3 bucket that the application uses for exporting assessment reports.
*/
public val s3BucketPath: kotlin.String? = builder.s3BucketPath
/**
* The ARN for the role the application uses to access its Amazon S3 bucket.
*/
public val s3BucketRoleArn: kotlin.String? = builder.s3BucketRoleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.ScApplicationAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ScApplicationAttributes(")
append("s3BucketPath=$s3BucketPath,")
append("s3BucketRoleArn=$s3BucketRoleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3BucketPath?.hashCode() ?: 0
result = 31 * result + (s3BucketRoleArn?.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 ScApplicationAttributes
if (s3BucketPath != other.s3BucketPath) return false
if (s3BucketRoleArn != other.s3BucketRoleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.ScApplicationAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The path for the Amazon S3 bucket that the application uses for exporting assessment reports.
*/
public var s3BucketPath: kotlin.String? = null
/**
* The ARN for the role the application uses to access its Amazon S3 bucket.
*/
public var s3BucketRoleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ScApplicationAttributes) : this() {
this.s3BucketPath = x.s3BucketPath
this.s3BucketRoleArn = x.s3BucketRoleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.ScApplicationAttributes = ScApplicationAttributes(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy