commonMain.aws.sdk.kotlin.services.devicefarm.model.VpceConfiguration.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
/**
* Represents an Amazon Virtual Private Cloud (VPC) endpoint configuration.
*/
public class VpceConfiguration private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the VPC endpoint configuration.
*/
public val arn: kotlin.String? = builder.arn
/**
* The DNS name that maps to the private IP address of the service you want to access.
*/
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.VpceConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VpceConfiguration(")
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 VpceConfiguration
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.VpceConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the VPC endpoint configuration.
*/
public var arn: kotlin.String? = null
/**
* The DNS name that maps to the private IP address of the service you want to access.
*/
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.VpceConfiguration) : 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.VpceConfiguration = VpceConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}