You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/ClientConfigGenerator.kt
Copy file name to clipboardExpand all lines: smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/ClientConfigProperty.kt
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,11 @@ class ClientConfigProperty private constructor(builder: Builder) {
69
69
*/
70
70
val additionalImports:List<Symbol> = builder.additionalImports
71
71
72
+
/**
73
+
* The priority order of rendering the property. Used to manage dependencies between configuration properties.
74
+
*/
75
+
val order:Int= builder.order
76
+
72
77
/**
73
78
* Flag indicating if this property stems from some base class and needs an override modifier when rendered
74
79
*/
@@ -144,6 +149,8 @@ class ClientConfigProperty private constructor(builder: Builder) {
Copy file name to clipboardExpand all lines: smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/ClientConfigGeneratorTest.kt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,8 @@ public class Config private constructor(builder: Builder): HttpClientConfig, Ide
40
40
contents.shouldContainWithDiff(expectedCtor)
41
41
42
42
val expectedProps ="""
43
-
public val endpointResolver: EndpointResolver = requireNotNull(builder.endpointResolver) { "endpointResolver is a required configuration property" }
44
43
override val httpClientEngine: HttpClientEngine? = builder.httpClientEngine
44
+
public val endpointResolver: EndpointResolver = requireNotNull(builder.endpointResolver) { "endpointResolver is a required configuration property" }
45
45
override val idempotencyTokenProvider: IdempotencyTokenProvider? = builder.idempotencyTokenProvider
46
46
public val retryStrategy: RetryStrategy = builder.retryStrategy ?: StandardRetryStrategy()
47
47
override val sdkLogMode: SdkLogMode = builder.sdkLogMode
@@ -50,17 +50,17 @@ public class Config private constructor(builder: Builder): HttpClientConfig, Ide
50
50
51
51
val expectedBuilder ="""
52
52
public class Builder {
53
-
/**
54
-
* Set the [aws.smithy.kotlin.runtime.http.endpoints.EndpointResolver] used to resolve service endpoints. Operation requests will be
55
-
* made against the endpoint returned by the resolver.
56
-
*/
57
-
public var endpointResolver: EndpointResolver? = null
58
53
/**
59
54
* Override the default HTTP client engine used to make SDK requests (e.g. configure proxy behavior, timeouts, concurrency, etc).
60
55
* NOTE: The caller is responsible for managing the lifetime of the engine when set. The SDK
61
56
* client will not close it when the client is closed.
62
57
*/
63
58
public var httpClientEngine: HttpClientEngine? = null
59
+
/**
60
+
* Set the [aws.smithy.kotlin.runtime.http.endpoints.EndpointResolver] used to resolve service endpoints. Operation requests will be
61
+
* made against the endpoint returned by the resolver.
62
+
*/
63
+
public var endpointResolver: EndpointResolver? = null
64
64
/**
65
65
* Override the default idempotency token generator. SDK clients will generate tokens for members
66
66
* that represent idempotent tokens when not explicitly set by the caller using this generator.
0 commit comments