
commonMain.aws.sdk.kotlin.services.sms.model.SsmValidationParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sms.model
/**
* Contains validation parameters.
*/
public class SsmValidationParameters private constructor(builder: Builder) {
/**
* The command to run the validation script.
*/
public val command: kotlin.String? = builder.command
/**
* The timeout interval, in seconds.
*/
public val executionTimeoutSeconds: kotlin.Int = builder.executionTimeoutSeconds
/**
* The ID of the instance. The instance must have the following tag: UserForSMSApplicationValidation=true.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The name of the S3 bucket for output.
*/
public val outputS3BucketName: kotlin.String? = builder.outputS3BucketName
/**
* The type of validation script.
*/
public val scriptType: aws.sdk.kotlin.services.sms.model.ScriptType? = builder.scriptType
/**
* The location of the validation script.
*/
public val source: aws.sdk.kotlin.services.sms.model.Source? = builder.source
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sms.model.SsmValidationParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SsmValidationParameters(")
append("command=$command,")
append("executionTimeoutSeconds=$executionTimeoutSeconds,")
append("instanceId=$instanceId,")
append("outputS3BucketName=$outputS3BucketName,")
append("scriptType=$scriptType,")
append("source=$source")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = command?.hashCode() ?: 0
result = 31 * result + (executionTimeoutSeconds)
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (outputS3BucketName?.hashCode() ?: 0)
result = 31 * result + (scriptType?.hashCode() ?: 0)
result = 31 * result + (source?.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 SsmValidationParameters
if (command != other.command) return false
if (executionTimeoutSeconds != other.executionTimeoutSeconds) return false
if (instanceId != other.instanceId) return false
if (outputS3BucketName != other.outputS3BucketName) return false
if (scriptType != other.scriptType) return false
if (source != other.source) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sms.model.SsmValidationParameters = Builder(this).apply(block).build()
public class Builder {
/**
* The command to run the validation script.
*/
public var command: kotlin.String? = null
/**
* The timeout interval, in seconds.
*/
public var executionTimeoutSeconds: kotlin.Int = 0
/**
* The ID of the instance. The instance must have the following tag: UserForSMSApplicationValidation=true.
*/
public var instanceId: kotlin.String? = null
/**
* The name of the S3 bucket for output.
*/
public var outputS3BucketName: kotlin.String? = null
/**
* The type of validation script.
*/
public var scriptType: aws.sdk.kotlin.services.sms.model.ScriptType? = null
/**
* The location of the validation script.
*/
public var source: aws.sdk.kotlin.services.sms.model.Source? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sms.model.SsmValidationParameters) : this() {
this.command = x.command
this.executionTimeoutSeconds = x.executionTimeoutSeconds
this.instanceId = x.instanceId
this.outputS3BucketName = x.outputS3BucketName
this.scriptType = x.scriptType
this.source = x.source
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sms.model.SsmValidationParameters = SsmValidationParameters(this)
/**
* construct an [aws.sdk.kotlin.services.sms.model.Source] inside the given [block]
*/
public fun source(block: aws.sdk.kotlin.services.sms.model.Source.Builder.() -> kotlin.Unit) {
this.source = aws.sdk.kotlin.services.sms.model.Source.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy