
commonMain.aws.sdk.kotlin.services.medialive.model.InputSecurityGroup.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* An Input Security Group
*/
public class InputSecurityGroup private constructor(builder: Builder) {
/**
* Unique ARN of Input Security Group
*/
public val arn: kotlin.String? = builder.arn
/**
* The Id of the Input Security Group
*/
public val id: kotlin.String? = builder.id
/**
* The list of inputs currently using this Input Security Group.
*/
public val inputs: List? = builder.inputs
/**
* The current state of the Input Security Group.
*/
public val state: aws.sdk.kotlin.services.medialive.model.InputSecurityGroupState? = builder.state
/**
* A collection of key-value pairs.
*/
public val tags: Map? = builder.tags
/**
* Whitelist rules and their sync status
*/
public val whitelistRules: List? = builder.whitelistRules
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputSecurityGroup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputSecurityGroup(")
append("arn=$arn,")
append("id=$id,")
append("inputs=$inputs,")
append("state=$state,")
append("tags=$tags,")
append("whitelistRules=$whitelistRules")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (inputs?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (whitelistRules?.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 InputSecurityGroup
if (arn != other.arn) return false
if (id != other.id) return false
if (inputs != other.inputs) return false
if (state != other.state) return false
if (tags != other.tags) return false
if (whitelistRules != other.whitelistRules) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.InputSecurityGroup = Builder(this).apply(block).build()
public class Builder {
/**
* Unique ARN of Input Security Group
*/
public var arn: kotlin.String? = null
/**
* The Id of the Input Security Group
*/
public var id: kotlin.String? = null
/**
* The list of inputs currently using this Input Security Group.
*/
public var inputs: List? = null
/**
* The current state of the Input Security Group.
*/
public var state: aws.sdk.kotlin.services.medialive.model.InputSecurityGroupState? = null
/**
* A collection of key-value pairs.
*/
public var tags: Map? = null
/**
* Whitelist rules and their sync status
*/
public var whitelistRules: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputSecurityGroup) : this() {
this.arn = x.arn
this.id = x.id
this.inputs = x.inputs
this.state = x.state
this.tags = x.tags
this.whitelistRules = x.whitelistRules
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.InputSecurityGroup = InputSecurityGroup(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy