
commonMain.aws.sdk.kotlin.services.medialive.model.InputVpcRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Settings for a private VPC Input. When this property is specified, the input destination addresses will be created in a VPC rather than with public Internet addresses. This property requires setting the roleArn property on Input creation. Not compatible with the inputSecurityGroups property.
*/
public class InputVpcRequest private constructor(builder: Builder) {
/**
* A list of up to 5 EC2 VPC security group IDs to attach to the Input VPC network interfaces. Requires subnetIds. If none are specified then the VPC default security group will be used.
*/
public val securityGroupIds: List? = builder.securityGroupIds
/**
* A list of 2 VPC subnet IDs from the same VPC. Subnet IDs must be mapped to two unique availability zones (AZ).
*/
public val subnetIds: List? = builder.subnetIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputVpcRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputVpcRequest(")
append("securityGroupIds=$securityGroupIds,")
append("subnetIds=$subnetIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = securityGroupIds?.hashCode() ?: 0
result = 31 * result + (subnetIds?.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 InputVpcRequest
if (securityGroupIds != other.securityGroupIds) return false
if (subnetIds != other.subnetIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.InputVpcRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A list of up to 5 EC2 VPC security group IDs to attach to the Input VPC network interfaces. Requires subnetIds. If none are specified then the VPC default security group will be used.
*/
public var securityGroupIds: List? = null
/**
* A list of 2 VPC subnet IDs from the same VPC. Subnet IDs must be mapped to two unique availability zones (AZ).
*/
public var subnetIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputVpcRequest) : this() {
this.securityGroupIds = x.securityGroupIds
this.subnetIds = x.subnetIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.InputVpcRequest = InputVpcRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy