commonMain.aws.sdk.kotlin.services.proton.model.CreateEnvironmentTemplateRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proton-jvm Show documentation
Show all versions of proton-jvm Show documentation
The AWS SDK for Kotlin client for Proton
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
public class CreateEnvironmentTemplateRequest private constructor(builder: Builder) {
/**
* A description of the environment template.
*/
public val description: kotlin.String? = builder.description
/**
* The environment template name as displayed in the developer interface.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* A customer provided encryption key that Proton uses to encrypt data.
*/
public val encryptionKey: kotlin.String? = builder.encryptionKey
/**
* The name of the environment template.
*/
public val name: kotlin.String? = builder.name
/**
* When included, indicates that the environment template is for customer provisioned and managed infrastructure.
*/
public val provisioning: aws.sdk.kotlin.services.proton.model.Provisioning? = builder.provisioning
/**
* An optional list of metadata items that you can associate with the Proton environment template. A tag is a key-value pair.
*
* For more information, see [Proton resources and tagging](https://docs.aws.amazon.com/proton/latest/userguide/resources.html) in the *Proton User Guide*.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.proton.model.CreateEnvironmentTemplateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateEnvironmentTemplateRequest(")
append("description=*** Sensitive Data Redacted ***,")
append("displayName=*** Sensitive Data Redacted ***,")
append("encryptionKey=$encryptionKey,")
append("name=$name,")
append("provisioning=$provisioning,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (encryptionKey?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (provisioning?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateEnvironmentTemplateRequest
if (description != other.description) return false
if (displayName != other.displayName) return false
if (encryptionKey != other.encryptionKey) return false
if (name != other.name) return false
if (provisioning != other.provisioning) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.CreateEnvironmentTemplateRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A description of the environment template.
*/
public var description: kotlin.String? = null
/**
* The environment template name as displayed in the developer interface.
*/
public var displayName: kotlin.String? = null
/**
* A customer provided encryption key that Proton uses to encrypt data.
*/
public var encryptionKey: kotlin.String? = null
/**
* The name of the environment template.
*/
public var name: kotlin.String? = null
/**
* When included, indicates that the environment template is for customer provisioned and managed infrastructure.
*/
public var provisioning: aws.sdk.kotlin.services.proton.model.Provisioning? = null
/**
* An optional list of metadata items that you can associate with the Proton environment template. A tag is a key-value pair.
*
* For more information, see [Proton resources and tagging](https://docs.aws.amazon.com/proton/latest/userguide/resources.html) in the *Proton User Guide*.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.CreateEnvironmentTemplateRequest) : this() {
this.description = x.description
this.displayName = x.displayName
this.encryptionKey = x.encryptionKey
this.name = x.name
this.provisioning = x.provisioning
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.CreateEnvironmentTemplateRequest = CreateEnvironmentTemplateRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy