
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.DescribeRulesRequest.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 DescribeRulesRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the listener.
*/
public val listenerArn: kotlin.String? = builder.listenerArn
/**
* The marker for the next set of results. (You received this marker from a previous call.)
*/
public val marker: kotlin.String? = builder.marker
/**
* The maximum number of results to return with this call.
*/
public val pageSize: kotlin.Int? = builder.pageSize
/**
* The Amazon Resource Names (ARN) of the rules.
*/
public val ruleArns: List? = builder.ruleArns
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.DescribeRulesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeRulesRequest(")
append("listenerArn=$listenerArn,")
append("marker=$marker,")
append("pageSize=$pageSize,")
append("ruleArns=$ruleArns")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = listenerArn?.hashCode() ?: 0
result = 31 * result + (marker?.hashCode() ?: 0)
result = 31 * result + (pageSize ?: 0)
result = 31 * result + (ruleArns?.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 DescribeRulesRequest
if (listenerArn != other.listenerArn) return false
if (marker != other.marker) return false
if (pageSize != other.pageSize) return false
if (ruleArns != other.ruleArns) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.DescribeRulesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the listener.
*/
public var listenerArn: kotlin.String? = null
/**
* The marker for the next set of results. (You received this marker from a previous call.)
*/
public var marker: kotlin.String? = null
/**
* The maximum number of results to return with this call.
*/
public var pageSize: kotlin.Int? = null
/**
* The Amazon Resource Names (ARN) of the rules.
*/
public var ruleArns: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.DescribeRulesRequest) : this() {
this.listenerArn = x.listenerArn
this.marker = x.marker
this.pageSize = x.pageSize
this.ruleArns = x.ruleArns
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.DescribeRulesRequest = DescribeRulesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy