|
24 | 24 | import com.squareup.javapoet.ClassName;
|
25 | 25 | import com.squareup.javapoet.MethodSpec;
|
26 | 26 | import com.squareup.javapoet.TypeSpec;
|
| 27 | +import java.net.URI; |
27 | 28 | import software.amazon.awssdk.annotations.SdkPublicApi;
|
28 | 29 | import software.amazon.awssdk.awscore.AwsServiceClientConfiguration;
|
29 | 30 | import software.amazon.awssdk.codegen.model.intermediate.IntermediateModel;
|
@@ -89,12 +90,21 @@ private TypeSpec builderInterfaceSpec() {
|
89 | 90 | .returns(className())
|
90 | 91 | .build())
|
91 | 92 | .addMethod(MethodSpec.methodBuilder("region")
|
| 93 | + .addAnnotation(Override.class) |
92 | 94 | .addModifiers(PUBLIC, ABSTRACT)
|
93 | 95 | .addParameter(Region.class, "region")
|
94 | 96 | .returns(className().nestedClass("Builder"))
|
95 | 97 | .addJavadoc("Configure the region")
|
96 | 98 | .build())
|
| 99 | + .addMethod(MethodSpec.methodBuilder("endpointOverride") |
| 100 | + .addAnnotation(Override.class) |
| 101 | + .addModifiers(PUBLIC, ABSTRACT) |
| 102 | + .addParameter(URI.class, "endpointOverride") |
| 103 | + .returns(className().nestedClass("Builder")) |
| 104 | + .addJavadoc("Configure the endpointOverride") |
| 105 | + .build()) |
97 | 106 | .addMethod(MethodSpec.methodBuilder("overrideConfiguration")
|
| 107 | + .addAnnotation(Override.class) |
98 | 108 | .addModifiers(PUBLIC, ABSTRACT)
|
99 | 109 | .addParameter(ClientOverrideConfiguration.class, "clientOverrideConfiguration")
|
100 | 110 | .returns(className().nestedClass("Builder"))
|
@@ -132,6 +142,14 @@ private TypeSpec builderImplSpec() {
|
132 | 142 | .addStatement("this.overrideConfiguration = clientOverrideConfiguration")
|
133 | 143 | .addStatement("return this")
|
134 | 144 | .build())
|
| 145 | + .addMethod(MethodSpec.methodBuilder("endpointOverride") |
| 146 | + .addAnnotation(Override.class) |
| 147 | + .addModifiers(PUBLIC) |
| 148 | + .addParameter(URI.class, "endpointOverride") |
| 149 | + .returns(className().nestedClass("Builder")) |
| 150 | + .addStatement("this.endpointOverride = endpointOverride") |
| 151 | + .addStatement("return this") |
| 152 | + .build()) |
135 | 153 | .addMethod(MethodSpec.methodBuilder("build")
|
136 | 154 | .addAnnotation(Override.class)
|
137 | 155 | .addModifiers(PUBLIC)
|
|
0 commit comments