All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeInstancesHealthRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.31
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.elasticbeanstalk.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Parameters for a call to `DescribeInstancesHealth`.
 */
public class DescribeInstancesHealthRequest private constructor(builder: Builder) {
    /**
     * Specifies the response elements you wish to receive. To retrieve all attributes, set to `All`. If no attribute names are specified, returns a list of instances.
     */
    public val attributeNames: List? = builder.attributeNames
    /**
     * Specify the AWS Elastic Beanstalk environment by ID.
     */
    public val environmentId: kotlin.String? = builder.environmentId
    /**
     * Specify the AWS Elastic Beanstalk environment by name.
     */
    public val environmentName: kotlin.String? = builder.environmentName
    /**
     * Specify the pagination token returned by a previous call.
     */
    public val nextToken: kotlin.String? = builder.nextToken

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeInstancesHealthRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeInstancesHealthRequest(")
        append("attributeNames=$attributeNames,")
        append("environmentId=$environmentId,")
        append("environmentName=$environmentName,")
        append("nextToken=$nextToken")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = attributeNames?.hashCode() ?: 0
        result = 31 * result + (environmentId?.hashCode() ?: 0)
        result = 31 * result + (environmentName?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.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 DescribeInstancesHealthRequest

        if (attributeNames != other.attributeNames) return false
        if (environmentId != other.environmentId) return false
        if (environmentName != other.environmentName) return false
        if (nextToken != other.nextToken) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeInstancesHealthRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Specifies the response elements you wish to receive. To retrieve all attributes, set to `All`. If no attribute names are specified, returns a list of instances.
         */
        public var attributeNames: List? = null
        /**
         * Specify the AWS Elastic Beanstalk environment by ID.
         */
        public var environmentId: kotlin.String? = null
        /**
         * Specify the AWS Elastic Beanstalk environment by name.
         */
        public var environmentName: kotlin.String? = null
        /**
         * Specify the pagination token returned by a previous call.
         */
        public var nextToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeInstancesHealthRequest) : this() {
            this.attributeNames = x.attributeNames
            this.environmentId = x.environmentId
            this.environmentName = x.environmentName
            this.nextToken = x.nextToken
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.elasticbeanstalk.model.DescribeInstancesHealthRequest = DescribeInstancesHealthRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy