commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DescribeFleetAdvisorDatabasesRequest.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 DescribeFleetAdvisorDatabasesRequest private constructor(builder: Builder) {
/**
* If you specify any of the following filters, the output includes information for only those databases that meet the filter criteria:
* + `database-id` – The ID of the database.
* + `database-name` – The name of the database.
* + `database-engine` – The name of the database engine.
* + `server-ip-address` – The IP address of the database server.
* + `database-ip-address` – The IP address of the database.
* + `collector-name` – The name of the associated Fleet Advisor collector.
*
* An example is: `describe-fleet-advisor-databases --filter Name="database-id",Values="45"`
*/
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.DescribeFleetAdvisorDatabasesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeFleetAdvisorDatabasesRequest(")
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 DescribeFleetAdvisorDatabasesRequest
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.DescribeFleetAdvisorDatabasesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If you specify any of the following filters, the output includes information for only those databases that meet the filter criteria:
* + `database-id` – The ID of the database.
* + `database-name` – The name of the database.
* + `database-engine` – The name of the database engine.
* + `server-ip-address` – The IP address of the database server.
* + `database-ip-address` – The IP address of the database.
* + `collector-name` – The name of the associated Fleet Advisor collector.
*
* An example is: `describe-fleet-advisor-databases --filter Name="database-id",Values="45"`
*/
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.DescribeFleetAdvisorDatabasesRequest) : this() {
this.filters = x.filters
this.maxRecords = x.maxRecords
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.DescribeFleetAdvisorDatabasesRequest = DescribeFleetAdvisorDatabasesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy