
commonMain.aws.sdk.kotlin.services.guardduty.model.GetThreatIntelSetResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.guardduty.model
class GetThreatIntelSetResponse private constructor(builder: Builder) {
/**
* The format of the threatIntelSet.
*/
val format: aws.sdk.kotlin.services.guardduty.model.ThreatIntelSetFormat? = builder.format
/**
* The URI of the file that contains the ThreatIntelSet.
*/
val location: kotlin.String? = builder.location
/**
* A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
*/
val name: kotlin.String? = builder.name
/**
* The status of threatIntelSet file uploaded.
*/
val status: aws.sdk.kotlin.services.guardduty.model.ThreatIntelSetStatus? = builder.status
/**
* The tags of the threat list resource.
*/
val tags: Map? = builder.tags
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.guardduty.model.GetThreatIntelSetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetThreatIntelSetResponse(")
append("format=$format,")
append("location=$location,")
append("name=$name,")
append("status=$status,")
append("tags=$tags)")
}
override fun hashCode(): kotlin.Int {
var result = format?.hashCode() ?: 0
result = 31 * result + (location?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (tags?.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 GetThreatIntelSetResponse
if (format != other.format) return false
if (location != other.location) return false
if (name != other.name) return false
if (status != other.status) return false
if (tags != other.tags) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.guardduty.model.GetThreatIntelSetResponse = Builder(this).apply(block).build()
class Builder {
/**
* The format of the threatIntelSet.
*/
var format: aws.sdk.kotlin.services.guardduty.model.ThreatIntelSetFormat? = null
/**
* The URI of the file that contains the ThreatIntelSet.
*/
var location: kotlin.String? = null
/**
* A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
*/
var name: kotlin.String? = null
/**
* The status of threatIntelSet file uploaded.
*/
var status: aws.sdk.kotlin.services.guardduty.model.ThreatIntelSetStatus? = null
/**
* The tags of the threat list resource.
*/
var tags: Map? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.guardduty.model.GetThreatIntelSetResponse) : this() {
this.format = x.format
this.location = x.location
this.name = x.name
this.status = x.status
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.guardduty.model.GetThreatIntelSetResponse = GetThreatIntelSetResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy