commonMain.aws.sdk.kotlin.services.codebuild.model.ProxyConfiguration.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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the proxy configurations that apply network access control to your reserved capacity instances.
*/
public class ProxyConfiguration private constructor(builder: Builder) {
/**
* The default behavior of outgoing traffic.
*/
public val defaultBehavior: aws.sdk.kotlin.services.codebuild.model.FleetProxyRuleBehavior? = builder.defaultBehavior
/**
* An array of `FleetProxyRule` objects that represent the specified destination domains or IPs to allow or deny network access control to.
*/
public val orderedProxyRules: List? = builder.orderedProxyRules
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.ProxyConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProxyConfiguration(")
append("defaultBehavior=$defaultBehavior,")
append("orderedProxyRules=$orderedProxyRules")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultBehavior?.hashCode() ?: 0
result = 31 * result + (orderedProxyRules?.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 ProxyConfiguration
if (defaultBehavior != other.defaultBehavior) return false
if (orderedProxyRules != other.orderedProxyRules) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.ProxyConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The default behavior of outgoing traffic.
*/
public var defaultBehavior: aws.sdk.kotlin.services.codebuild.model.FleetProxyRuleBehavior? = null
/**
* An array of `FleetProxyRule` objects that represent the specified destination domains or IPs to allow or deny network access control to.
*/
public var orderedProxyRules: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.ProxyConfiguration) : this() {
this.defaultBehavior = x.defaultBehavior
this.orderedProxyRules = x.orderedProxyRules
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.ProxyConfiguration = ProxyConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}