commonMain.aws.sdk.kotlin.services.devicefarm.model.UpdateVpceConfigurationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devicefarm-jvm Show documentation
Show all versions of devicefarm-jvm Show documentation
The AWS SDK for Kotlin client for Device Farm
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devicefarm.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateVpceConfigurationRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the VPC endpoint configuration you want to update.
*/
public val arn: kotlin.String? = builder.arn
/**
* The DNS (domain) name used to connect to your private service in your VPC. The DNS name must not already be in use on the internet.
*/
public val serviceDnsName: kotlin.String? = builder.serviceDnsName
/**
* An optional description that provides details about your VPC endpoint configuration.
*/
public val vpceConfigurationDescription: kotlin.String? = builder.vpceConfigurationDescription
/**
* The friendly name you give to your VPC endpoint configuration to manage your configurations more easily.
*/
public val vpceConfigurationName: kotlin.String? = builder.vpceConfigurationName
/**
* The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
*/
public val vpceServiceName: kotlin.String? = builder.vpceServiceName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devicefarm.model.UpdateVpceConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateVpceConfigurationRequest(")
append("arn=$arn,")
append("serviceDnsName=$serviceDnsName,")
append("vpceConfigurationDescription=$vpceConfigurationDescription,")
append("vpceConfigurationName=$vpceConfigurationName,")
append("vpceServiceName=$vpceServiceName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (serviceDnsName?.hashCode() ?: 0)
result = 31 * result + (vpceConfigurationDescription?.hashCode() ?: 0)
result = 31 * result + (vpceConfigurationName?.hashCode() ?: 0)
result = 31 * result + (vpceServiceName?.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 UpdateVpceConfigurationRequest
if (arn != other.arn) return false
if (serviceDnsName != other.serviceDnsName) return false
if (vpceConfigurationDescription != other.vpceConfigurationDescription) return false
if (vpceConfigurationName != other.vpceConfigurationName) return false
if (vpceServiceName != other.vpceServiceName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devicefarm.model.UpdateVpceConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the VPC endpoint configuration you want to update.
*/
public var arn: kotlin.String? = null
/**
* The DNS (domain) name used to connect to your private service in your VPC. The DNS name must not already be in use on the internet.
*/
public var serviceDnsName: kotlin.String? = null
/**
* An optional description that provides details about your VPC endpoint configuration.
*/
public var vpceConfigurationDescription: kotlin.String? = null
/**
* The friendly name you give to your VPC endpoint configuration to manage your configurations more easily.
*/
public var vpceConfigurationName: kotlin.String? = null
/**
* The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
*/
public var vpceServiceName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.UpdateVpceConfigurationRequest) : this() {
this.arn = x.arn
this.serviceDnsName = x.serviceDnsName
this.vpceConfigurationDescription = x.vpceConfigurationDescription
this.vpceConfigurationName = x.vpceConfigurationName
this.vpceServiceName = x.vpceServiceName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devicefarm.model.UpdateVpceConfigurationRequest = UpdateVpceConfigurationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}