
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticloadbalancingv2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SetSecurityGroupsResponse private constructor(builder: Builder) {
/**
* Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
*/
public val enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: aws.sdk.kotlin.services.elasticloadbalancingv2.model.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum? = builder.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic
/**
* The IDs of the security groups associated with the load balancer.
*/
public val securityGroupIds: List? = builder.securityGroupIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SetSecurityGroupsResponse(")
append("enforceSecurityGroupInboundRulesOnPrivateLinkTraffic=$enforceSecurityGroupInboundRulesOnPrivateLinkTraffic,")
append("securityGroupIds=$securityGroupIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enforceSecurityGroupInboundRulesOnPrivateLinkTraffic?.hashCode() ?: 0
result = 31 * result + (securityGroupIds?.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 SetSecurityGroupsResponse
if (enforceSecurityGroupInboundRulesOnPrivateLinkTraffic != other.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic) return false
if (securityGroupIds != other.securityGroupIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
*/
public var enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: aws.sdk.kotlin.services.elasticloadbalancingv2.model.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum? = null
/**
* The IDs of the security groups associated with the load balancer.
*/
public var securityGroupIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsResponse) : this() {
this.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = x.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic
this.securityGroupIds = x.securityGroupIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsResponse = SetSecurityGroupsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy