|
| 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