
commonMain.aws.sdk.kotlin.services.s3control.model.GetAccessPointForObjectLambdaResponse.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 GetAccessPointForObjectLambdaResponse private constructor(builder: Builder) {
/**
* The alias of the Object Lambda Access Point.
*/
public val alias: aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias? = builder.alias
/**
* The date and time when the specified Object Lambda Access Point was created.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* The name of the Object Lambda Access Point.
*/
public val name: kotlin.String? = builder.name
/**
* Configuration to block all public access. This setting is turned on and can not be edited.
*/
public val publicAccessBlockConfiguration: aws.sdk.kotlin.services.s3control.model.PublicAccessBlockConfiguration? = builder.publicAccessBlockConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.GetAccessPointForObjectLambdaResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAccessPointForObjectLambdaResponse(")
append("alias=$alias,")
append("creationDate=$creationDate,")
append("name=$name,")
append("publicAccessBlockConfiguration=$publicAccessBlockConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = alias?.hashCode() ?: 0
result = 31 * result + (creationDate?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (publicAccessBlockConfiguration?.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 GetAccessPointForObjectLambdaResponse
if (alias != other.alias) return false
if (creationDate != other.creationDate) return false
if (name != other.name) return false
if (publicAccessBlockConfiguration != other.publicAccessBlockConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.GetAccessPointForObjectLambdaResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The alias of the Object Lambda Access Point.
*/
public var alias: aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias? = null
/**
* The date and time when the specified Object Lambda Access Point was created.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the Object Lambda Access Point.
*/
public var name: kotlin.String? = null
/**
* Configuration to block all public access. This setting is turned on and can not be edited.
*/
public var publicAccessBlockConfiguration: aws.sdk.kotlin.services.s3control.model.PublicAccessBlockConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.GetAccessPointForObjectLambdaResponse) : this() {
this.alias = x.alias
this.creationDate = x.creationDate
this.name = x.name
this.publicAccessBlockConfiguration = x.publicAccessBlockConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.GetAccessPointForObjectLambdaResponse = GetAccessPointForObjectLambdaResponse(this)
/**
* construct an [aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias] inside the given [block]
*/
public fun alias(block: aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias.Builder.() -> kotlin.Unit) {
this.alias = aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.s3control.model.PublicAccessBlockConfiguration] inside the given [block]
*/
public fun publicAccessBlockConfiguration(block: aws.sdk.kotlin.services.s3control.model.PublicAccessBlockConfiguration.Builder.() -> kotlin.Unit) {
this.publicAccessBlockConfiguration = aws.sdk.kotlin.services.s3control.model.PublicAccessBlockConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy