2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.vendorlicense.dao.types.xml;
23 public class LimitXml {
29 String aggregationFunction;
31 public String getDescription() {
35 public void setDescription(String description) {
36 this.description = description;
39 public String getMetric() {
43 public void setMetric(String metric) {
47 public String getValues() {
51 public void setValues(String values) {
55 public String getUnit() {
59 public void setUnit(String unit) {
63 public String getTime() {
67 public void setTime(String time) {
71 public String getAggregationFunction() {
72 return aggregationFunction;
75 public void setAggregationFunction(String aggregationFunction) {
76 this.aggregationFunction = aggregationFunction;
79 public EntitlementTimeForXml getTimeForArtifact() {
80 EntitlementTimeForXml timeForXml = new EntitlementTimeForXml();
82 timeForXml.setValue(time);
88 public AggregationFunctionForXml getAggregationFunctionForArtifact() {
89 AggregationFunctionForXml aggregationFunctionForXml = new AggregationFunctionForXml();
90 if (aggregationFunction != null) {
91 aggregationFunctionForXml.setValue(aggregationFunction);
93 return aggregationFunctionForXml;