commonMain.aws.sdk.kotlin.services.vpclattice.model.UpdateAccessLogSubscriptionResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vpclattice-jvm Show documentation
Show all versions of vpclattice-jvm Show documentation
The AWS SDK for Kotlin client for VPC Lattice
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.vpclattice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateAccessLogSubscriptionResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the access log subscription.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* The Amazon Resource Name (ARN) of the access log destination.
*/
public val destinationArn: kotlin.String = requireNotNull(builder.destinationArn) { "A non-null value must be provided for destinationArn" }
/**
* The ID of the access log subscription.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The Amazon Resource Name (ARN) of the access log subscription.
*/
public val resourceArn: kotlin.String = requireNotNull(builder.resourceArn) { "A non-null value must be provided for resourceArn" }
/**
* The ID of the resource.
*/
public val resourceId: kotlin.String = requireNotNull(builder.resourceId) { "A non-null value must be provided for resourceId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.vpclattice.model.UpdateAccessLogSubscriptionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAccessLogSubscriptionResponse(")
append("arn=$arn,")
append("destinationArn=$destinationArn,")
append("id=$id,")
append("resourceArn=$resourceArn,")
append("resourceId=$resourceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (destinationArn.hashCode())
result = 31 * result + (id.hashCode())
result = 31 * result + (resourceArn.hashCode())
result = 31 * result + (resourceId.hashCode())
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 UpdateAccessLogSubscriptionResponse
if (arn != other.arn) return false
if (destinationArn != other.destinationArn) return false
if (id != other.id) return false
if (resourceArn != other.resourceArn) return false
if (resourceId != other.resourceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.vpclattice.model.UpdateAccessLogSubscriptionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the access log subscription.
*/
public var arn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the access log destination.
*/
public var destinationArn: kotlin.String? = null
/**
* The ID of the access log subscription.
*/
public var id: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the access log subscription.
*/
public var resourceArn: kotlin.String? = null
/**
* The ID of the resource.
*/
public var resourceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.vpclattice.model.UpdateAccessLogSubscriptionResponse) : this() {
this.arn = x.arn
this.destinationArn = x.destinationArn
this.id = x.id
this.resourceArn = x.resourceArn
this.resourceId = x.resourceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.vpclattice.model.UpdateAccessLogSubscriptionResponse = UpdateAccessLogSubscriptionResponse(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (destinationArn == null) destinationArn = ""
if (id == null) id = ""
if (resourceArn == null) resourceArn = ""
if (resourceId == null) resourceId = ""
return this
}
}
}