
commonMain.aws.sdk.kotlin.services.rekognition.model.UpdateStreamProcessorRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
public class UpdateStreamProcessorRequest private constructor(builder: Builder) {
/**
* Shows whether you are sharing data with Rekognition to improve model performance. You can choose this option at the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored on individual streams.
*/
public val dataSharingPreferenceForUpdate: aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference? = builder.dataSharingPreferenceForUpdate
/**
* Name of the stream processor that you want to update.
*/
public val name: kotlin.String? = builder.name
/**
* A list of parameters you want to delete from the stream processor.
*/
public val parametersToDelete: List? = builder.parametersToDelete
/**
* Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an optional parameter for label detection stream processors.
*/
public val regionsOfInterestForUpdate: List? = builder.regionsOfInterestForUpdate
/**
* The stream processor settings that you want to update. Label detection settings can be updated to detect different labels with a different minimum confidence.
*/
public val settingsForUpdate: aws.sdk.kotlin.services.rekognition.model.StreamProcessorSettingsForUpdate? = builder.settingsForUpdate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.UpdateStreamProcessorRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateStreamProcessorRequest(")
append("dataSharingPreferenceForUpdate=$dataSharingPreferenceForUpdate,")
append("name=$name,")
append("parametersToDelete=$parametersToDelete,")
append("regionsOfInterestForUpdate=$regionsOfInterestForUpdate,")
append("settingsForUpdate=$settingsForUpdate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataSharingPreferenceForUpdate?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (parametersToDelete?.hashCode() ?: 0)
result = 31 * result + (regionsOfInterestForUpdate?.hashCode() ?: 0)
result = 31 * result + (settingsForUpdate?.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 UpdateStreamProcessorRequest
if (dataSharingPreferenceForUpdate != other.dataSharingPreferenceForUpdate) return false
if (name != other.name) return false
if (parametersToDelete != other.parametersToDelete) return false
if (regionsOfInterestForUpdate != other.regionsOfInterestForUpdate) return false
if (settingsForUpdate != other.settingsForUpdate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.UpdateStreamProcessorRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Shows whether you are sharing data with Rekognition to improve model performance. You can choose this option at the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored on individual streams.
*/
public var dataSharingPreferenceForUpdate: aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference? = null
/**
* Name of the stream processor that you want to update.
*/
public var name: kotlin.String? = null
/**
* A list of parameters you want to delete from the stream processor.
*/
public var parametersToDelete: List? = null
/**
* Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an optional parameter for label detection stream processors.
*/
public var regionsOfInterestForUpdate: List? = null
/**
* The stream processor settings that you want to update. Label detection settings can be updated to detect different labels with a different minimum confidence.
*/
public var settingsForUpdate: aws.sdk.kotlin.services.rekognition.model.StreamProcessorSettingsForUpdate? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.UpdateStreamProcessorRequest) : this() {
this.dataSharingPreferenceForUpdate = x.dataSharingPreferenceForUpdate
this.name = x.name
this.parametersToDelete = x.parametersToDelete
this.regionsOfInterestForUpdate = x.regionsOfInterestForUpdate
this.settingsForUpdate = x.settingsForUpdate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.UpdateStreamProcessorRequest = UpdateStreamProcessorRequest(this)
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference] inside the given [block]
*/
public fun dataSharingPreferenceForUpdate(block: aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference.Builder.() -> kotlin.Unit) {
this.dataSharingPreferenceForUpdate = aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.StreamProcessorSettingsForUpdate] inside the given [block]
*/
public fun settingsForUpdate(block: aws.sdk.kotlin.services.rekognition.model.StreamProcessorSettingsForUpdate.Builder.() -> kotlin.Unit) {
this.settingsForUpdate = aws.sdk.kotlin.services.rekognition.model.StreamProcessorSettingsForUpdate.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy