[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / lib / openecomp-sdc-vendor-license-lib / openecomp-sdc-vendor-license-api / src / main / java / org / openecomp / sdc / vendorlicense / dao / types / xml / LimitXml.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.vendorlicense.dao.types.xml;
22
23 public class LimitXml {
24   String description;
25   String metric;
26   String values;
27   String unit;
28   String time;
29   String aggregationFunction;
30
31   public String getDescription() {
32     return description;
33   }
34
35   public void setDescription(String description) {
36     this.description = description;
37   }
38
39   public String getMetric() {
40     return metric;
41   }
42
43   public void setMetric(String metric) {
44     this.metric = metric;
45   }
46
47   public String getValues() {
48     return values;
49   }
50
51   public void setValues(String values) {
52     this.values = values;
53   }
54
55   public String getUnit() {
56     return unit;
57   }
58
59   public void setUnit(String unit) {
60     this.unit = unit;
61   }
62
63   public String getTime() {
64     return time;
65   }
66
67   public void setTime(String time) {
68     this.time = time;
69   }
70
71   public String getAggregationFunction() {
72     return aggregationFunction;
73   }
74
75   public void setAggregationFunction(String aggregationFunction) {
76     this.aggregationFunction = aggregationFunction;
77   }
78
79   public EntitlementTimeForXml getTimeForArtifact() {
80     EntitlementTimeForXml timeForXml = new EntitlementTimeForXml();
81     if (time != null) {
82       timeForXml.setValue(time);
83     }
84
85     return timeForXml;
86   }
87
88   public AggregationFunctionForXml getAggregationFunctionForArtifact() {
89     AggregationFunctionForXml aggregationFunctionForXml = new AggregationFunctionForXml();
90     if (aggregationFunction != null) {
91       aggregationFunctionForXml.setValue(aggregationFunction);
92     }
93     return aggregationFunctionForXml;
94   }
95 }