
commonMain.aws.sdk.kotlin.services.s3control.model.VpcConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* The virtual private cloud (VPC) configuration for an access point.
*/
public class VpcConfiguration private constructor(builder: Builder) {
/**
* If this field is specified, this access point will only allow connections from the specified VPC ID.
*/
public val vpcId: kotlin.String = requireNotNull(builder.vpcId) { "A non-null value must be provided for vpcId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.VpcConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VpcConfiguration(")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = vpcId.hashCode()
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 VpcConfiguration
if (vpcId != other.vpcId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.VpcConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* If this field is specified, this access point will only allow connections from the specified VPC ID.
*/
public var vpcId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.VpcConfiguration) : this() {
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.VpcConfiguration = VpcConfiguration(this)
internal fun correctErrors(): Builder {
if (vpcId == null) vpcId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy