commonMain.aws.sdk.kotlin.services.dlm.model.GetLifecyclePoliciesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dlm.model
public class GetLifecyclePoliciesRequest private constructor(builder: Builder) {
/**
* The identifiers of the data lifecycle policies.
*/
public val policyIds: List? = builder.policyIds
/**
* The resource type.
*/
public val resourceTypes: List? = builder.resourceTypes
/**
* The activation state.
*/
public val state: aws.sdk.kotlin.services.dlm.model.GettablePolicyStateValues? = builder.state
/**
* The tags to add to objects created by the policy.
*
* Tags are strings in the format `key=value`.
*
* These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.
*/
public val tagsToAdd: List? = builder.tagsToAdd
/**
* The target tag for a policy.
*
* Tags are strings in the format `key=value`.
*/
public val targetTags: List? = builder.targetTags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dlm.model.GetLifecyclePoliciesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLifecyclePoliciesRequest(")
append("policyIds=$policyIds,")
append("resourceTypes=$resourceTypes,")
append("state=$state,")
append("tagsToAdd=$tagsToAdd,")
append("targetTags=$targetTags)")
}
override fun hashCode(): kotlin.Int {
var result = policyIds?.hashCode() ?: 0
result = 31 * result + (resourceTypes?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (tagsToAdd?.hashCode() ?: 0)
result = 31 * result + (targetTags?.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 GetLifecyclePoliciesRequest
if (policyIds != other.policyIds) return false
if (resourceTypes != other.resourceTypes) return false
if (state != other.state) return false
if (tagsToAdd != other.tagsToAdd) return false
if (targetTags != other.targetTags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dlm.model.GetLifecyclePoliciesRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifiers of the data lifecycle policies.
*/
public var policyIds: List? = null
/**
* The resource type.
*/
public var resourceTypes: List? = null
/**
* The activation state.
*/
public var state: aws.sdk.kotlin.services.dlm.model.GettablePolicyStateValues? = null
/**
* The tags to add to objects created by the policy.
*
* Tags are strings in the format `key=value`.
*
* These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.
*/
public var tagsToAdd: List? = null
/**
* The target tag for a policy.
*
* Tags are strings in the format `key=value`.
*/
public var targetTags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dlm.model.GetLifecyclePoliciesRequest) : this() {
this.policyIds = x.policyIds
this.resourceTypes = x.resourceTypes
this.state = x.state
this.tagsToAdd = x.tagsToAdd
this.targetTags = x.targetTags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dlm.model.GetLifecyclePoliciesRequest = GetLifecyclePoliciesRequest(this)
}
}