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.model.config.customization;
17 
18 import java.util.ArrayList;
19 import java.util.List;
20 
21 /**
22  * Config required to generate the utilities method that returns an instance of
23  * hand-written Utilities class
24  */
25 public class UtilitiesMethod {
26 
27     public static final String METHOD_NAME = "utilities";
28 
29     /** Fqcn of the return type of the operation */
30     private String returnType;
31 
32     /** Fqcn of the instance type to be created */
33     private String instanceType;
34 
35     /**
36      * The utilities method will call a protected create() method in the hand-written Utilities class.
37      * These the ordered list of parameters that needs to be passed to the create method.
38      */
39     private List<String> createMethodParams = new ArrayList<>();
40 
getReturnType()41     public String getReturnType() {
42         return returnType;
43     }
44 
setReturnType(String returnType)45     public void setReturnType(String returnType) {
46         this.returnType = returnType;
47     }
48 
getCreateMethodParams()49     public List<String> getCreateMethodParams() {
50         return createMethodParams;
51     }
52 
setCreateMethodParams(List<String> createMethodParams)53     public void setCreateMethodParams(List<String> createMethodParams) {
54         this.createMethodParams = createMethodParams;
55     }
56 
getInstanceType()57     public String getInstanceType() {
58         return instanceType;
59     }
60 
setInstanceType(String instanceType)61     public void setInstanceType(String instanceType) {
62         this.instanceType = instanceType;
63     }
64 }
65