commonMain.aws.sdk.kotlin.services.codebuild.model.VpcConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild-jvm Show documentation
Show all versions of codebuild-jvm Show documentation
The AWS SDK for Kotlin client for CodeBuild
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codebuild.model
/**
* Information about the VPC configuration that CodeBuild accesses.
*/
class VpcConfig private constructor(builder: Builder) {
/**
* A list of one or more security groups IDs in your Amazon VPC.
*/
val securityGroupIds: List? = builder.securityGroupIds
/**
* A list of one or more subnet IDs in your Amazon VPC.
*/
val subnets: List? = builder.subnets
/**
* The ID of the Amazon VPC.
*/
val vpcId: kotlin.String? = builder.vpcId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.VpcConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VpcConfig(")
append("securityGroupIds=$securityGroupIds,")
append("subnets=$subnets,")
append("vpcId=$vpcId)")
}
override fun hashCode(): kotlin.Int {
var result = securityGroupIds?.hashCode() ?: 0
result = 31 * result + (subnets?.hashCode() ?: 0)
result = 31 * result + (vpcId?.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 VpcConfig
if (securityGroupIds != other.securityGroupIds) return false
if (subnets != other.subnets) return false
if (vpcId != other.vpcId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.VpcConfig = Builder(this).apply(block).build()
class Builder {
/**
* A list of one or more security groups IDs in your Amazon VPC.
*/
var securityGroupIds: List? = null
/**
* A list of one or more subnet IDs in your Amazon VPC.
*/
var subnets: List? = null
/**
* The ID of the Amazon VPC.
*/
var vpcId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.VpcConfig) : this() {
this.securityGroupIds = x.securityGroupIds
this.subnets = x.subnets
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.VpcConfig = VpcConfig(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy