
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsRequest.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 SetSecurityGroupsRequest 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. The default is `on`.
*/
public val enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: aws.sdk.kotlin.services.elasticloadbalancingv2.model.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum? = builder.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic
/**
* The Amazon Resource Name (ARN) of the load balancer.
*/
public val loadBalancerArn: kotlin.String? = builder.loadBalancerArn
/**
* The IDs of the security groups.
*/
public val securityGroups: List? = builder.securityGroups
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SetSecurityGroupsRequest(")
append("enforceSecurityGroupInboundRulesOnPrivateLinkTraffic=$enforceSecurityGroupInboundRulesOnPrivateLinkTraffic,")
append("loadBalancerArn=$loadBalancerArn,")
append("securityGroups=$securityGroups")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enforceSecurityGroupInboundRulesOnPrivateLinkTraffic?.hashCode() ?: 0
result = 31 * result + (loadBalancerArn?.hashCode() ?: 0)
result = 31 * result + (securityGroups?.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 SetSecurityGroupsRequest
if (enforceSecurityGroupInboundRulesOnPrivateLinkTraffic != other.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic) return false
if (loadBalancerArn != other.loadBalancerArn) return false
if (securityGroups != other.securityGroups) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsRequest = 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. The default is `on`.
*/
public var enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: aws.sdk.kotlin.services.elasticloadbalancingv2.model.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum? = null
/**
* The Amazon Resource Name (ARN) of the load balancer.
*/
public var loadBalancerArn: kotlin.String? = null
/**
* The IDs of the security groups.
*/
public var securityGroups: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsRequest) : this() {
this.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = x.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic
this.loadBalancerArn = x.loadBalancerArn
this.securityGroups = x.securityGroups
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SetSecurityGroupsRequest = SetSecurityGroupsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy