
commonMain.aws.sdk.kotlin.services.s3control.model.S3ObjectMetadata.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
import aws.smithy.kotlin.runtime.time.Instant
/**
*
*/
public class S3ObjectMetadata private constructor(builder: Builder) {
/**
*
*/
public val cacheControl: kotlin.String? = builder.cacheControl
/**
*
*/
public val contentDisposition: kotlin.String? = builder.contentDisposition
/**
*
*/
public val contentEncoding: kotlin.String? = builder.contentEncoding
/**
*
*/
public val contentLanguage: kotlin.String? = builder.contentLanguage
/**
* *This member has been deprecated.*
*/
public val contentLength: kotlin.Long? = builder.contentLength
/**
* *This member has been deprecated.*
*/
public val contentMd5: kotlin.String? = builder.contentMd5
/**
*
*/
public val contentType: kotlin.String? = builder.contentType
/**
*
*/
public val httpExpiresDate: aws.smithy.kotlin.runtime.time.Instant? = builder.httpExpiresDate
/**
* *This member has been deprecated.*
*/
public val requesterCharged: kotlin.Boolean = builder.requesterCharged
/**
* For directory buckets, only the server-side encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) is supported.
*/
public val sseAlgorithm: aws.sdk.kotlin.services.s3control.model.S3SseAlgorithm? = builder.sseAlgorithm
/**
*
*/
public val userMetadata: Map? = builder.userMetadata
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.S3ObjectMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3ObjectMetadata(")
append("cacheControl=$cacheControl,")
append("contentDisposition=$contentDisposition,")
append("contentEncoding=$contentEncoding,")
append("contentLanguage=$contentLanguage,")
append("contentLength=$contentLength,")
append("contentMd5=$contentMd5,")
append("contentType=$contentType,")
append("httpExpiresDate=$httpExpiresDate,")
append("requesterCharged=$requesterCharged,")
append("sseAlgorithm=$sseAlgorithm,")
append("userMetadata=$userMetadata")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cacheControl?.hashCode() ?: 0
result = 31 * result + (contentDisposition?.hashCode() ?: 0)
result = 31 * result + (contentEncoding?.hashCode() ?: 0)
result = 31 * result + (contentLanguage?.hashCode() ?: 0)
result = 31 * result + (contentLength?.hashCode() ?: 0)
result = 31 * result + (contentMd5?.hashCode() ?: 0)
result = 31 * result + (contentType?.hashCode() ?: 0)
result = 31 * result + (httpExpiresDate?.hashCode() ?: 0)
result = 31 * result + (requesterCharged.hashCode())
result = 31 * result + (sseAlgorithm?.hashCode() ?: 0)
result = 31 * result + (userMetadata?.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 S3ObjectMetadata
if (cacheControl != other.cacheControl) return false
if (contentDisposition != other.contentDisposition) return false
if (contentEncoding != other.contentEncoding) return false
if (contentLanguage != other.contentLanguage) return false
if (contentLength != other.contentLength) return false
if (contentMd5 != other.contentMd5) return false
if (contentType != other.contentType) return false
if (httpExpiresDate != other.httpExpiresDate) return false
if (requesterCharged != other.requesterCharged) return false
if (sseAlgorithm != other.sseAlgorithm) return false
if (userMetadata != other.userMetadata) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.S3ObjectMetadata = Builder(this).apply(block).build()
public class Builder {
/**
*
*/
public var cacheControl: kotlin.String? = null
/**
*
*/
public var contentDisposition: kotlin.String? = null
/**
*
*/
public var contentEncoding: kotlin.String? = null
/**
*
*/
public var contentLanguage: kotlin.String? = null
/**
* *This member has been deprecated.*
*/
public var contentLength: kotlin.Long? = null
/**
* *This member has been deprecated.*
*/
public var contentMd5: kotlin.String? = null
/**
*
*/
public var contentType: kotlin.String? = null
/**
*
*/
public var httpExpiresDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* *This member has been deprecated.*
*/
public var requesterCharged: kotlin.Boolean = false
/**
* For directory buckets, only the server-side encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) is supported.
*/
public var sseAlgorithm: aws.sdk.kotlin.services.s3control.model.S3SseAlgorithm? = null
/**
*
*/
public var userMetadata: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.S3ObjectMetadata) : this() {
this.cacheControl = x.cacheControl
this.contentDisposition = x.contentDisposition
this.contentEncoding = x.contentEncoding
this.contentLanguage = x.contentLanguage
this.contentLength = x.contentLength
this.contentMd5 = x.contentMd5
this.contentType = x.contentType
this.httpExpiresDate = x.httpExpiresDate
this.requesterCharged = x.requesterCharged
this.sseAlgorithm = x.sseAlgorithm
this.userMetadata = x.userMetadata
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.S3ObjectMetadata = S3ObjectMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy