1 1 | // Code generated by smithy-kotlin-codegen. DO NOT EDIT!
|
2 2 |
|
3 3 | package aws.sdk.kotlin.services.dynamodb.model
|
4 4 |
|
5 5 | import aws.smithy.kotlin.runtime.SdkDsl
|
6 6 | import aws.smithy.kotlin.runtime.time.Instant
|
7 7 |
|
8 8 | public class DescribeContributorInsightsResponse private constructor(builder: Builder) {
|
9 + | /**
|
10 + | * The mode of CloudWatch Contributor Insights for DynamoDB that determines which events are emitted. Can be set to track all access and throttled events or throttled events only.
|
11 + | */
|
12 + | public val contributorInsightsMode: aws.sdk.kotlin.services.dynamodb.model.ContributorInsightsMode? = builder.contributorInsightsMode
|
9 13 | /**
|
10 14 | * List of names of the associated contributor insights rules.
|
11 15 | */
|
12 16 | public val contributorInsightsRuleList: List<String>? = builder.contributorInsightsRuleList
|
13 17 | /**
|
14 18 | * Current status of contributor insights.
|
15 19 | */
|
16 20 | public val contributorInsightsStatus: aws.sdk.kotlin.services.dynamodb.model.ContributorInsightsStatus? = builder.contributorInsightsStatus
|
17 21 | /**
|
18 22 | * Returns information about the last failure that was encountered.
|
19 23 | *
|
20 24 | * The most common exceptions for a FAILED status are:
|
21 25 | * + LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.
|
22 26 | * + AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.
|
23 27 | * + AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.
|
24 28 | * + InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.
|
25 29 | */
|
26 30 | public val failureException: aws.sdk.kotlin.services.dynamodb.model.FailureException? = builder.failureException
|
27 31 | /**
|
28 32 | * The name of the global secondary index being described.
|
29 33 | */
|
30 34 | public val indexName: kotlin.String? = builder.indexName
|
31 35 | /**
|
32 36 | * Timestamp of the last time the status was changed.
|
33 37 | */
|
34 38 | public val lastUpdateDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateDateTime
|
35 39 | /**
|
36 40 | * The name of the table being described.
|
37 41 | */
|
38 42 | public val tableName: kotlin.String? = builder.tableName
|
39 43 |
|
40 44 | public companion object {
|
41 45 | public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.DescribeContributorInsightsResponse = Builder().apply(block).build()
|
42 46 | }
|
43 47 |
|
44 48 | override fun toString(): kotlin.String = buildString {
|
45 49 | append("DescribeContributorInsightsResponse(")
|
50 + | append("contributorInsightsMode=$contributorInsightsMode,")
|
46 51 | append("contributorInsightsRuleList=$contributorInsightsRuleList,")
|
47 52 | append("contributorInsightsStatus=$contributorInsightsStatus,")
|
48 53 | append("failureException=$failureException,")
|
49 54 | append("indexName=$indexName,")
|
50 55 | append("lastUpdateDateTime=$lastUpdateDateTime,")
|
51 56 | append("tableName=$tableName")
|
52 57 | append(")")
|
53 58 | }
|
54 59 |
|
55 60 | override fun hashCode(): kotlin.Int {
|
56 - | var result = contributorInsightsRuleList?.hashCode() ?: 0
|
61 + | var result = contributorInsightsMode?.hashCode() ?: 0
|
62 + | result = 31 * result + (this.contributorInsightsRuleList?.hashCode() ?: 0)
|
57 63 | result = 31 * result + (this.contributorInsightsStatus?.hashCode() ?: 0)
|
58 64 | result = 31 * result + (this.failureException?.hashCode() ?: 0)
|
59 65 | result = 31 * result + (this.indexName?.hashCode() ?: 0)
|
60 66 | result = 31 * result + (this.lastUpdateDateTime?.hashCode() ?: 0)
|
61 67 | result = 31 * result + (this.tableName?.hashCode() ?: 0)
|
62 68 | return result
|
63 69 | }
|
64 70 |
|
65 71 | override fun equals(other: kotlin.Any?): kotlin.Boolean {
|
66 72 | if (this === other) return true
|
67 73 | if (other == null || this::class != other::class) return false
|
68 74 |
|
69 75 | other as DescribeContributorInsightsResponse
|
70 76 |
|
77 + | if (contributorInsightsMode != other.contributorInsightsMode) return false
|
71 78 | if (contributorInsightsRuleList != other.contributorInsightsRuleList) return false
|
72 79 | if (contributorInsightsStatus != other.contributorInsightsStatus) return false
|
73 80 | if (failureException != other.failureException) return false
|
74 81 | if (indexName != other.indexName) return false
|
75 82 | if (lastUpdateDateTime != other.lastUpdateDateTime) return false
|
76 83 | if (tableName != other.tableName) return false
|
77 84 |
|
78 85 | return true
|
79 86 | }
|
80 87 |
|
81 88 | public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.DescribeContributorInsightsResponse = Builder(this).apply(block).build()
|
82 89 |
|
83 90 | @SdkDsl
|
84 91 | public class Builder {
|
92 + | /**
|
93 + | * The mode of CloudWatch Contributor Insights for DynamoDB that determines which events are emitted. Can be set to track all access and throttled events or throttled events only.
|
94 + | */
|
95 + | public var contributorInsightsMode: aws.sdk.kotlin.services.dynamodb.model.ContributorInsightsMode? = null
|
85 96 | /**
|
86 97 | * List of names of the associated contributor insights rules.
|
87 98 | */
|
88 99 | public var contributorInsightsRuleList: List<String>? = null
|
89 100 | /**
|
90 101 | * Current status of contributor insights.
|
91 102 | */
|
92 103 | public var contributorInsightsStatus: aws.sdk.kotlin.services.dynamodb.model.ContributorInsightsStatus? = null
|
93 104 | /**
|
94 105 | * Returns information about the last failure that was encountered.
|
95 106 | *
|
96 107 | * The most common exceptions for a FAILED status are:
|
97 108 | * + LimitExceededException - Per-account Amazon CloudWatch Contributor Insights rule limit reached. Please disable Contributor Insights for other tables/indexes OR disable Contributor Insights rules before retrying.
|
98 109 | * + AccessDeniedException - Amazon CloudWatch Contributor Insights rules cannot be modified due to insufficient permissions.
|
99 110 | * + AccessDeniedException - Failed to create service-linked role for Contributor Insights due to insufficient permissions.
|
100 111 | * + InternalServerError - Failed to create Amazon CloudWatch Contributor Insights rules. Please retry request.
|
101 112 | */
|
102 113 | public var failureException: aws.sdk.kotlin.services.dynamodb.model.FailureException? = null
|
103 114 | /**
|
104 115 | * The name of the global secondary index being described.
|
105 116 | */
|
106 117 | public var indexName: kotlin.String? = null
|
107 118 | /**
|
108 119 | * Timestamp of the last time the status was changed.
|
109 120 | */
|
110 121 | public var lastUpdateDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
|
111 122 | /**
|
112 123 | * The name of the table being described.
|
113 124 | */
|
114 125 | public var tableName: kotlin.String? = null
|
115 126 |
|
116 127 | @PublishedApi
|
117 128 | internal constructor()
|
118 129 | @PublishedApi
|
119 130 | internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.DescribeContributorInsightsResponse) : this() {
|
131 + | this.contributorInsightsMode = x.contributorInsightsMode
|
120 132 | this.contributorInsightsRuleList = x.contributorInsightsRuleList
|
121 133 | this.contributorInsightsStatus = x.contributorInsightsStatus
|
122 134 | this.failureException = x.failureException
|
123 135 | this.indexName = x.indexName
|
124 136 | this.lastUpdateDateTime = x.lastUpdateDateTime
|
125 137 | this.tableName = x.tableName
|
126 138 | }
|
127 139 |
|
128 140 | @PublishedApi
|
129 141 | internal fun build(): aws.sdk.kotlin.services.dynamodb.model.DescribeContributorInsightsResponse = DescribeContributorInsightsResponse(this)
|