commonMain.aws.sdk.kotlin.services.fsx.model.InvalidNetworkSettings.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fsx-jvm Show documentation
Show all versions of fsx-jvm Show documentation
The AWS SDK for Kotlin client for FSx
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fsx.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.ServiceErrorMetadata
/**
* One or more network settings specified in the request are invalid.
*/
public class InvalidNetworkSettings private constructor(builder: Builder) : FSxException(builder.message) {
/**
* The route table ID is either invalid or not part of the VPC specified.
*/
public val invalidRouteTableId: kotlin.String? = builder.invalidRouteTableId
/**
* The security group ID is either invalid or not part of the VPC specified.
*/
public val invalidSecurityGroupId: kotlin.String? = builder.invalidSecurityGroupId
/**
* The subnet ID that is either invalid or not part of the VPC specified.
*/
public val invalidSubnetId: kotlin.String? = builder.invalidSubnetId
init {
sdkErrorMetadata.attributes[ServiceErrorMetadata.ErrorType] = ErrorType.Client
}
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fsx.model.InvalidNetworkSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InvalidNetworkSettings(")
append("invalidRouteTableId=$invalidRouteTableId,")
append("invalidSecurityGroupId=$invalidSecurityGroupId,")
append("invalidSubnetId=$invalidSubnetId,")
append("message=$message")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = invalidRouteTableId?.hashCode() ?: 0
result = 31 * result + (invalidSecurityGroupId?.hashCode() ?: 0)
result = 31 * result + (invalidSubnetId?.hashCode() ?: 0)
result = 31 * result + (message?.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 InvalidNetworkSettings
if (invalidRouteTableId != other.invalidRouteTableId) return false
if (invalidSecurityGroupId != other.invalidSecurityGroupId) return false
if (invalidSubnetId != other.invalidSubnetId) return false
if (message != other.message) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fsx.model.InvalidNetworkSettings = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The route table ID is either invalid or not part of the VPC specified.
*/
public var invalidRouteTableId: kotlin.String? = null
/**
* The security group ID is either invalid or not part of the VPC specified.
*/
public var invalidSecurityGroupId: kotlin.String? = null
/**
* The subnet ID that is either invalid or not part of the VPC specified.
*/
public var invalidSubnetId: kotlin.String? = null
/**
* Error message explaining what's wrong with network settings.
*/
public var message: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fsx.model.InvalidNetworkSettings) : this() {
this.invalidRouteTableId = x.invalidRouteTableId
this.invalidSecurityGroupId = x.invalidSecurityGroupId
this.invalidSubnetId = x.invalidSubnetId
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fsx.model.InvalidNetworkSettings = InvalidNetworkSettings(this)
internal fun correctErrors(): Builder {
return this
}
}
}