
commonMain.aws.sdk.kotlin.services.route53resolver.model.CreateResolverQueryLogConfigRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53resolver.model
public class CreateResolverQueryLogConfigRequest private constructor(builder: Builder) {
/**
* A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. `CreatorRequestId` can be any unique string, for example, a date/time stamp.
*/
public val creatorRequestId: kotlin.String? = builder.creatorRequestId
/**
* The ARN of the resource that you want Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream. Examples of valid values include the following:
* + **S3 bucket**: `arn:aws:s3:::examplebucket`You can optionally append a file prefix to the end of the ARN.`arn:aws:s3:::examplebucket/development/`
* + **CloudWatch Logs log group**: `arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:*`
* + **Kinesis Data Firehose delivery stream**:`arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name`
*/
public val destinationArn: kotlin.String? = builder.destinationArn
/**
* The name that you want to give the query logging configuration.
*/
public val name: kotlin.String? = builder.name
/**
* A list of the tag keys and values that you want to associate with the query logging configuration.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53resolver.model.CreateResolverQueryLogConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateResolverQueryLogConfigRequest(")
append("creatorRequestId=$creatorRequestId,")
append("destinationArn=$destinationArn,")
append("name=$name,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creatorRequestId?.hashCode() ?: 0
result = 31 * result + (destinationArn?.hashCode() ?: 0)
result = 31 * result + (name?.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 CreateResolverQueryLogConfigRequest
if (creatorRequestId != other.creatorRequestId) return false
if (destinationArn != other.destinationArn) return false
if (name != other.name) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53resolver.model.CreateResolverQueryLogConfigRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. `CreatorRequestId` can be any unique string, for example, a date/time stamp.
*/
public var creatorRequestId: kotlin.String? = null
/**
* The ARN of the resource that you want Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream. Examples of valid values include the following:
* + **S3 bucket**: `arn:aws:s3:::examplebucket`You can optionally append a file prefix to the end of the ARN.`arn:aws:s3:::examplebucket/development/`
* + **CloudWatch Logs log group**: `arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:*`
* + **Kinesis Data Firehose delivery stream**:`arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name`
*/
public var destinationArn: kotlin.String? = null
/**
* The name that you want to give the query logging configuration.
*/
public var name: kotlin.String? = null
/**
* A list of the tag keys and values that you want to associate with the query logging configuration.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53resolver.model.CreateResolverQueryLogConfigRequest) : this() {
this.creatorRequestId = x.creatorRequestId
this.destinationArn = x.destinationArn
this.name = x.name
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53resolver.model.CreateResolverQueryLogConfigRequest = CreateResolverQueryLogConfigRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy