commonMain.aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourcesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datasync.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeStorageSystemResourcesRequest private constructor(builder: Builder) {
/**
* Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your on-premises storage system.
*/
public val discoveryJobArn: kotlin.String? = builder.discoveryJobArn
/**
* Filters the storage system resources that you want returned. For example, this might be volumes associated with a specific storage virtual machine (SVM).
*/
public val filter: Map>? = builder.filter
/**
* Specifies the maximum number of storage system resources that you want to list in a response.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* Specifies an opaque string that indicates the position to begin the next list of results in the response.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* Specifies the universally unique identifiers (UUIDs) of the storage system resources that you want information about. You can't use this parameter in combination with the `Filter` parameter.
*/
public val resourceIds: List? = builder.resourceIds
/**
* Specifies what kind of storage system resources that you want information about.
*/
public val resourceType: aws.sdk.kotlin.services.datasync.model.DiscoveryResourceType? = builder.resourceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourcesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeStorageSystemResourcesRequest(")
append("discoveryJobArn=$discoveryJobArn,")
append("filter=$filter,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("resourceIds=$resourceIds,")
append("resourceType=$resourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = discoveryJobArn?.hashCode() ?: 0
result = 31 * result + (filter?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (resourceIds?.hashCode() ?: 0)
result = 31 * result + (resourceType?.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 DescribeStorageSystemResourcesRequest
if (discoveryJobArn != other.discoveryJobArn) return false
if (filter != other.filter) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (resourceIds != other.resourceIds) return false
if (resourceType != other.resourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourcesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your on-premises storage system.
*/
public var discoveryJobArn: kotlin.String? = null
/**
* Filters the storage system resources that you want returned. For example, this might be volumes associated with a specific storage virtual machine (SVM).
*/
public var filter: Map>? = null
/**
* Specifies the maximum number of storage system resources that you want to list in a response.
*/
public var maxResults: kotlin.Int? = null
/**
* Specifies an opaque string that indicates the position to begin the next list of results in the response.
*/
public var nextToken: kotlin.String? = null
/**
* Specifies the universally unique identifiers (UUIDs) of the storage system resources that you want information about. You can't use this parameter in combination with the `Filter` parameter.
*/
public var resourceIds: List? = null
/**
* Specifies what kind of storage system resources that you want information about.
*/
public var resourceType: aws.sdk.kotlin.services.datasync.model.DiscoveryResourceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourcesRequest) : this() {
this.discoveryJobArn = x.discoveryJobArn
this.filter = x.filter
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.resourceIds = x.resourceIds
this.resourceType = x.resourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourcesRequest = DescribeStorageSystemResourcesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy