/*******************************************************************************
 * Copyright 2017 julien@squidsolutions.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package com.squid.kraken.v4.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;

public class ChosenMetric extends Base {

	private String id = null;
	private Expression expression = null;

	public ChosenMetric() {
	}

	public ChosenMetric(String id) {
		this.id = id;
	}

	public ChosenMetric(Expression expression) {
		this.expression = expression;
	}

	/**
	 **/
	public ChosenMetric expression(Expression expression) {
		this.expression = expression;
		return this;
	}

	@ApiModelProperty(example = "null", value = "")
	@JsonProperty("expression")
	public Expression getExpression() {
		return expression;
	}

	public void setExpression(Expression expression) {
		this.expression = expression;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}

@@ -807,17 +807,19 @@
 4.model;
-%0A
+%0D%0A%0D
 %0Aimport 
@@ -915,17 +915,19 @@
 roperty;
-%0A
+%0D%0A%0D
 %0Apublic 
@@ -959,17 +959,19 @@
 s Base %7B
-%0A
+%0D%0A%0D
 %0A%09privat
@@ -989,16 +989,17 @@
  = null;
+%0D
 %0A%09privat
@@ -1029,17 +1029,49 @@
  = null;
-%0A
+%0D%0A%09private String name = null;%0D%0A%0D
 %0A%09public
@@ -1087,20 +1087,23 @@
 tric() %7B
+%0D
 %0A%09%7D
-%0A
+%0D%0A%0D
 %0A%09public
@@ -1120,32 +1120,33 @@
 ric(String id) %7B
+%0D
 %0A%09%09this.id = id;
@@ -1141,28 +1141,31 @@
 his.id = id;
+%0D
 %0A%09%7D
-%0A
+%0D%0A%0D
 %0A%09public Cho
@@ -1247,14 +1247,16 @@
 %09/**
+%0D
 %0A%09 **/
+%0D
 %0A%09pu
@@ -1300,32 +1300,33 @@
 on expression) %7B
+%0D
 %0A%09%09this.expressi
@@ -1341,16 +1341,17 @@
 ression;
+%0D
 %0A%09%09retur
@@ -1357,20 +1357,23 @@
 rn this;
+%0D
 %0A%09%7D
-%0A
+%0D%0A%0D
 %0A%09@ApiMo
@@ -1413,16 +1413,17 @@
 ue = %22%22)
+%0D
 %0A%09@JsonP
@@ -1443,16 +1443,17 @@
 ession%22)
+%0D
 %0A%09public
@@ -1477,24 +1477,25 @@
 pression() %7B
+%0D
 %0A%09%09return ex
@@ -1495,36 +1495,39 @@
 turn expression;
+%0D
 %0A%09%7D
-%0A
+%0D%0A%0D
 %0A%09public void se
@@ -1562,16 +1562,17 @@
 ssion) %7B
+%0D
 %0A%09%09this.
@@ -1595,20 +1595,23 @@
 ression;
+%0D
 %0A%09%7D
-%0A
+%0D%0A%0D
 %0A%09public
@@ -1627,16 +1627,17 @@
 etId() %7B
+%0D
 %0A%09%09retur
@@ -1641,20 +1641,23 @@
 turn id;
+%0D
 %0A%09%7D
-%0A
+%0D%0A%0D
 %0A%09public
@@ -1680,16 +1680,17 @@
 ng id) %7B
+%0D
 %0A%09%09this.
@@ -1701,10 +1701,127 @@
  id;
+%0D
 %0A%09%7D
-%0A%7D
+%0D%0A%0D%0A%09public String getName() %7B%0D%0A%09%09return name;%0D%0A%09%7D%0D%0A%0D%0A%09public void setName(String name) %7B%0D%0A%09%09this.name = name;%0D%0A%09%7D%0D%0A%7D%0D
 %0A

Add missing property