commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DescribeFleetAdvisorSchemasRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeFleetAdvisorSchemasRequest private constructor(builder: Builder) {
/**
* If you specify any of the following filters, the output includes information for only those schemas that meet the filter criteria:
* + `complexity` – The schema's complexity, for example `Simple`.
* + `database-id` – The ID of the schema's database.
* + `database-ip-address` – The IP address of the schema's database.
* + `database-name` – The name of the schema's database.
* + `database-engine` – The name of the schema database's engine.
* + `original-schema-name` – The name of the schema's database's main schema.
* + `schema-id` – The ID of the schema, for example `15`.
* + `schema-name` – The name of the schema.
* + `server-ip-address` – The IP address of the schema database's server.
*
* An example is: `describe-fleet-advisor-schemas --filter Name="schema-id",Values="50"`
*/
public val filters: List? = builder.filters
/**
* Sets the maximum number of records returned in the response.
*/
public val maxRecords: kotlin.Int? = builder.maxRecords
/**
* If `NextToken` is returned by a previous response, there are more results available. The value of `NextToken` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.DescribeFleetAdvisorSchemasRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeFleetAdvisorSchemasRequest(")
append("filters=$filters,")
append("maxRecords=$maxRecords,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = filters?.hashCode() ?: 0
result = 31 * result + (maxRecords ?: 0)
result = 31 * result + (nextToken?.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 DescribeFleetAdvisorSchemasRequest
if (filters != other.filters) return false
if (maxRecords != other.maxRecords) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.DescribeFleetAdvisorSchemasRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If you specify any of the following filters, the output includes information for only those schemas that meet the filter criteria:
* + `complexity` – The schema's complexity, for example `Simple`.
* + `database-id` – The ID of the schema's database.
* + `database-ip-address` – The IP address of the schema's database.
* + `database-name` – The name of the schema's database.
* + `database-engine` – The name of the schema database's engine.
* + `original-schema-name` – The name of the schema's database's main schema.
* + `schema-id` – The ID of the schema, for example `15`.
* + `schema-name` – The name of the schema.
* + `server-ip-address` – The IP address of the schema database's server.
*
* An example is: `describe-fleet-advisor-schemas --filter Name="schema-id",Values="50"`
*/
public var filters: List? = null
/**
* Sets the maximum number of records returned in the response.
*/
public var maxRecords: kotlin.Int? = null
/**
* If `NextToken` is returned by a previous response, there are more results available. The value of `NextToken` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.DescribeFleetAdvisorSchemasRequest) : this() {
this.filters = x.filters
this.maxRecords = x.maxRecords
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.DescribeFleetAdvisorSchemasRequest = DescribeFleetAdvisorSchemasRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy