commonMain.aws.sdk.kotlin.services.glacier.model.InitiateJobRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glacier-jvm Show documentation
Show all versions of glacier-jvm Show documentation
The AWS Kotlin client for Glacier
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glacier.model
/**
* Provides options for initiating an Amazon S3 Glacier job.
*/
public class InitiateJobRequest private constructor(builder: Builder) {
/**
* The `AccountId` value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '`-`' (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.
*/
public val accountId: kotlin.String? = requireNotNull(builder.accountId) { "A non-null value must be provided for accountId" }
/**
* Provides options for specifying job information.
*/
public val jobParameters: aws.sdk.kotlin.services.glacier.model.JobParameters? = builder.jobParameters
/**
* The name of the vault.
*/
public val vaultName: kotlin.String? = requireNotNull(builder.vaultName) { "A non-null value must be provided for vaultName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glacier.model.InitiateJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InitiateJobRequest(")
append("accountId=$accountId,")
append("jobParameters=$jobParameters,")
append("vaultName=$vaultName)")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (jobParameters?.hashCode() ?: 0)
result = 31 * result + (vaultName?.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 InitiateJobRequest
if (accountId != other.accountId) return false
if (jobParameters != other.jobParameters) return false
if (vaultName != other.vaultName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glacier.model.InitiateJobRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The `AccountId` value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '`-`' (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.
*/
public var accountId: kotlin.String? = null
/**
* Provides options for specifying job information.
*/
public var jobParameters: aws.sdk.kotlin.services.glacier.model.JobParameters? = null
/**
* The name of the vault.
*/
public var vaultName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glacier.model.InitiateJobRequest) : this() {
this.accountId = x.accountId
this.jobParameters = x.jobParameters
this.vaultName = x.vaultName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glacier.model.InitiateJobRequest = InitiateJobRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glacier.model.JobParameters] inside the given [block]
*/
public fun jobParameters(block: aws.sdk.kotlin.services.glacier.model.JobParameters.Builder.() -> kotlin.Unit) {
this.jobParameters = aws.sdk.kotlin.services.glacier.model.JobParameters.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy