commonMain.aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greengrass-jvm Show documentation
Show all versions of greengrass-jvm Show documentation
The AWS SDK for Kotlin client for Greengrass
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.greengrass.model
public class GetConnectorDefinitionVersionRequest private constructor(builder: Builder) {
/**
* The ID of the connector definition.
*/
public val connectorDefinitionId: kotlin.String? = builder.connectorDefinitionId
/**
* The ID of the connector definition version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListConnectorDefinitionVersions'' requests. If the version is the last one that was associated with a connector definition, the value also maps to the ''LatestVersion'' property of the corresponding ''DefinitionInformation'' object.
*/
public val connectorDefinitionVersionId: kotlin.String? = builder.connectorDefinitionVersionId
/**
* The token for the next set of results, or ''null'' if there are no additional results.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConnectorDefinitionVersionRequest(")
append("connectorDefinitionId=$connectorDefinitionId,")
append("connectorDefinitionVersionId=$connectorDefinitionVersionId,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectorDefinitionId?.hashCode() ?: 0
result = 31 * result + (connectorDefinitionVersionId?.hashCode() ?: 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 GetConnectorDefinitionVersionRequest
if (connectorDefinitionId != other.connectorDefinitionId) return false
if (connectorDefinitionVersionId != other.connectorDefinitionVersionId) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the connector definition.
*/
public var connectorDefinitionId: kotlin.String? = null
/**
* The ID of the connector definition version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListConnectorDefinitionVersions'' requests. If the version is the last one that was associated with a connector definition, the value also maps to the ''LatestVersion'' property of the corresponding ''DefinitionInformation'' object.
*/
public var connectorDefinitionVersionId: kotlin.String? = null
/**
* The token for the next set of results, or ''null'' if there are no additional results.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionRequest) : this() {
this.connectorDefinitionId = x.connectorDefinitionId
this.connectorDefinitionVersionId = x.connectorDefinitionVersionId
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionRequest = GetConnectorDefinitionVersionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}