5 5 | import kotlin.collections.List
|
6 6 |
|
7 7 | public sealed class GroupBy {
|
8 8 | public abstract val value: kotlin.String
|
9 9 |
|
10 10 | public object AccountId : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
11 11 | override val value: kotlin.String = "account-id"
|
12 12 | override fun toString(): kotlin.String = "AccountId"
|
13 13 | }
|
14 14 |
|
15 + | public object AccountName : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
16 + | override val value: kotlin.String = "account-name"
|
17 + | override fun toString(): kotlin.String = "AccountName"
|
18 + | }
|
19 + |
|
15 20 | public object AvailabilityZoneId : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
16 21 | override val value: kotlin.String = "availability-zone-id"
|
17 22 | override fun toString(): kotlin.String = "AvailabilityZoneId"
|
18 23 | }
|
19 24 |
|
20 25 | public object InstanceFamily : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
21 26 | override val value: kotlin.String = "instance-family"
|
22 27 | override fun toString(): kotlin.String = "InstanceFamily"
|
23 28 | }
|
24 29 |
|
25 30 | public object InstancePlatform : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
26 31 | override val value: kotlin.String = "instance-platform"
|
27 32 | override fun toString(): kotlin.String = "InstancePlatform"
|
28 33 | }
|
29 34 |
|
30 35 | public object InstanceType : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
31 36 | override val value: kotlin.String = "instance-type"
|
32 37 | override fun toString(): kotlin.String = "InstanceType"
|
33 38 | }
|
34 39 |
|
35 40 | public object ReservationArn : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
36 41 | override val value: kotlin.String = "reservation-arn"
|
37 42 | override fun toString(): kotlin.String = "ReservationArn"
|
38 43 | }
|
39 44 |
|
40 45 | public object ReservationCreateTimestamp : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
41 46 | override val value: kotlin.String = "reservation-create-timestamp"
|
42 47 | override fun toString(): kotlin.String = "ReservationCreateTimestamp"
|
43 48 | }
|
44 49 |
|
75 80 | public object ReservationType : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
76 81 | override val value: kotlin.String = "reservation-type"
|
77 82 | override fun toString(): kotlin.String = "ReservationType"
|
78 83 | }
|
79 84 |
|
80 85 | public object ReservationUnusedFinancialOwner : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
81 86 | override val value: kotlin.String = "reservation-unused-financial-owner"
|
82 87 | override fun toString(): kotlin.String = "ReservationUnusedFinancialOwner"
|
83 88 | }
|
84 89 |
|
85 90 | public object ResourceRegion : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
86 91 | override val value: kotlin.String = "resource-region"
|
87 92 | override fun toString(): kotlin.String = "ResourceRegion"
|
88 93 | }
|
89 94 |
|
90 95 | public object Tenancy : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
91 96 | override val value: kotlin.String = "tenancy"
|
92 97 | override fun toString(): kotlin.String = "Tenancy"
|
93 98 | }
|
94 99 |
|
95 100 | public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.ec2.model.GroupBy() {
|
96 101 | override fun toString(): kotlin.String = "SdkUnknown($value)"
|
97 102 | }
|
98 103 |
|
99 104 | public companion object {
|
100 105 | /**
|
101 106 | * Convert a raw value to one of the sealed variants or [SdkUnknown]
|
102 107 | */
|
103 108 | public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.ec2.model.GroupBy = when (value) {
|
104 109 | "account-id" -> AccountId
|
110 + | "account-name" -> AccountName
|
105 111 | "availability-zone-id" -> AvailabilityZoneId
|
106 112 | "instance-family" -> InstanceFamily
|
107 113 | "instance-platform" -> InstancePlatform
|
108 114 | "instance-type" -> InstanceType
|
109 115 | "reservation-arn" -> ReservationArn
|
110 116 | "reservation-create-timestamp" -> ReservationCreateTimestamp
|
111 117 | "reservation-end-date-type" -> ReservationEndDateType
|
112 118 | "reservation-end-timestamp" -> ReservationEndTimestamp
|
113 119 | "reservation-id" -> ReservationId
|
114 120 | "reservation-instance-match-criteria" -> ReservationInstanceMatchCriteria
|
115 121 | "reservation-start-timestamp" -> ReservationStartTimestamp
|
116 122 | "reservation-state" -> ReservationState
|
117 123 | "reservation-type" -> ReservationType
|
118 124 | "reservation-unused-financial-owner" -> ReservationUnusedFinancialOwner
|
119 125 | "resource-region" -> ResourceRegion
|
120 126 | "tenancy" -> Tenancy
|
121 127 | else -> SdkUnknown(value)
|
122 128 | }
|
123 129 |
|
124 130 | /**
|
125 131 | * Get a list of all possible variants
|
126 132 | */
|
127 133 | public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.GroupBy> = values
|
128 134 |
|
129 - | private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.GroupBy> = listOf(
|
135 + | private val values: kotlin.collections.List<aws.sdk.kotlin.services.ec2.model.GroupBy> by lazy { listOf(
|
130 136 | AccountId,
|
137 + | AccountName,
|
131 138 | AvailabilityZoneId,
|
132 139 | InstanceFamily,
|
133 140 | InstancePlatform,
|
134 141 | InstanceType,
|
135 142 | ReservationArn,
|
136 143 | ReservationCreateTimestamp,
|
137 144 | ReservationEndDateType,
|
138 145 | ReservationEndTimestamp,
|
139 146 | ReservationId,
|
140 147 | ReservationInstanceMatchCriteria,
|
141 148 | ReservationStartTimestamp,
|
142 149 | ReservationState,
|
143 150 | ReservationType,
|
144 151 | ReservationUnusedFinancialOwner,
|
145 152 | ResourceRegion,
|
146 153 | Tenancy,
|
147 - | )
|
154 + | ) }
|
148 155 | }
|
149 156 | }
|