
commonMain.aws.sdk.kotlin.services.licensemanagerlinuxsubscriptions.model.Instance.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.licensemanagerlinuxsubscriptions.model
/**
* Details discovered information about a running instance using Linux subscriptions.
*/
public class Instance private constructor(builder: Builder) {
/**
* The account ID which owns the instance.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The AMI ID used to launch the instance.
*/
public val amiId: kotlin.String? = builder.amiId
/**
* The instance ID of the resource.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The instance type of the resource.
*/
public val instanceType: kotlin.String? = builder.instanceType
/**
* The time in which the last discovery updated the instance details.
*/
public val lastUpdatedTime: kotlin.String? = builder.lastUpdatedTime
/**
* The product code for the instance. For more information, see [Usage operation values](https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html) in the *License Manager User Guide* .
*/
public val productCode: List? = builder.productCode
/**
* The Region the instance is running in.
*/
public val region: kotlin.String? = builder.region
/**
* The status of the instance.
*/
public val status: kotlin.String? = builder.status
/**
* The name of the subscription being used by the instance.
*/
public val subscriptionName: kotlin.String? = builder.subscriptionName
/**
* The usage operation of the instance. For more information, see For more information, see [Usage operation values](https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html) in the *License Manager User Guide*.
*/
public val usageOperation: kotlin.String? = builder.usageOperation
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.licensemanagerlinuxsubscriptions.model.Instance = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Instance(")
append("accountId=$accountId,")
append("amiId=$amiId,")
append("instanceId=$instanceId,")
append("instanceType=$instanceType,")
append("lastUpdatedTime=$lastUpdatedTime,")
append("productCode=$productCode,")
append("region=$region,")
append("status=$status,")
append("subscriptionName=$subscriptionName,")
append("usageOperation=$usageOperation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (amiId?.hashCode() ?: 0)
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (instanceType?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
result = 31 * result + (productCode?.hashCode() ?: 0)
result = 31 * result + (region?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (subscriptionName?.hashCode() ?: 0)
result = 31 * result + (usageOperation?.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 Instance
if (accountId != other.accountId) return false
if (amiId != other.amiId) return false
if (instanceId != other.instanceId) return false
if (instanceType != other.instanceType) return false
if (lastUpdatedTime != other.lastUpdatedTime) return false
if (productCode != other.productCode) return false
if (region != other.region) return false
if (status != other.status) return false
if (subscriptionName != other.subscriptionName) return false
if (usageOperation != other.usageOperation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.licensemanagerlinuxsubscriptions.model.Instance = Builder(this).apply(block).build()
public class Builder {
/**
* The account ID which owns the instance.
*/
public var accountId: kotlin.String? = null
/**
* The AMI ID used to launch the instance.
*/
public var amiId: kotlin.String? = null
/**
* The instance ID of the resource.
*/
public var instanceId: kotlin.String? = null
/**
* The instance type of the resource.
*/
public var instanceType: kotlin.String? = null
/**
* The time in which the last discovery updated the instance details.
*/
public var lastUpdatedTime: kotlin.String? = null
/**
* The product code for the instance. For more information, see [Usage operation values](https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html) in the *License Manager User Guide* .
*/
public var productCode: List? = null
/**
* The Region the instance is running in.
*/
public var region: kotlin.String? = null
/**
* The status of the instance.
*/
public var status: kotlin.String? = null
/**
* The name of the subscription being used by the instance.
*/
public var subscriptionName: kotlin.String? = null
/**
* The usage operation of the instance. For more information, see For more information, see [Usage operation values](https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html) in the *License Manager User Guide*.
*/
public var usageOperation: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.licensemanagerlinuxsubscriptions.model.Instance) : this() {
this.accountId = x.accountId
this.amiId = x.amiId
this.instanceId = x.instanceId
this.instanceType = x.instanceType
this.lastUpdatedTime = x.lastUpdatedTime
this.productCode = x.productCode
this.region = x.region
this.status = x.status
this.subscriptionName = x.subscriptionName
this.usageOperation = x.usageOperation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.licensemanagerlinuxsubscriptions.model.Instance = Instance(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy