commonMain.aws.sdk.kotlin.services.codedeploy.model.InstanceInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Information about an on-premises instance.
*/
public class InstanceInfo private constructor(builder: Builder) {
/**
* If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
*/
public val deregisterTime: aws.smithy.kotlin.runtime.time.Instant? = builder.deregisterTime
/**
* The ARN of the IAM session associated with the on-premises instance.
*/
public val iamSessionArn: kotlin.String? = builder.iamSessionArn
/**
* The user ARN associated with the on-premises instance.
*/
public val iamUserArn: kotlin.String? = builder.iamUserArn
/**
* The ARN of the on-premises instance.
*/
public val instanceArn: kotlin.String? = builder.instanceArn
/**
* The name of the on-premises instance.
*/
public val instanceName: kotlin.String? = builder.instanceName
/**
* The time at which the on-premises instance was registered.
*/
public val registerTime: aws.smithy.kotlin.runtime.time.Instant? = builder.registerTime
/**
* The tags currently associated with the on-premises instance.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.InstanceInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InstanceInfo(")
append("deregisterTime=$deregisterTime,")
append("iamSessionArn=$iamSessionArn,")
append("iamUserArn=$iamUserArn,")
append("instanceArn=$instanceArn,")
append("instanceName=$instanceName,")
append("registerTime=$registerTime,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deregisterTime?.hashCode() ?: 0
result = 31 * result + (iamSessionArn?.hashCode() ?: 0)
result = 31 * result + (iamUserArn?.hashCode() ?: 0)
result = 31 * result + (instanceArn?.hashCode() ?: 0)
result = 31 * result + (instanceName?.hashCode() ?: 0)
result = 31 * result + (registerTime?.hashCode() ?: 0)
result = 31 * result + (tags?.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 InstanceInfo
if (deregisterTime != other.deregisterTime) return false
if (iamSessionArn != other.iamSessionArn) return false
if (iamUserArn != other.iamUserArn) return false
if (instanceArn != other.instanceArn) return false
if (instanceName != other.instanceName) return false
if (registerTime != other.registerTime) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.InstanceInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
*/
public var deregisterTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ARN of the IAM session associated with the on-premises instance.
*/
public var iamSessionArn: kotlin.String? = null
/**
* The user ARN associated with the on-premises instance.
*/
public var iamUserArn: kotlin.String? = null
/**
* The ARN of the on-premises instance.
*/
public var instanceArn: kotlin.String? = null
/**
* The name of the on-premises instance.
*/
public var instanceName: kotlin.String? = null
/**
* The time at which the on-premises instance was registered.
*/
public var registerTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The tags currently associated with the on-premises instance.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.InstanceInfo) : this() {
this.deregisterTime = x.deregisterTime
this.iamSessionArn = x.iamSessionArn
this.iamUserArn = x.iamUserArn
this.instanceArn = x.instanceArn
this.instanceName = x.instanceName
this.registerTime = x.registerTime
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.InstanceInfo = InstanceInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}