commonMain.aws.sdk.kotlin.services.amplifybackend.model.GetBackendResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amplifybackend-jvm Show documentation
Show all versions of amplifybackend-jvm Show documentation
The AWS SDK for Kotlin client for AmplifyBackend
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.amplifybackend.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetBackendResponse private constructor(builder: Builder) {
/**
* A stringified version of the cli.json file for your Amplify project.
*/
public val amplifyFeatureFlags: kotlin.String? = builder.amplifyFeatureFlags
/**
* A stringified version of the current configs for your Amplify project.
*/
public val amplifyMetaConfig: kotlin.String? = builder.amplifyMetaConfig
/**
* The app ID.
*/
public val appId: kotlin.String? = builder.appId
/**
* The name of the app.
*/
public val appName: kotlin.String? = builder.appName
/**
* A list of backend environments in an array.
*/
public val backendEnvironmentList: List? = builder.backendEnvironmentList
/**
* The name of the backend environment.
*/
public val backendEnvironmentName: kotlin.String? = builder.backendEnvironmentName
/**
* If the request failed, this is the returned error.
*/
public val error: kotlin.String? = builder.error
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplifybackend.model.GetBackendResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBackendResponse(")
append("amplifyFeatureFlags=$amplifyFeatureFlags,")
append("amplifyMetaConfig=$amplifyMetaConfig,")
append("appId=$appId,")
append("appName=$appName,")
append("backendEnvironmentList=$backendEnvironmentList,")
append("backendEnvironmentName=$backendEnvironmentName,")
append("error=$error")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = amplifyFeatureFlags?.hashCode() ?: 0
result = 31 * result + (amplifyMetaConfig?.hashCode() ?: 0)
result = 31 * result + (appId?.hashCode() ?: 0)
result = 31 * result + (appName?.hashCode() ?: 0)
result = 31 * result + (backendEnvironmentList?.hashCode() ?: 0)
result = 31 * result + (backendEnvironmentName?.hashCode() ?: 0)
result = 31 * result + (error?.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 GetBackendResponse
if (amplifyFeatureFlags != other.amplifyFeatureFlags) return false
if (amplifyMetaConfig != other.amplifyMetaConfig) return false
if (appId != other.appId) return false
if (appName != other.appName) return false
if (backendEnvironmentList != other.backendEnvironmentList) return false
if (backendEnvironmentName != other.backendEnvironmentName) return false
if (error != other.error) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplifybackend.model.GetBackendResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A stringified version of the cli.json file for your Amplify project.
*/
public var amplifyFeatureFlags: kotlin.String? = null
/**
* A stringified version of the current configs for your Amplify project.
*/
public var amplifyMetaConfig: kotlin.String? = null
/**
* The app ID.
*/
public var appId: kotlin.String? = null
/**
* The name of the app.
*/
public var appName: kotlin.String? = null
/**
* A list of backend environments in an array.
*/
public var backendEnvironmentList: List? = null
/**
* The name of the backend environment.
*/
public var backendEnvironmentName: kotlin.String? = null
/**
* If the request failed, this is the returned error.
*/
public var error: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplifybackend.model.GetBackendResponse) : this() {
this.amplifyFeatureFlags = x.amplifyFeatureFlags
this.amplifyMetaConfig = x.amplifyMetaConfig
this.appId = x.appId
this.appName = x.appName
this.backendEnvironmentList = x.backendEnvironmentList
this.backendEnvironmentName = x.backendEnvironmentName
this.error = x.error
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplifybackend.model.GetBackendResponse = GetBackendResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}