commonMain.aws.sdk.kotlin.services.backupgateway.model.TestHypervisorConfigurationRequest.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 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 TestHypervisorConfigurationRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.
*/
public val gatewayArn: kotlin.String = requireNotNull(builder.gatewayArn) { "A non-null value must be provided for gatewayArn" }
/**
* The server host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN).
*/
public val host: kotlin.String = requireNotNull(builder.host) { "A non-null value must be provided for host" }
/**
* The password for the hypervisor.
*/
public val password: kotlin.String? = builder.password
/**
* The username for the hypervisor.
*/
public val username: kotlin.String? = builder.username
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backupgateway.model.TestHypervisorConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TestHypervisorConfigurationRequest(")
append("gatewayArn=$gatewayArn,")
append("host=$host,")
append("password=*** Sensitive Data Redacted ***,")
append("username=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = gatewayArn.hashCode()
result = 31 * result + (host.hashCode())
result = 31 * result + (password?.hashCode() ?: 0)
result = 31 * result + (username?.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 TestHypervisorConfigurationRequest
if (gatewayArn != other.gatewayArn) return false
if (host != other.host) return false
if (password != other.password) return false
if (username != other.username) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backupgateway.model.TestHypervisorConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.
*/
public var gatewayArn: kotlin.String? = null
/**
* The server host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN).
*/
public var host: kotlin.String? = null
/**
* The password for the hypervisor.
*/
public var password: kotlin.String? = null
/**
* The username for the hypervisor.
*/
public var username: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backupgateway.model.TestHypervisorConfigurationRequest) : this() {
this.gatewayArn = x.gatewayArn
this.host = x.host
this.password = x.password
this.username = x.username
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backupgateway.model.TestHypervisorConfigurationRequest = TestHypervisorConfigurationRequest(this)
internal fun correctErrors(): Builder {
if (gatewayArn == null) gatewayArn = ""
if (host == null) host = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy