commonMain.aws.sdk.kotlin.services.appstream.model.CreateAppBlockBuilderRequest.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 CreateAppBlockBuilderRequest private constructor(builder: Builder) {
/**
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block builder only through the specified endpoints.
*/
public val accessEndpoints: List? = builder.accessEndpoints
/**
* The description of the app block builder.
*/
public val description: kotlin.String? = builder.description
/**
* The display name of the app block builder.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* Enables or disables default internet access for the app block builder.
*/
public val enableDefaultInternetAccess: kotlin.Boolean? = builder.enableDefaultInternetAccess
/**
* The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the app block builder calls the AWS Security Token Service (STS) `AssumeRole` API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the **appstream_machine_role** credential profile on the instance.
*
* For more information, see [Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances](https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) in the *Amazon AppStream 2.0 Administration Guide*.
*/
public val iamRoleArn: kotlin.String? = builder.iamRoleArn
/**
* The instance type to use when launching the app block builder. The following instance types are available:
* + stream.standard.small
* + stream.standard.medium
* + stream.standard.large
* + stream.standard.xlarge
* + stream.standard.2xlarge
*/
public val instanceType: kotlin.String? = builder.instanceType
/**
* The unique name for the app block builder.
*/
public val name: kotlin.String? = builder.name
/**
* The platform of the app block builder.
*
* `WINDOWS_SERVER_2019` is the only valid value.
*/
public val platform: aws.sdk.kotlin.services.appstream.model.AppBlockBuilderPlatformType? = builder.platform
/**
* The tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.
*
* If you do not specify a value, the value is set to an empty string.
*
* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:
*
* _ . : / = + \ - @
*
* For more information, see [Tagging Your Resources](https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) in the *Amazon AppStream 2.0 Administration Guide*.
*/
public val tags: Map? = builder.tags
/**
* The VPC configuration for the app block builder.
*
* App block builders require that you specify at least two subnets in different availability zones.
*/
public val vpcConfig: aws.sdk.kotlin.services.appstream.model.VpcConfig? = builder.vpcConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.CreateAppBlockBuilderRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAppBlockBuilderRequest(")
append("accessEndpoints=$accessEndpoints,")
append("description=$description,")
append("displayName=$displayName,")
append("enableDefaultInternetAccess=$enableDefaultInternetAccess,")
append("iamRoleArn=$iamRoleArn,")
append("instanceType=$instanceType,")
append("name=$name,")
append("platform=$platform,")
append("tags=$tags,")
append("vpcConfig=$vpcConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accessEndpoints?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (enableDefaultInternetAccess?.hashCode() ?: 0)
result = 31 * result + (iamRoleArn?.hashCode() ?: 0)
result = 31 * result + (instanceType?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (platform?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (vpcConfig?.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 CreateAppBlockBuilderRequest
if (accessEndpoints != other.accessEndpoints) return false
if (description != other.description) return false
if (displayName != other.displayName) return false
if (enableDefaultInternetAccess != other.enableDefaultInternetAccess) return false
if (iamRoleArn != other.iamRoleArn) return false
if (instanceType != other.instanceType) return false
if (name != other.name) return false
if (platform != other.platform) return false
if (tags != other.tags) return false
if (vpcConfig != other.vpcConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.CreateAppBlockBuilderRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block builder only through the specified endpoints.
*/
public var accessEndpoints: List? = null
/**
* The description of the app block builder.
*/
public var description: kotlin.String? = null
/**
* The display name of the app block builder.
*/
public var displayName: kotlin.String? = null
/**
* Enables or disables default internet access for the app block builder.
*/
public var enableDefaultInternetAccess: kotlin.Boolean? = null
/**
* The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the app block builder calls the AWS Security Token Service (STS) `AssumeRole` API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the **appstream_machine_role** credential profile on the instance.
*
* For more information, see [Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances](https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) in the *Amazon AppStream 2.0 Administration Guide*.
*/
public var iamRoleArn: kotlin.String? = null
/**
* The instance type to use when launching the app block builder. The following instance types are available:
* + stream.standard.small
* + stream.standard.medium
* + stream.standard.large
* + stream.standard.xlarge
* + stream.standard.2xlarge
*/
public var instanceType: kotlin.String? = null
/**
* The unique name for the app block builder.
*/
public var name: kotlin.String? = null
/**
* The platform of the app block builder.
*
* `WINDOWS_SERVER_2019` is the only valid value.
*/
public var platform: aws.sdk.kotlin.services.appstream.model.AppBlockBuilderPlatformType? = null
/**
* The tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.
*
* If you do not specify a value, the value is set to an empty string.
*
* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:
*
* _ . : / = + \ - @
*
* For more information, see [Tagging Your Resources](https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) in the *Amazon AppStream 2.0 Administration Guide*.
*/
public var tags: Map? = null
/**
* The VPC configuration for the app block builder.
*
* App block builders require that you specify at least two subnets in different availability zones.
*/
public var vpcConfig: aws.sdk.kotlin.services.appstream.model.VpcConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.CreateAppBlockBuilderRequest) : this() {
this.accessEndpoints = x.accessEndpoints
this.description = x.description
this.displayName = x.displayName
this.enableDefaultInternetAccess = x.enableDefaultInternetAccess
this.iamRoleArn = x.iamRoleArn
this.instanceType = x.instanceType
this.name = x.name
this.platform = x.platform
this.tags = x.tags
this.vpcConfig = x.vpcConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.CreateAppBlockBuilderRequest = CreateAppBlockBuilderRequest(this)
/**
* construct an [aws.sdk.kotlin.services.appstream.model.VpcConfig] inside the given [block]
*/
public fun vpcConfig(block: aws.sdk.kotlin.services.appstream.model.VpcConfig.Builder.() -> kotlin.Unit) {
this.vpcConfig = aws.sdk.kotlin.services.appstream.model.VpcConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy