commonMain.aws.sdk.kotlin.services.apprunner.model.DescribeCustomDomainsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apprunner-jvm Show documentation
Show all versions of apprunner-jvm Show documentation
The AWS SDK for Kotlin client for AppRunner
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apprunner.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeCustomDomainsRequest private constructor(builder: Builder) {
/**
* The maximum number of results that each response (result page) can include. It's used for a paginated request.
*
* If you don't specify `MaxResults`, the request retrieves all available results in a single response.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones that are specified in the initial request.
*
* If you don't specify `NextToken`, the request retrieves the first result page.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The Amazon Resource Name (ARN) of the App Runner service that you want associated custom domain names to be described for.
*/
public val serviceArn: kotlin.String? = builder.serviceArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apprunner.model.DescribeCustomDomainsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeCustomDomainsRequest(")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("serviceArn=$serviceArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxResults ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (serviceArn?.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 DescribeCustomDomainsRequest
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (serviceArn != other.serviceArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apprunner.model.DescribeCustomDomainsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of results that each response (result page) can include. It's used for a paginated request.
*
* If you don't specify `MaxResults`, the request retrieves all available results in a single response.
*/
public var maxResults: kotlin.Int? = null
/**
* A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones that are specified in the initial request.
*
* If you don't specify `NextToken`, the request retrieves the first result page.
*/
public var nextToken: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the App Runner service that you want associated custom domain names to be described for.
*/
public var serviceArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apprunner.model.DescribeCustomDomainsRequest) : this() {
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.serviceArn = x.serviceArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apprunner.model.DescribeCustomDomainsRequest = DescribeCustomDomainsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}