commonMain.aws.sdk.kotlin.services.appstream.model.CopyImageRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appstream-jvm Show documentation
Show all versions of appstream-jvm Show documentation
The AWS SDK for Kotlin client for AppStream
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream.model
public class CopyImageRequest private constructor(builder: Builder) {
/**
* The description that the image will have when it is copied to the destination.
*/
public val destinationImageDescription: kotlin.String? = builder.destinationImageDescription
/**
* The name that the image will have when it is copied to the destination.
*/
public val destinationImageName: kotlin.String? = builder.destinationImageName
/**
* The destination region to which the image will be copied. This parameter is required, even if you are copying an image within the same region.
*/
public val destinationRegion: kotlin.String? = builder.destinationRegion
/**
* The name of the image to copy.
*/
public val sourceImageName: kotlin.String? = builder.sourceImageName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.CopyImageRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CopyImageRequest(")
append("destinationImageDescription=$destinationImageDescription,")
append("destinationImageName=$destinationImageName,")
append("destinationRegion=$destinationRegion,")
append("sourceImageName=$sourceImageName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationImageDescription?.hashCode() ?: 0
result = 31 * result + (destinationImageName?.hashCode() ?: 0)
result = 31 * result + (destinationRegion?.hashCode() ?: 0)
result = 31 * result + (sourceImageName?.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 CopyImageRequest
if (destinationImageDescription != other.destinationImageDescription) return false
if (destinationImageName != other.destinationImageName) return false
if (destinationRegion != other.destinationRegion) return false
if (sourceImageName != other.sourceImageName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.CopyImageRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The description that the image will have when it is copied to the destination.
*/
public var destinationImageDescription: kotlin.String? = null
/**
* The name that the image will have when it is copied to the destination.
*/
public var destinationImageName: kotlin.String? = null
/**
* The destination region to which the image will be copied. This parameter is required, even if you are copying an image within the same region.
*/
public var destinationRegion: kotlin.String? = null
/**
* The name of the image to copy.
*/
public var sourceImageName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.CopyImageRequest) : this() {
this.destinationImageDescription = x.destinationImageDescription
this.destinationImageName = x.destinationImageName
this.destinationRegion = x.destinationRegion
this.sourceImageName = x.sourceImageName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.CopyImageRequest = CopyImageRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy