commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.RetrieveEnvironmentInfoRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticbeanstalk-jvm Show documentation
Show all versions of elasticbeanstalk-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Beanstalk
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticbeanstalk.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Request to download logs retrieved with RequestEnvironmentInfo.
*/
public class RetrieveEnvironmentInfoRequest private constructor(builder: Builder) {
/**
* The ID of the data's environment.
*
* If no such environment is found, returns an `InvalidParameterValue` error.
*
* Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns `MissingRequiredParameter` error.
*/
public val environmentId: kotlin.String? = builder.environmentId
/**
* The name of the data's environment.
*
* If no such environment is found, returns an `InvalidParameterValue` error.
*
* Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns `MissingRequiredParameter` error.
*/
public val environmentName: kotlin.String? = builder.environmentName
/**
* The type of information to retrieve.
*/
public val infoType: aws.sdk.kotlin.services.elasticbeanstalk.model.EnvironmentInfoType? = builder.infoType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.RetrieveEnvironmentInfoRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RetrieveEnvironmentInfoRequest(")
append("environmentId=$environmentId,")
append("environmentName=$environmentName,")
append("infoType=$infoType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = environmentId?.hashCode() ?: 0
result = 31 * result + (environmentName?.hashCode() ?: 0)
result = 31 * result + (infoType?.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 RetrieveEnvironmentInfoRequest
if (environmentId != other.environmentId) return false
if (environmentName != other.environmentName) return false
if (infoType != other.infoType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.RetrieveEnvironmentInfoRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the data's environment.
*
* If no such environment is found, returns an `InvalidParameterValue` error.
*
* Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns `MissingRequiredParameter` error.
*/
public var environmentId: kotlin.String? = null
/**
* The name of the data's environment.
*
* If no such environment is found, returns an `InvalidParameterValue` error.
*
* Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns `MissingRequiredParameter` error.
*/
public var environmentName: kotlin.String? = null
/**
* The type of information to retrieve.
*/
public var infoType: aws.sdk.kotlin.services.elasticbeanstalk.model.EnvironmentInfoType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.RetrieveEnvironmentInfoRequest) : this() {
this.environmentId = x.environmentId
this.environmentName = x.environmentName
this.infoType = x.infoType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.RetrieveEnvironmentInfoRequest = RetrieveEnvironmentInfoRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}