commonMain.aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionResponse.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 GetConnectorDefinitionVersionResponse private constructor(builder: Builder) {
/**
* The ARN of the connector definition version.
*/
public val arn: kotlin.String? = builder.arn
/**
* The time, in milliseconds since the epoch, when the connector definition version was created.
*/
public val creationTimestamp: kotlin.String? = builder.creationTimestamp
/**
* Information about the connector definition version.
*/
public val definition: aws.sdk.kotlin.services.greengrass.model.ConnectorDefinitionVersion? = builder.definition
/**
* The ID of the connector definition version.
*/
public val id: kotlin.String? = builder.id
/**
* The token for the next set of results, or ''null'' if there are no additional results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The version of the connector definition version.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConnectorDefinitionVersionResponse(")
append("arn=$arn,")
append("creationTimestamp=$creationTimestamp,")
append("definition=$definition,")
append("id=$id,")
append("nextToken=$nextToken,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (creationTimestamp?.hashCode() ?: 0)
result = 31 * result + (definition?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (version?.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 GetConnectorDefinitionVersionResponse
if (arn != other.arn) return false
if (creationTimestamp != other.creationTimestamp) return false
if (definition != other.definition) return false
if (id != other.id) return false
if (nextToken != other.nextToken) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the connector definition version.
*/
public var arn: kotlin.String? = null
/**
* The time, in milliseconds since the epoch, when the connector definition version was created.
*/
public var creationTimestamp: kotlin.String? = null
/**
* Information about the connector definition version.
*/
public var definition: aws.sdk.kotlin.services.greengrass.model.ConnectorDefinitionVersion? = null
/**
* The ID of the connector definition version.
*/
public var id: 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
/**
* The version of the connector definition version.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionResponse) : this() {
this.arn = x.arn
this.creationTimestamp = x.creationTimestamp
this.definition = x.definition
this.id = x.id
this.nextToken = x.nextToken
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.greengrass.model.GetConnectorDefinitionVersionResponse = GetConnectorDefinitionVersionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.greengrass.model.ConnectorDefinitionVersion] inside the given [block]
*/
public fun definition(block: aws.sdk.kotlin.services.greengrass.model.ConnectorDefinitionVersion.Builder.() -> kotlin.Unit) {
this.definition = aws.sdk.kotlin.services.greengrass.model.ConnectorDefinitionVersion.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}