commonMain.aws.sdk.kotlin.services.appstream.model.UpdateApplicationRequest.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateApplicationRequest private constructor(builder: Builder) {
/**
* The ARN of the app block.
*/
public val appBlockArn: kotlin.String? = builder.appBlockArn
/**
* The attributes to delete for an application.
*/
public val attributesToDelete: List? = builder.attributesToDelete
/**
* The description of the application.
*/
public val description: kotlin.String? = builder.description
/**
* The display name of the application. This name is visible to users in the application catalog.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The icon S3 location of the application.
*/
public val iconS3Location: aws.sdk.kotlin.services.appstream.model.S3Location? = builder.iconS3Location
/**
* The launch parameters of the application.
*/
public val launchParameters: kotlin.String? = builder.launchParameters
/**
* The launch path of the application.
*/
public val launchPath: kotlin.String? = builder.launchPath
/**
* The name of the application. This name is visible to users when display name is not specified.
*/
public val name: kotlin.String? = builder.name
/**
* The working directory of the application.
*/
public val workingDirectory: kotlin.String? = builder.workingDirectory
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.UpdateApplicationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateApplicationRequest(")
append("appBlockArn=$appBlockArn,")
append("attributesToDelete=$attributesToDelete,")
append("description=$description,")
append("displayName=$displayName,")
append("iconS3Location=$iconS3Location,")
append("launchParameters=$launchParameters,")
append("launchPath=$launchPath,")
append("name=$name,")
append("workingDirectory=$workingDirectory")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appBlockArn?.hashCode() ?: 0
result = 31 * result + (attributesToDelete?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (iconS3Location?.hashCode() ?: 0)
result = 31 * result + (launchParameters?.hashCode() ?: 0)
result = 31 * result + (launchPath?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (workingDirectory?.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 UpdateApplicationRequest
if (appBlockArn != other.appBlockArn) return false
if (attributesToDelete != other.attributesToDelete) return false
if (description != other.description) return false
if (displayName != other.displayName) return false
if (iconS3Location != other.iconS3Location) return false
if (launchParameters != other.launchParameters) return false
if (launchPath != other.launchPath) return false
if (name != other.name) return false
if (workingDirectory != other.workingDirectory) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.UpdateApplicationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the app block.
*/
public var appBlockArn: kotlin.String? = null
/**
* The attributes to delete for an application.
*/
public var attributesToDelete: List? = null
/**
* The description of the application.
*/
public var description: kotlin.String? = null
/**
* The display name of the application. This name is visible to users in the application catalog.
*/
public var displayName: kotlin.String? = null
/**
* The icon S3 location of the application.
*/
public var iconS3Location: aws.sdk.kotlin.services.appstream.model.S3Location? = null
/**
* The launch parameters of the application.
*/
public var launchParameters: kotlin.String? = null
/**
* The launch path of the application.
*/
public var launchPath: kotlin.String? = null
/**
* The name of the application. This name is visible to users when display name is not specified.
*/
public var name: kotlin.String? = null
/**
* The working directory of the application.
*/
public var workingDirectory: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.UpdateApplicationRequest) : this() {
this.appBlockArn = x.appBlockArn
this.attributesToDelete = x.attributesToDelete
this.description = x.description
this.displayName = x.displayName
this.iconS3Location = x.iconS3Location
this.launchParameters = x.launchParameters
this.launchPath = x.launchPath
this.name = x.name
this.workingDirectory = x.workingDirectory
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.UpdateApplicationRequest = UpdateApplicationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.appstream.model.S3Location] inside the given [block]
*/
public fun iconS3Location(block: aws.sdk.kotlin.services.appstream.model.S3Location.Builder.() -> kotlin.Unit) {
this.iconS3Location = aws.sdk.kotlin.services.appstream.model.S3Location.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy