commonMain.aws.sdk.kotlin.services.datapipeline.model.DescribeObjectsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datapipeline-jvm Show documentation
Show all versions of datapipeline-jvm Show documentation
The AWS SDK for Kotlin client for Data Pipeline
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datapipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains the output of DescribeObjects.
*/
public class DescribeObjectsResponse private constructor(builder: Builder) {
/**
* Indicates whether there are more results to return.
*/
public val hasMoreResults: kotlin.Boolean = builder.hasMoreResults
/**
* The starting point for the next page of results. To view the next page of results, call `DescribeObjects` again with this marker value. If the value is null, there are no more results.
*/
public val marker: kotlin.String? = builder.marker
/**
* An array of object definitions.
*/
public val pipelineObjects: List = requireNotNull(builder.pipelineObjects) { "A non-null value must be provided for pipelineObjects" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datapipeline.model.DescribeObjectsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeObjectsResponse(")
append("hasMoreResults=$hasMoreResults,")
append("marker=$marker,")
append("pipelineObjects=$pipelineObjects")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = hasMoreResults.hashCode()
result = 31 * result + (marker?.hashCode() ?: 0)
result = 31 * result + (pipelineObjects.hashCode())
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 DescribeObjectsResponse
if (hasMoreResults != other.hasMoreResults) return false
if (marker != other.marker) return false
if (pipelineObjects != other.pipelineObjects) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datapipeline.model.DescribeObjectsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates whether there are more results to return.
*/
public var hasMoreResults: kotlin.Boolean = false
/**
* The starting point for the next page of results. To view the next page of results, call `DescribeObjects` again with this marker value. If the value is null, there are no more results.
*/
public var marker: kotlin.String? = null
/**
* An array of object definitions.
*/
public var pipelineObjects: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.DescribeObjectsResponse) : this() {
this.hasMoreResults = x.hasMoreResults
this.marker = x.marker
this.pipelineObjects = x.pipelineObjects
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datapipeline.model.DescribeObjectsResponse = DescribeObjectsResponse(this)
internal fun correctErrors(): Builder {
if (pipelineObjects == null) pipelineObjects = emptyList()
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy