
commonMain.aws.sdk.kotlin.services.route53resolver.model.ImportFirewallDomainsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53resolver.model
public class ImportFirewallDomainsRequest private constructor(builder: Builder) {
/**
* The fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.
*
* The file must be in an S3 bucket that's in the same Region as your DNS Firewall. The file must be a text file and must contain a single domain per line.
*/
public val domainFileUrl: kotlin.String? = builder.domainFileUrl
/**
* The ID of the domain list that you want to modify with the import operation.
*/
public val firewallDomainListId: kotlin.String? = builder.firewallDomainListId
/**
* What you want DNS Firewall to do with the domains that are listed in the file. This must be set to `REPLACE`, which updates the domain list to exactly match the list in the file.
*/
public val operation: aws.sdk.kotlin.services.route53resolver.model.FirewallDomainImportOperation? = builder.operation
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53resolver.model.ImportFirewallDomainsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImportFirewallDomainsRequest(")
append("domainFileUrl=$domainFileUrl,")
append("firewallDomainListId=$firewallDomainListId,")
append("operation=$operation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainFileUrl?.hashCode() ?: 0
result = 31 * result + (firewallDomainListId?.hashCode() ?: 0)
result = 31 * result + (operation?.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 ImportFirewallDomainsRequest
if (domainFileUrl != other.domainFileUrl) return false
if (firewallDomainListId != other.firewallDomainListId) return false
if (operation != other.operation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53resolver.model.ImportFirewallDomainsRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.
*
* The file must be in an S3 bucket that's in the same Region as your DNS Firewall. The file must be a text file and must contain a single domain per line.
*/
public var domainFileUrl: kotlin.String? = null
/**
* The ID of the domain list that you want to modify with the import operation.
*/
public var firewallDomainListId: kotlin.String? = null
/**
* What you want DNS Firewall to do with the domains that are listed in the file. This must be set to `REPLACE`, which updates the domain list to exactly match the list in the file.
*/
public var operation: aws.sdk.kotlin.services.route53resolver.model.FirewallDomainImportOperation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53resolver.model.ImportFirewallDomainsRequest) : this() {
this.domainFileUrl = x.domainFileUrl
this.firewallDomainListId = x.firewallDomainListId
this.operation = x.operation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53resolver.model.ImportFirewallDomainsRequest = ImportFirewallDomainsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy