
commonMain.aws.sdk.kotlin.services.gamelift.model.UpdateFleetPortSettingsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
public class UpdateFleetPortSettingsRequest private constructor(builder: Builder) {
/**
* A unique identifier for the fleet to update port settings for. You can use either the fleet ID or ARN value.
*/
public val fleetId: kotlin.String? = builder.fleetId
/**
* A collection of port settings to be added to the fleet resource.
*/
public val inboundPermissionAuthorizations: List? = builder.inboundPermissionAuthorizations
/**
* A collection of port settings to be removed from the fleet resource.
*/
public val inboundPermissionRevocations: List? = builder.inboundPermissionRevocations
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.gamelift.model.UpdateFleetPortSettingsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateFleetPortSettingsRequest(")
append("fleetId=$fleetId,")
append("inboundPermissionAuthorizations=$inboundPermissionAuthorizations,")
append("inboundPermissionRevocations=$inboundPermissionRevocations")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fleetId?.hashCode() ?: 0
result = 31 * result + (inboundPermissionAuthorizations?.hashCode() ?: 0)
result = 31 * result + (inboundPermissionRevocations?.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 UpdateFleetPortSettingsRequest
if (fleetId != other.fleetId) return false
if (inboundPermissionAuthorizations != other.inboundPermissionAuthorizations) return false
if (inboundPermissionRevocations != other.inboundPermissionRevocations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.gamelift.model.UpdateFleetPortSettingsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier for the fleet to update port settings for. You can use either the fleet ID or ARN value.
*/
public var fleetId: kotlin.String? = null
/**
* A collection of port settings to be added to the fleet resource.
*/
public var inboundPermissionAuthorizations: List? = null
/**
* A collection of port settings to be removed from the fleet resource.
*/
public var inboundPermissionRevocations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.gamelift.model.UpdateFleetPortSettingsRequest) : this() {
this.fleetId = x.fleetId
this.inboundPermissionAuthorizations = x.inboundPermissionAuthorizations
this.inboundPermissionRevocations = x.inboundPermissionRevocations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.gamelift.model.UpdateFleetPortSettingsRequest = UpdateFleetPortSettingsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy