All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.medialive.model.InputDeviceNetworkSettings.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.medialive.model



/**
 * The network settings for the input device.
 */
public class InputDeviceNetworkSettings private constructor(builder: Builder) {
    /**
     * The DNS addresses of the input device.
     */
    public val dnsAddresses: List? = builder.dnsAddresses
    /**
     * The network gateway IP address.
     */
    public val gateway: kotlin.String? = builder.gateway
    /**
     * The IP address of the input device.
     */
    public val ipAddress: kotlin.String? = builder.ipAddress
    /**
     * Specifies whether the input device has been configured (outside of MediaLive) to use a dynamic IP address assignment (DHCP) or a static IP address.
     */
    public val ipScheme: aws.sdk.kotlin.services.medialive.model.InputDeviceIpScheme? = builder.ipScheme
    /**
     * The subnet mask of the input device.
     */
    public val subnetMask: kotlin.String? = builder.subnetMask

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputDeviceNetworkSettings = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("InputDeviceNetworkSettings(")
        append("dnsAddresses=$dnsAddresses,")
        append("gateway=$gateway,")
        append("ipAddress=$ipAddress,")
        append("ipScheme=$ipScheme,")
        append("subnetMask=$subnetMask")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dnsAddresses?.hashCode() ?: 0
        result = 31 * result + (gateway?.hashCode() ?: 0)
        result = 31 * result + (ipAddress?.hashCode() ?: 0)
        result = 31 * result + (ipScheme?.hashCode() ?: 0)
        result = 31 * result + (subnetMask?.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 InputDeviceNetworkSettings

        if (dnsAddresses != other.dnsAddresses) return false
        if (gateway != other.gateway) return false
        if (ipAddress != other.ipAddress) return false
        if (ipScheme != other.ipScheme) return false
        if (subnetMask != other.subnetMask) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.InputDeviceNetworkSettings = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The DNS addresses of the input device.
         */
        public var dnsAddresses: List? = null
        /**
         * The network gateway IP address.
         */
        public var gateway: kotlin.String? = null
        /**
         * The IP address of the input device.
         */
        public var ipAddress: kotlin.String? = null
        /**
         * Specifies whether the input device has been configured (outside of MediaLive) to use a dynamic IP address assignment (DHCP) or a static IP address.
         */
        public var ipScheme: aws.sdk.kotlin.services.medialive.model.InputDeviceIpScheme? = null
        /**
         * The subnet mask of the input device.
         */
        public var subnetMask: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputDeviceNetworkSettings) : this() {
            this.dnsAddresses = x.dnsAddresses
            this.gateway = x.gateway
            this.ipAddress = x.ipAddress
            this.ipScheme = x.ipScheme
            this.subnetMask = x.subnetMask
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medialive.model.InputDeviceNetworkSettings = InputDeviceNetworkSettings(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy