• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.rules.endpoints;
17 
18 import java.util.List;
19 
20 public class RuleModel {
21     private String type;
22     private List<ConditionModel> conditions;
23 
24     // for type == error
25     private String error;
26 
27     // for type == tree
28     private List<RuleModel> rules;
29 
30     // for type == endpoint
31     private EndpointModel endpoint;
32 
getType()33     public String getType() {
34         return type;
35     }
36 
setType(String type)37     public void setType(String type) {
38         this.type = type;
39     }
40 
getConditions()41     public List<ConditionModel> getConditions() {
42         return conditions;
43     }
44 
setConditions(List<ConditionModel> conditions)45     public void setConditions(List<ConditionModel> conditions) {
46         this.conditions = conditions;
47     }
48 
getError()49     public String getError() {
50         return error;
51     }
52 
setError(String error)53     public void setError(String error) {
54         this.error = error;
55     }
56 
getRules()57     public List<RuleModel> getRules() {
58         return rules;
59     }
60 
setRules(List<RuleModel> rules)61     public void setRules(List<RuleModel> rules) {
62         this.rules = rules;
63     }
64 
getEndpoint()65     public EndpointModel getEndpoint() {
66         return endpoint;
67     }
68 
setEndpoint(EndpointModel endpoint)69     public void setEndpoint(EndpointModel endpoint) {
70         this.endpoint = endpoint;
71     }
72 }
73