commonMain.aws.sdk.kotlin.services.bedrock.model.VpcConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrock-jvm Show documentation
Show all versions of bedrock-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.model
/**
* VPC configuration.
*/
public class VpcConfig private constructor(builder: Builder) {
/**
* VPC configuration security group Ids.
*/
public val securityGroupIds: List = requireNotNull(builder.securityGroupIds) { "A non-null value must be provided for securityGroupIds" }
/**
* VPC configuration subnets.
*/
public val subnetIds: List = requireNotNull(builder.subnetIds) { "A non-null value must be provided for subnetIds" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrock.model.VpcConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VpcConfig(")
append("securityGroupIds=$securityGroupIds,")
append("subnetIds=$subnetIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = securityGroupIds.hashCode()
result = 31 * result + (subnetIds.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 VpcConfig
if (securityGroupIds != other.securityGroupIds) return false
if (subnetIds != other.subnetIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrock.model.VpcConfig = Builder(this).apply(block).build()
public class Builder {
/**
* VPC configuration security group Ids.
*/
public var securityGroupIds: List? = null
/**
* VPC configuration subnets.
*/
public var subnetIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrock.model.VpcConfig) : this() {
this.securityGroupIds = x.securityGroupIds
this.subnetIds = x.subnetIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrock.model.VpcConfig = VpcConfig(this)
internal fun correctErrors(): Builder {
if (securityGroupIds == null) securityGroupIds = emptyList()
if (subnetIds == null) subnetIds = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy