commonMain.aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourceMetricsRequest.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
import aws.smithy.kotlin.runtime.time.Instant
public class DescribeStorageSystemResourceMetricsRequest private constructor(builder: Builder) {
/**
* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises storage system.
*/
public val discoveryJobArn: kotlin.String? = builder.discoveryJobArn
/**
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a certain time frame, use this parameter with `StartTime`.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* Specifies how many results that you want in the 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 identifier (UUID) of the storage system resource that you want information about.
*/
public val resourceId: kotlin.String? = builder.resourceId
/**
* Specifies the kind of storage system resource that you want information about.
*/
public val resourceType: aws.sdk.kotlin.services.datasync.model.DiscoveryResourceType? = builder.resourceType
/**
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a certain time frame, use this parameter with `EndTime`.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourceMetricsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeStorageSystemResourceMetricsRequest(")
append("discoveryJobArn=$discoveryJobArn,")
append("endTime=$endTime,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("resourceId=$resourceId,")
append("resourceType=$resourceType,")
append("startTime=$startTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = discoveryJobArn?.hashCode() ?: 0
result = 31 * result + (endTime?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (resourceId?.hashCode() ?: 0)
result = 31 * result + (resourceType?.hashCode() ?: 0)
result = 31 * result + (startTime?.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 DescribeStorageSystemResourceMetricsRequest
if (discoveryJobArn != other.discoveryJobArn) return false
if (endTime != other.endTime) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (resourceId != other.resourceId) return false
if (resourceType != other.resourceType) return false
if (startTime != other.startTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourceMetricsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises storage system.
*/
public var discoveryJobArn: kotlin.String? = null
/**
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a certain time frame, use this parameter with `StartTime`.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Specifies how many results that you want in the 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 identifier (UUID) of the storage system resource that you want information about.
*/
public var resourceId: kotlin.String? = null
/**
* Specifies the kind of storage system resource that you want information about.
*/
public var resourceType: aws.sdk.kotlin.services.datasync.model.DiscoveryResourceType? = null
/**
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a certain time frame, use this parameter with `EndTime`.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourceMetricsRequest) : this() {
this.discoveryJobArn = x.discoveryJobArn
this.endTime = x.endTime
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.resourceId = x.resourceId
this.resourceType = x.resourceType
this.startTime = x.startTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datasync.model.DescribeStorageSystemResourceMetricsRequest = DescribeStorageSystemResourceMetricsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy