
commonMain.aws.sdk.kotlin.services.pipes.model.S3LogDestination.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The Amazon S3 logging configuration settings for the pipe.
*/
public class S3LogDestination private constructor(builder: Builder) {
/**
* The name of the Amazon S3 bucket to which EventBridge delivers the log records for the pipe.
*/
public val bucketName: kotlin.String? = builder.bucketName
/**
* The Amazon Web Services account that owns the Amazon S3 bucket to which EventBridge delivers the log records for the pipe.
*/
public val bucketOwner: kotlin.String? = builder.bucketOwner
/**
* The format EventBridge uses for the log records.
* + `json`: JSON
* + `plain`: Plain text
* + `w3c`: [W3C extended logging file format](https://www.w3.org/TR/WD-logfile)
*/
public val outputFormat: aws.sdk.kotlin.services.pipes.model.S3OutputFormat? = builder.outputFormat
/**
* The prefix text with which to begin Amazon S3 log object names.
*
* For more information, see [Organizing objects using prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) in the *Amazon Simple Storage Service User Guide*.
*/
public val prefix: kotlin.String? = builder.prefix
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.S3LogDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3LogDestination(")
append("bucketName=$bucketName,")
append("bucketOwner=$bucketOwner,")
append("outputFormat=$outputFormat,")
append("prefix=$prefix")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucketName?.hashCode() ?: 0
result = 31 * result + (bucketOwner?.hashCode() ?: 0)
result = 31 * result + (outputFormat?.hashCode() ?: 0)
result = 31 * result + (prefix?.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 S3LogDestination
if (bucketName != other.bucketName) return false
if (bucketOwner != other.bucketOwner) return false
if (outputFormat != other.outputFormat) return false
if (prefix != other.prefix) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.S3LogDestination = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the Amazon S3 bucket to which EventBridge delivers the log records for the pipe.
*/
public var bucketName: kotlin.String? = null
/**
* The Amazon Web Services account that owns the Amazon S3 bucket to which EventBridge delivers the log records for the pipe.
*/
public var bucketOwner: kotlin.String? = null
/**
* The format EventBridge uses for the log records.
* + `json`: JSON
* + `plain`: Plain text
* + `w3c`: [W3C extended logging file format](https://www.w3.org/TR/WD-logfile)
*/
public var outputFormat: aws.sdk.kotlin.services.pipes.model.S3OutputFormat? = null
/**
* The prefix text with which to begin Amazon S3 log object names.
*
* For more information, see [Organizing objects using prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) in the *Amazon Simple Storage Service User Guide*.
*/
public var prefix: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.S3LogDestination) : this() {
this.bucketName = x.bucketName
this.bucketOwner = x.bucketOwner
this.outputFormat = x.outputFormat
this.prefix = x.prefix
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.S3LogDestination = S3LogDestination(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy