
commonMain.aws.sdk.kotlin.services.s3control.model.S3GeneratedManifestDescriptor.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* Describes the specified job's generated manifest. Batch Operations jobs created with a ManifestGenerator populate details of this descriptor after execution of the ManifestGenerator.
*/
public class S3GeneratedManifestDescriptor private constructor(builder: Builder) {
/**
* The format of the generated manifest.
*/
public val format: aws.sdk.kotlin.services.s3control.model.GeneratedManifestFormat? = builder.format
/**
* Contains the information required to locate a manifest object. Manifests can't be imported from directory buckets. For more information, see [Directory buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html).
*/
public val location: aws.sdk.kotlin.services.s3control.model.JobManifestLocation? = builder.location
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.S3GeneratedManifestDescriptor = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3GeneratedManifestDescriptor(")
append("format=$format,")
append("location=$location")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = format?.hashCode() ?: 0
result = 31 * result + (location?.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 S3GeneratedManifestDescriptor
if (format != other.format) return false
if (location != other.location) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.S3GeneratedManifestDescriptor = Builder(this).apply(block).build()
public class Builder {
/**
* The format of the generated manifest.
*/
public var format: aws.sdk.kotlin.services.s3control.model.GeneratedManifestFormat? = null
/**
* Contains the information required to locate a manifest object. Manifests can't be imported from directory buckets. For more information, see [Directory buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html).
*/
public var location: aws.sdk.kotlin.services.s3control.model.JobManifestLocation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.S3GeneratedManifestDescriptor) : this() {
this.format = x.format
this.location = x.location
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.S3GeneratedManifestDescriptor = S3GeneratedManifestDescriptor(this)
/**
* construct an [aws.sdk.kotlin.services.s3control.model.JobManifestLocation] inside the given [block]
*/
public fun location(block: aws.sdk.kotlin.services.s3control.model.JobManifestLocation.Builder.() -> kotlin.Unit) {
this.location = aws.sdk.kotlin.services.s3control.model.JobManifestLocation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy