commonMain.aws.sdk.kotlin.services.wafv2.model.CreateRegexPatternSetRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wafv2-jvm Show documentation
Show all versions of wafv2-jvm Show documentation
The AWS Kotlin client for WAFV2
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wafv2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateRegexPatternSetRequest private constructor(builder: Builder) {
/**
* A description of the set that helps with identification.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the set. You cannot change the name after you create the set.
*/
public val name: kotlin.String? = builder.name
/**
* Array of regular expression strings.
*/
public val regularExpressionList: List? = builder.regularExpressionList
/**
* Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
*
* To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
* + CLI - Specify the Region when you use the CloudFront scope: `--scope=CLOUDFRONT --region=us-east-1`.
* + API and SDKs - For all calls, use the Region endpoint us-east-1.
*/
public val scope: aws.sdk.kotlin.services.wafv2.model.Scope? = builder.scope
/**
* An array of key:value pairs to associate with the resource.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wafv2.model.CreateRegexPatternSetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateRegexPatternSetRequest(")
append("description=$description,")
append("name=$name,")
append("regularExpressionList=$regularExpressionList,")
append("scope=$scope,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (regularExpressionList?.hashCode() ?: 0)
result = 31 * result + (scope?.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 CreateRegexPatternSetRequest
if (description != other.description) return false
if (name != other.name) return false
if (regularExpressionList != other.regularExpressionList) return false
if (scope != other.scope) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wafv2.model.CreateRegexPatternSetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description of the set that helps with identification.
*/
public var description: kotlin.String? = null
/**
* The name of the set. You cannot change the name after you create the set.
*/
public var name: kotlin.String? = null
/**
* Array of regular expression strings.
*/
public var regularExpressionList: List? = null
/**
* Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
*
* To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
* + CLI - Specify the Region when you use the CloudFront scope: `--scope=CLOUDFRONT --region=us-east-1`.
* + API and SDKs - For all calls, use the Region endpoint us-east-1.
*/
public var scope: aws.sdk.kotlin.services.wafv2.model.Scope? = null
/**
* An array of key:value pairs to associate with the resource.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wafv2.model.CreateRegexPatternSetRequest) : this() {
this.description = x.description
this.name = x.name
this.regularExpressionList = x.regularExpressionList
this.scope = x.scope
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wafv2.model.CreateRegexPatternSetRequest = CreateRegexPatternSetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy