
commonMain.aws.sdk.kotlin.services.lightsail.model.GetOperationsForResourceResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class GetOperationsForResourceResponse private constructor(builder: Builder) {
/**
* (Deprecated) Returns the number of pages of results that remain.
*
* In releases prior to June 12, 2017, this parameter returned `null` by the API. It is now deprecated, and the API returns the `next page token` parameter instead.
*/
@Deprecated("No longer recommended for use. See AWS API documentation for more details.")
public val nextPageCount: kotlin.String? = builder.nextPageCount
/**
* The token to advance to the next page of results from your request.
*
* A next page token is not returned if there are no more results to display.
*
* To get the next page of results, perform another `GetOperationsForResource` request and specify the next page token using the `pageToken` parameter.
*/
public val nextPageToken: kotlin.String? = builder.nextPageToken
/**
* An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
*/
public val operations: List? = builder.operations
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.GetOperationsForResourceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetOperationsForResourceResponse(")
append("nextPageCount=$nextPageCount,")
append("nextPageToken=$nextPageToken,")
append("operations=$operations)")
}
override fun hashCode(): kotlin.Int {
var result = nextPageCount?.hashCode() ?: 0
result = 31 * result + (nextPageToken?.hashCode() ?: 0)
result = 31 * result + (operations?.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 GetOperationsForResourceResponse
if (nextPageCount != other.nextPageCount) return false
if (nextPageToken != other.nextPageToken) return false
if (operations != other.operations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetOperationsForResourceResponse = Builder(this).apply(block).build()
public class Builder {
/**
* (Deprecated) Returns the number of pages of results that remain.
*
* In releases prior to June 12, 2017, this parameter returned `null` by the API. It is now deprecated, and the API returns the `next page token` parameter instead.
*/
@Deprecated("No longer recommended for use. See AWS API documentation for more details.")
public var nextPageCount: kotlin.String? = null
/**
* The token to advance to the next page of results from your request.
*
* A next page token is not returned if there are no more results to display.
*
* To get the next page of results, perform another `GetOperationsForResource` request and specify the next page token using the `pageToken` parameter.
*/
public var nextPageToken: kotlin.String? = null
/**
* An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
*/
public var operations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetOperationsForResourceResponse) : this() {
this.nextPageCount = x.nextPageCount
this.nextPageToken = x.nextPageToken
this.operations = x.operations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetOperationsForResourceResponse = GetOperationsForResourceResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy