
commonMain.aws.sdk.kotlin.services.s3control.model.CreateAccessGrantsInstanceResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
import aws.smithy.kotlin.runtime.time.Instant
public class CreateAccessGrantsInstanceResponse 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
/**
* The date and time when you created the S3 Access Grants instance.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance passed in the request. S3 Access Grants creates this Identity Center application for this specific S3 Access Grants instance.
*/
public val identityCenterArn: kotlin.String? = builder.identityCenterArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.CreateAccessGrantsInstanceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAccessGrantsInstanceResponse(")
append("accessGrantsInstanceArn=$accessGrantsInstanceArn,")
append("accessGrantsInstanceId=$accessGrantsInstanceId,")
append("createdAt=$createdAt,")
append("identityCenterArn=$identityCenterArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accessGrantsInstanceArn?.hashCode() ?: 0
result = 31 * result + (accessGrantsInstanceId?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (identityCenterArn?.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 CreateAccessGrantsInstanceResponse
if (accessGrantsInstanceArn != other.accessGrantsInstanceArn) return false
if (accessGrantsInstanceId != other.accessGrantsInstanceId) return false
if (createdAt != other.createdAt) return false
if (identityCenterArn != other.identityCenterArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.CreateAccessGrantsInstanceResponse = 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
/**
* The date and time when you created the S3 Access Grants instance.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* If you associated your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance, this field returns the Amazon Resource Name (ARN) of the IAM Identity Center instance application; a subresource of the original Identity Center instance passed in the request. S3 Access Grants creates this Identity Center application for this specific S3 Access Grants instance.
*/
public var identityCenterArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.CreateAccessGrantsInstanceResponse) : this() {
this.accessGrantsInstanceArn = x.accessGrantsInstanceArn
this.accessGrantsInstanceId = x.accessGrantsInstanceId
this.createdAt = x.createdAt
this.identityCenterArn = x.identityCenterArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.CreateAccessGrantsInstanceResponse = CreateAccessGrantsInstanceResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy