commonMain.aws.sdk.kotlin.services.snowdevicemanagement.model.PhysicalNetworkInterface.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowdevicemanagement-jvm Show documentation
Show all versions of snowdevicemanagement-jvm Show documentation
The AWS SDK for Kotlin client for Snow Device Management
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowdevicemanagement.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The details about the physical network interface for the device.
*/
public class PhysicalNetworkInterface private constructor(builder: Builder) {
/**
* The default gateway of the device.
*/
public val defaultGateway: kotlin.String? = builder.defaultGateway
/**
* The IP address of the device.
*/
public val ipAddress: kotlin.String? = builder.ipAddress
/**
* A value that describes whether the IP address is dynamic or persistent.
*/
public val ipAddressAssignment: aws.sdk.kotlin.services.snowdevicemanagement.model.IpAddressAssignment? = builder.ipAddressAssignment
/**
* The MAC address of the device.
*/
public val macAddress: kotlin.String? = builder.macAddress
/**
* The netmask used to divide the IP address into subnets.
*/
public val netmask: kotlin.String? = builder.netmask
/**
* The physical connector type.
*/
public val physicalConnectorType: aws.sdk.kotlin.services.snowdevicemanagement.model.PhysicalConnectorType? = builder.physicalConnectorType
/**
* The physical network interface ID.
*/
public val physicalNetworkInterfaceId: kotlin.String? = builder.physicalNetworkInterfaceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowdevicemanagement.model.PhysicalNetworkInterface = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PhysicalNetworkInterface(")
append("defaultGateway=$defaultGateway,")
append("ipAddress=$ipAddress,")
append("ipAddressAssignment=$ipAddressAssignment,")
append("macAddress=$macAddress,")
append("netmask=$netmask,")
append("physicalConnectorType=$physicalConnectorType,")
append("physicalNetworkInterfaceId=$physicalNetworkInterfaceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultGateway?.hashCode() ?: 0
result = 31 * result + (ipAddress?.hashCode() ?: 0)
result = 31 * result + (ipAddressAssignment?.hashCode() ?: 0)
result = 31 * result + (macAddress?.hashCode() ?: 0)
result = 31 * result + (netmask?.hashCode() ?: 0)
result = 31 * result + (physicalConnectorType?.hashCode() ?: 0)
result = 31 * result + (physicalNetworkInterfaceId?.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 PhysicalNetworkInterface
if (defaultGateway != other.defaultGateway) return false
if (ipAddress != other.ipAddress) return false
if (ipAddressAssignment != other.ipAddressAssignment) return false
if (macAddress != other.macAddress) return false
if (netmask != other.netmask) return false
if (physicalConnectorType != other.physicalConnectorType) return false
if (physicalNetworkInterfaceId != other.physicalNetworkInterfaceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowdevicemanagement.model.PhysicalNetworkInterface = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The default gateway of the device.
*/
public var defaultGateway: kotlin.String? = null
/**
* The IP address of the device.
*/
public var ipAddress: kotlin.String? = null
/**
* A value that describes whether the IP address is dynamic or persistent.
*/
public var ipAddressAssignment: aws.sdk.kotlin.services.snowdevicemanagement.model.IpAddressAssignment? = null
/**
* The MAC address of the device.
*/
public var macAddress: kotlin.String? = null
/**
* The netmask used to divide the IP address into subnets.
*/
public var netmask: kotlin.String? = null
/**
* The physical connector type.
*/
public var physicalConnectorType: aws.sdk.kotlin.services.snowdevicemanagement.model.PhysicalConnectorType? = null
/**
* The physical network interface ID.
*/
public var physicalNetworkInterfaceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowdevicemanagement.model.PhysicalNetworkInterface) : this() {
this.defaultGateway = x.defaultGateway
this.ipAddress = x.ipAddress
this.ipAddressAssignment = x.ipAddressAssignment
this.macAddress = x.macAddress
this.netmask = x.netmask
this.physicalConnectorType = x.physicalConnectorType
this.physicalNetworkInterfaceId = x.physicalNetworkInterfaceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowdevicemanagement.model.PhysicalNetworkInterface = PhysicalNetworkInterface(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy