
commonMain.aws.sdk.kotlin.services.ssm.model.ParameterInlinePolicy.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* One or more policies assigned to a parameter.
*/
public class ParameterInlinePolicy private constructor(builder: Builder) {
/**
* The status of the policy. Policies report the following statuses: Pending (the policy hasn't been enforced or applied yet), Finished (the policy was applied), Failed (the policy wasn't applied), or InProgress (the policy is being applied now).
*/
public val policyStatus: kotlin.String? = builder.policyStatus
/**
* The JSON text of the policy.
*/
public val policyText: kotlin.String? = builder.policyText
/**
* The type of policy. Parameter Store, a capability of Amazon Web Services Systems Manager, supports the following policy types: Expiration, ExpirationNotification, and NoChangeNotification.
*/
public val policyType: kotlin.String? = builder.policyType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.ParameterInlinePolicy = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ParameterInlinePolicy(")
append("policyStatus=$policyStatus,")
append("policyText=$policyText,")
append("policyType=$policyType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = policyStatus?.hashCode() ?: 0
result = 31 * result + (policyText?.hashCode() ?: 0)
result = 31 * result + (policyType?.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 ParameterInlinePolicy
if (policyStatus != other.policyStatus) return false
if (policyText != other.policyText) return false
if (policyType != other.policyType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.ParameterInlinePolicy = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The status of the policy. Policies report the following statuses: Pending (the policy hasn't been enforced or applied yet), Finished (the policy was applied), Failed (the policy wasn't applied), or InProgress (the policy is being applied now).
*/
public var policyStatus: kotlin.String? = null
/**
* The JSON text of the policy.
*/
public var policyText: kotlin.String? = null
/**
* The type of policy. Parameter Store, a capability of Amazon Web Services Systems Manager, supports the following policy types: Expiration, ExpirationNotification, and NoChangeNotification.
*/
public var policyType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.ParameterInlinePolicy) : this() {
this.policyStatus = x.policyStatus
this.policyText = x.policyText
this.policyType = x.policyType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.ParameterInlinePolicy = ParameterInlinePolicy(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy