
commonMain.aws.sdk.kotlin.services.pipes.model.S3LogDestinationParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
/**
* The Amazon S3 logging configuration settings for the pipe.
*/
public class S3LogDestinationParameters private constructor(builder: Builder) {
/**
* Specifies the name of the Amazon S3 bucket to which EventBridge delivers the log records for the pipe.
*/
public val bucketName: kotlin.String = requireNotNull(builder.bucketName) { "A non-null value must be provided for bucketName" }
/**
* Specifies 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 = requireNotNull(builder.bucketOwner) { "A non-null value must be provided for bucketOwner" }
/**
* How EventBridge should format 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
/**
* Specifies any prefix text with which to begin Amazon S3 log object names.
*
* You can use prefixes to organize the data that you store in Amazon S3 buckets. A prefix is a string of characters at the beginning of the object key name. A prefix can be any length, subject to the maximum length of the object key name (1,024 bytes). 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.S3LogDestinationParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3LogDestinationParameters(")
append("bucketName=$bucketName,")
append("bucketOwner=$bucketOwner,")
append("outputFormat=$outputFormat,")
append("prefix=$prefix")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucketName.hashCode()
result = 31 * result + (bucketOwner.hashCode())
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 S3LogDestinationParameters
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.S3LogDestinationParameters = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies the name of the Amazon S3 bucket to which EventBridge delivers the log records for the pipe.
*/
public var bucketName: kotlin.String? = null
/**
* Specifies 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
/**
* How EventBridge should format 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
/**
* Specifies any prefix text with which to begin Amazon S3 log object names.
*
* You can use prefixes to organize the data that you store in Amazon S3 buckets. A prefix is a string of characters at the beginning of the object key name. A prefix can be any length, subject to the maximum length of the object key name (1,024 bytes). 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.S3LogDestinationParameters) : 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.S3LogDestinationParameters = S3LogDestinationParameters(this)
internal fun correctErrors(): Builder {
if (bucketName == null) bucketName = ""
if (bucketOwner == null) bucketOwner = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy