
commonMain.aws.sdk.kotlin.services.s3control.model.GetAccessGrantsInstanceForPrefixResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class GetAccessGrantsInstanceForPrefixResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the S3 Access Grants instance.
*/
public val accessGrantsInstanceArn: kotlin.String? = builder.accessGrantsInstanceArn
/**
* The ID of the S3 Access Grants instance. The ID is `default`. You can have one S3 Access Grants instance per Region per account.
*/
public val accessGrantsInstanceId: kotlin.String? = builder.accessGrantsInstanceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.GetAccessGrantsInstanceForPrefixResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAccessGrantsInstanceForPrefixResponse(")
append("accessGrantsInstanceArn=$accessGrantsInstanceArn,")
append("accessGrantsInstanceId=$accessGrantsInstanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accessGrantsInstanceArn?.hashCode() ?: 0
result = 31 * result + (accessGrantsInstanceId?.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 GetAccessGrantsInstanceForPrefixResponse
if (accessGrantsInstanceArn != other.accessGrantsInstanceArn) return false
if (accessGrantsInstanceId != other.accessGrantsInstanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.GetAccessGrantsInstanceForPrefixResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the S3 Access Grants instance.
*/
public var accessGrantsInstanceArn: kotlin.String? = null
/**
* The ID of the S3 Access Grants instance. The ID is `default`. You can have one S3 Access Grants instance per Region per account.
*/
public var accessGrantsInstanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.GetAccessGrantsInstanceForPrefixResponse) : this() {
this.accessGrantsInstanceArn = x.accessGrantsInstanceArn
this.accessGrantsInstanceId = x.accessGrantsInstanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.GetAccessGrantsInstanceForPrefixResponse = GetAccessGrantsInstanceForPrefixResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy