All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.ssm.model.GetServiceSettingRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ssm.model



/**
 * The request body of the GetServiceSetting API operation.
 */
public class GetServiceSettingRequest private constructor(builder: Builder) {
    /**
     * The ID of the service setting to get. The setting ID can be one of the following.
     * + `/ssm/managed-instance/default-ec2-instance-management-role`
     * + `/ssm/automation/customer-script-log-destination`
     * + `/ssm/automation/customer-script-log-group-name`
     * + `/ssm/documents/console/public-sharing-permission`
     * + `/ssm/managed-instance/activation-tier`
     * + `/ssm/opsinsights/opscenter`
     * + `/ssm/parameter-store/default-parameter-tier`
     * + `/ssm/parameter-store/high-throughput-enabled`
     */
    public val settingId: kotlin.String? = builder.settingId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetServiceSettingRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetServiceSettingRequest(")
        append("settingId=$settingId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = settingId?.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 GetServiceSettingRequest

        if (settingId != other.settingId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetServiceSettingRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The ID of the service setting to get. The setting ID can be one of the following.
         * + `/ssm/managed-instance/default-ec2-instance-management-role`
         * + `/ssm/automation/customer-script-log-destination`
         * + `/ssm/automation/customer-script-log-group-name`
         * + `/ssm/documents/console/public-sharing-permission`
         * + `/ssm/managed-instance/activation-tier`
         * + `/ssm/opsinsights/opscenter`
         * + `/ssm/parameter-store/default-parameter-tier`
         * + `/ssm/parameter-store/high-throughput-enabled`
         */
        public var settingId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetServiceSettingRequest) : this() {
            this.settingId = x.settingId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.ssm.model.GetServiceSettingRequest = GetServiceSettingRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy