Skip to content

Commit 9b9a59a

Browse files
zoewanggmillems
authored andcommitted
Add waiter generator task
1 parent 871996a commit 9b9a59a

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

codegen/src/main/java/software/amazon/awssdk/codegen/model/intermediate/Metadata.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,7 @@ public Metadata withWaitersPackageName(String waitersPackageName) {
678678
return this;
679679
}
680680

681-
682681
public String getFullWaitersPackageName() {
683682
return joinPackageNames(rootPackageName, getWaitersPackageName());
684683
}
685-
686684
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package software.amazon.awssdk.codegen.poet.waiters;
17+
18+
import com.squareup.javapoet.ClassName;
19+
import com.squareup.javapoet.TypeSpec;
20+
import software.amazon.awssdk.codegen.model.intermediate.IntermediateModel;
21+
import software.amazon.awssdk.codegen.model.service.WaiterDefinition;
22+
import software.amazon.awssdk.codegen.poet.ClassSpec;
23+
24+
public class WaitersClassSpec implements ClassSpec {
25+
26+
private final String operationName;
27+
private final WaiterDefinition waiterDefinition;
28+
private final IntermediateModel model;
29+
30+
public WaitersClassSpec(IntermediateModel model, String operationName, WaiterDefinition waiterDefinition) {
31+
this.model = model;
32+
this.operationName = operationName;
33+
this.waiterDefinition = waiterDefinition;
34+
}
35+
36+
@Override
37+
public TypeSpec poetSpec() {
38+
throw new UnsupportedOperationException();
39+
}
40+
41+
@Override
42+
public ClassName className() {
43+
throw new UnsupportedOperationException();
44+
}
45+
}

0 commit comments

Comments
 (0)