commonMain.aws.sdk.kotlin.services.backupgateway.model.GetHypervisorPropertyMappingsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backupgateway-jvm Show documentation
Show all versions of backupgateway-jvm Show documentation
The AWS SDK for Kotlin client for Backup Gateway
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backupgateway.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetHypervisorPropertyMappingsResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the hypervisor.
*/
public val hypervisorArn: kotlin.String? = builder.hypervisorArn
/**
* The Amazon Resource Name (ARN) of the IAM role.
*/
public val iamRoleArn: kotlin.String? = builder.iamRoleArn
/**
* This is a display of the mappings of on-premises VMware tags to the Amazon Web Services tags.
*/
public val vmwareToAwsTagMappings: List? = builder.vmwareToAwsTagMappings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backupgateway.model.GetHypervisorPropertyMappingsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetHypervisorPropertyMappingsResponse(")
append("hypervisorArn=$hypervisorArn,")
append("iamRoleArn=$iamRoleArn,")
append("vmwareToAwsTagMappings=$vmwareToAwsTagMappings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = hypervisorArn?.hashCode() ?: 0
result = 31 * result + (iamRoleArn?.hashCode() ?: 0)
result = 31 * result + (vmwareToAwsTagMappings?.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 GetHypervisorPropertyMappingsResponse
if (hypervisorArn != other.hypervisorArn) return false
if (iamRoleArn != other.iamRoleArn) return false
if (vmwareToAwsTagMappings != other.vmwareToAwsTagMappings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backupgateway.model.GetHypervisorPropertyMappingsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the hypervisor.
*/
public var hypervisorArn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the IAM role.
*/
public var iamRoleArn: kotlin.String? = null
/**
* This is a display of the mappings of on-premises VMware tags to the Amazon Web Services tags.
*/
public var vmwareToAwsTagMappings: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backupgateway.model.GetHypervisorPropertyMappingsResponse) : this() {
this.hypervisorArn = x.hypervisorArn
this.iamRoleArn = x.iamRoleArn
this.vmwareToAwsTagMappings = x.vmwareToAwsTagMappings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backupgateway.model.GetHypervisorPropertyMappingsResponse = GetHypervisorPropertyMappingsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}