
commonMain.aws.sdk.kotlin.services.launchwizard.model.CreateDeploymentRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.launchwizard.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateDeploymentRequest private constructor(builder: Builder) {
/**
* The name of the deployment pattern supported by a given workload. You can use the `ListWorkloadDeploymentPatterns`[](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html) operation to discover supported values for this parameter.
*/
public val deploymentPatternName: kotlin.String? = builder.deploymentPatternName
/**
* Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
*/
public val dryRun: kotlin.Boolean? = builder.dryRun
/**
* The name of the deployment.
*/
public val name: kotlin.String? = builder.name
/**
* The settings specified for the deployment. These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see [SAP deployment specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html). To retrieve the specifications required to create a deployment for other workloads, use the `GetWorkloadDeploymentPattern`[](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) operation.
*/
public val specifications: Map? = builder.specifications
/**
* The tags to add to the deployment.
*/
public val tags: Map? = builder.tags
/**
* The name of the workload. You can use the `ListWorkloads`[](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloads.html) operation to discover supported values for this parameter.
*/
public val workloadName: kotlin.String? = builder.workloadName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.launchwizard.model.CreateDeploymentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDeploymentRequest(")
append("deploymentPatternName=$deploymentPatternName,")
append("dryRun=$dryRun,")
append("name=$name,")
append("specifications=*** Sensitive Data Redacted ***,")
append("tags=$tags,")
append("workloadName=$workloadName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deploymentPatternName?.hashCode() ?: 0
result = 31 * result + (dryRun?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (specifications?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (workloadName?.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 CreateDeploymentRequest
if (deploymentPatternName != other.deploymentPatternName) return false
if (dryRun != other.dryRun) return false
if (name != other.name) return false
if (specifications != other.specifications) return false
if (tags != other.tags) return false
if (workloadName != other.workloadName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.launchwizard.model.CreateDeploymentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the deployment pattern supported by a given workload. You can use the `ListWorkloadDeploymentPatterns`[](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html) operation to discover supported values for this parameter.
*/
public var deploymentPatternName: kotlin.String? = null
/**
* Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
*/
public var dryRun: kotlin.Boolean? = null
/**
* The name of the deployment.
*/
public var name: kotlin.String? = null
/**
* The settings specified for the deployment. These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see [SAP deployment specifications](https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html). To retrieve the specifications required to create a deployment for other workloads, use the `GetWorkloadDeploymentPattern`[](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html) operation.
*/
public var specifications: Map? = null
/**
* The tags to add to the deployment.
*/
public var tags: Map? = null
/**
* The name of the workload. You can use the `ListWorkloads`[](https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloads.html) operation to discover supported values for this parameter.
*/
public var workloadName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.launchwizard.model.CreateDeploymentRequest) : this() {
this.deploymentPatternName = x.deploymentPatternName
this.dryRun = x.dryRun
this.name = x.name
this.specifications = x.specifications
this.tags = x.tags
this.workloadName = x.workloadName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.launchwizard.model.CreateDeploymentRequest = CreateDeploymentRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy