commonMain.aws.sdk.kotlin.services.datazone.model.GetEnvironmentResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.time.Instant
public class GetEnvironmentResponse private constructor(builder: Builder) {
/**
* The ID of the Amazon Web Services account where the environment exists.
*/
public val awsAccountId: kotlin.String? = builder.awsAccountId
/**
* The Amazon Web Services region where the environment exists.
*/
public val awsAccountRegion: kotlin.String? = builder.awsAccountRegion
/**
* The timestamp of when the environment was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The Amazon DataZone user who created the environment.
*/
public val createdBy: kotlin.String = requireNotNull(builder.createdBy) { "A non-null value must be provided for createdBy" }
/**
* The deployment properties of the environment.
*/
public val deploymentProperties: aws.sdk.kotlin.services.datazone.model.DeploymentProperties? = builder.deploymentProperties
/**
* The description of the environment.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the Amazon DataZone domain where the environment exists.
*/
public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
/**
* The actions of the environment.
*/
public val environmentActions: List? = builder.environmentActions
/**
* The blueprint with which the environment is created.
*/
public val environmentBlueprintId: kotlin.String? = builder.environmentBlueprintId
/**
* The ID of the environment profile with which the environment is created.
*/
public val environmentProfileId: kotlin.String = requireNotNull(builder.environmentProfileId) { "A non-null value must be provided for environmentProfileId" }
/**
* The business glossary terms that can be used in this environment.
*/
public val glossaryTerms: List? = builder.glossaryTerms
/**
* The ID of the environment.
*/
public val id: kotlin.String? = builder.id
/**
* The details of the last deployment of the environment.
*/
public val lastDeployment: aws.sdk.kotlin.services.datazone.model.Deployment? = builder.lastDeployment
/**
* The name of the environment.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The ID of the Amazon DataZone project in which this environment is created.
*/
public val projectId: kotlin.String = requireNotNull(builder.projectId) { "A non-null value must be provided for projectId" }
/**
* The provider of this Amazon DataZone environment.
*/
public val provider: kotlin.String = requireNotNull(builder.provider) { "A non-null value must be provided for provider" }
/**
* The provisioned resources of this Amazon DataZone environment.
*/
public val provisionedResources: List? = builder.provisionedResources
/**
* The provisioning properties of this Amazon DataZone environment.
*/
public val provisioningProperties: aws.sdk.kotlin.services.datazone.model.ProvisioningProperties? = builder.provisioningProperties
/**
* The status of this Amazon DataZone environment.
*/
public val status: aws.sdk.kotlin.services.datazone.model.EnvironmentStatus? = builder.status
/**
* The timestamp of when this environment was updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
/**
* The user parameters of this Amazon DataZone environment.
*/
public val userParameters: List? = builder.userParameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.GetEnvironmentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetEnvironmentResponse(")
append("awsAccountId=$awsAccountId,")
append("awsAccountRegion=$awsAccountRegion,")
append("createdAt=$createdAt,")
append("createdBy=$createdBy,")
append("deploymentProperties=$deploymentProperties,")
append("description=*** Sensitive Data Redacted ***,")
append("domainId=$domainId,")
append("environmentActions=$environmentActions,")
append("environmentBlueprintId=$environmentBlueprintId,")
append("environmentProfileId=$environmentProfileId,")
append("glossaryTerms=$glossaryTerms,")
append("id=$id,")
append("lastDeployment=$lastDeployment,")
append("name=*** Sensitive Data Redacted ***,")
append("projectId=$projectId,")
append("provider=$provider,")
append("provisionedResources=$provisionedResources,")
append("provisioningProperties=$provisioningProperties,")
append("status=$status,")
append("updatedAt=$updatedAt,")
append("userParameters=$userParameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = awsAccountId?.hashCode() ?: 0
result = 31 * result + (awsAccountRegion?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (createdBy.hashCode())
result = 31 * result + (deploymentProperties?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (domainId.hashCode())
result = 31 * result + (environmentActions?.hashCode() ?: 0)
result = 31 * result + (environmentBlueprintId?.hashCode() ?: 0)
result = 31 * result + (environmentProfileId.hashCode())
result = 31 * result + (glossaryTerms?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (lastDeployment?.hashCode() ?: 0)
result = 31 * result + (name.hashCode())
result = 31 * result + (projectId.hashCode())
result = 31 * result + (provider.hashCode())
result = 31 * result + (provisionedResources?.hashCode() ?: 0)
result = 31 * result + (provisioningProperties?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.hashCode() ?: 0)
result = 31 * result + (userParameters?.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 GetEnvironmentResponse
if (awsAccountId != other.awsAccountId) return false
if (awsAccountRegion != other.awsAccountRegion) return false
if (createdAt != other.createdAt) return false
if (createdBy != other.createdBy) return false
if (deploymentProperties != other.deploymentProperties) return false
if (description != other.description) return false
if (domainId != other.domainId) return false
if (environmentActions != other.environmentActions) return false
if (environmentBlueprintId != other.environmentBlueprintId) return false
if (environmentProfileId != other.environmentProfileId) return false
if (glossaryTerms != other.glossaryTerms) return false
if (id != other.id) return false
if (lastDeployment != other.lastDeployment) return false
if (name != other.name) return false
if (projectId != other.projectId) return false
if (provider != other.provider) return false
if (provisionedResources != other.provisionedResources) return false
if (provisioningProperties != other.provisioningProperties) return false
if (status != other.status) return false
if (updatedAt != other.updatedAt) return false
if (userParameters != other.userParameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.GetEnvironmentResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the Amazon Web Services account where the environment exists.
*/
public var awsAccountId: kotlin.String? = null
/**
* The Amazon Web Services region where the environment exists.
*/
public var awsAccountRegion: kotlin.String? = null
/**
* The timestamp of when the environment was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon DataZone user who created the environment.
*/
public var createdBy: kotlin.String? = null
/**
* The deployment properties of the environment.
*/
public var deploymentProperties: aws.sdk.kotlin.services.datazone.model.DeploymentProperties? = null
/**
* The description of the environment.
*/
public var description: kotlin.String? = null
/**
* The ID of the Amazon DataZone domain where the environment exists.
*/
public var domainId: kotlin.String? = null
/**
* The actions of the environment.
*/
public var environmentActions: List? = null
/**
* The blueprint with which the environment is created.
*/
public var environmentBlueprintId: kotlin.String? = null
/**
* The ID of the environment profile with which the environment is created.
*/
public var environmentProfileId: kotlin.String? = null
/**
* The business glossary terms that can be used in this environment.
*/
public var glossaryTerms: List? = null
/**
* The ID of the environment.
*/
public var id: kotlin.String? = null
/**
* The details of the last deployment of the environment.
*/
public var lastDeployment: aws.sdk.kotlin.services.datazone.model.Deployment? = null
/**
* The name of the environment.
*/
public var name: kotlin.String? = null
/**
* The ID of the Amazon DataZone project in which this environment is created.
*/
public var projectId: kotlin.String? = null
/**
* The provider of this Amazon DataZone environment.
*/
public var provider: kotlin.String? = null
/**
* The provisioned resources of this Amazon DataZone environment.
*/
public var provisionedResources: List? = null
/**
* The provisioning properties of this Amazon DataZone environment.
*/
public var provisioningProperties: aws.sdk.kotlin.services.datazone.model.ProvisioningProperties? = null
/**
* The status of this Amazon DataZone environment.
*/
public var status: aws.sdk.kotlin.services.datazone.model.EnvironmentStatus? = null
/**
* The timestamp of when this environment was updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The user parameters of this Amazon DataZone environment.
*/
public var userParameters: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.GetEnvironmentResponse) : this() {
this.awsAccountId = x.awsAccountId
this.awsAccountRegion = x.awsAccountRegion
this.createdAt = x.createdAt
this.createdBy = x.createdBy
this.deploymentProperties = x.deploymentProperties
this.description = x.description
this.domainId = x.domainId
this.environmentActions = x.environmentActions
this.environmentBlueprintId = x.environmentBlueprintId
this.environmentProfileId = x.environmentProfileId
this.glossaryTerms = x.glossaryTerms
this.id = x.id
this.lastDeployment = x.lastDeployment
this.name = x.name
this.projectId = x.projectId
this.provider = x.provider
this.provisionedResources = x.provisionedResources
this.provisioningProperties = x.provisioningProperties
this.status = x.status
this.updatedAt = x.updatedAt
this.userParameters = x.userParameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.GetEnvironmentResponse = GetEnvironmentResponse(this)
/**
* construct an [aws.sdk.kotlin.services.datazone.model.DeploymentProperties] inside the given [block]
*/
public fun deploymentProperties(block: aws.sdk.kotlin.services.datazone.model.DeploymentProperties.Builder.() -> kotlin.Unit) {
this.deploymentProperties = aws.sdk.kotlin.services.datazone.model.DeploymentProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.datazone.model.Deployment] inside the given [block]
*/
public fun lastDeployment(block: aws.sdk.kotlin.services.datazone.model.Deployment.Builder.() -> kotlin.Unit) {
this.lastDeployment = aws.sdk.kotlin.services.datazone.model.Deployment.invoke(block)
}
internal fun correctErrors(): Builder {
if (createdBy == null) createdBy = ""
if (domainId == null) domainId = ""
if (environmentProfileId == null) environmentProfileId = ""
if (name == null) name = ""
if (projectId == null) projectId = ""
if (provider == null) provider = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy