
commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.GetRecommendationsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeguruprofiler.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* The structure representing the GetRecommendationsResponse.
*/
public class GetRecommendationsResponse private constructor(builder: Builder) {
/**
* The list of anomalies that the analysis has found for this profile.
*/
public val anomalies: List? = builder.anomalies
/**
* The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
*/
public val profileEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.profileEndTime
/**
* The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
*/
public val profileStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.profileStartTime
/**
* The name of the profiling group the analysis data is about.
*/
public val profilingGroupName: kotlin.String? = builder.profilingGroupName
/**
* The list of recommendations that the analysis found for this profile.
*/
public val recommendations: List? = builder.recommendations
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeguruprofiler.model.GetRecommendationsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRecommendationsResponse(")
append("anomalies=$anomalies,")
append("profileEndTime=$profileEndTime,")
append("profileStartTime=$profileStartTime,")
append("profilingGroupName=$profilingGroupName,")
append("recommendations=$recommendations")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = anomalies?.hashCode() ?: 0
result = 31 * result + (profileEndTime?.hashCode() ?: 0)
result = 31 * result + (profileStartTime?.hashCode() ?: 0)
result = 31 * result + (profilingGroupName?.hashCode() ?: 0)
result = 31 * result + (recommendations?.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 GetRecommendationsResponse
if (anomalies != other.anomalies) return false
if (profileEndTime != other.profileEndTime) return false
if (profileStartTime != other.profileStartTime) return false
if (profilingGroupName != other.profilingGroupName) return false
if (recommendations != other.recommendations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeguruprofiler.model.GetRecommendationsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The list of anomalies that the analysis has found for this profile.
*/
public var anomalies: List? = null
/**
* The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
*/
public var profileEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
*/
public var profileStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the profiling group the analysis data is about.
*/
public var profilingGroupName: kotlin.String? = null
/**
* The list of recommendations that the analysis found for this profile.
*/
public var recommendations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.GetRecommendationsResponse) : this() {
this.anomalies = x.anomalies
this.profileEndTime = x.profileEndTime
this.profileStartTime = x.profileStartTime
this.profilingGroupName = x.profilingGroupName
this.recommendations = x.recommendations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeguruprofiler.model.GetRecommendationsResponse = GetRecommendationsResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy