commonMain.aws.sdk.kotlin.services.shield.model.DescribeDrtAccessResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.shield.model
public class DescribeDrtAccessResponse private constructor(builder: Builder) {
/**
* The list of Amazon S3 buckets accessed by the SRT.
*/
public val logBucketList: List? = builder.logBucketList
/**
* The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon Web Services account.
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.shield.model.DescribeDrtAccessResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDrtAccessResponse(")
append("logBucketList=$logBucketList,")
append("roleArn=$roleArn)")
}
override fun hashCode(): kotlin.Int {
var result = logBucketList?.hashCode() ?: 0
result = 31 * result + (roleArn?.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 DescribeDrtAccessResponse
if (logBucketList != other.logBucketList) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.shield.model.DescribeDrtAccessResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The list of Amazon S3 buckets accessed by the SRT.
*/
public var logBucketList: List? = null
/**
* The Amazon Resource Name (ARN) of the role the SRT used to access your Amazon Web Services account.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.shield.model.DescribeDrtAccessResponse) : this() {
this.logBucketList = x.logBucketList
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.shield.model.DescribeDrtAccessResponse = DescribeDrtAccessResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy