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.onap.so.client.grm.beans;
23 import java.io.Serializable;
25 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30 @JsonInclude(JsonInclude.Include.NON_NULL)
31 @JsonIgnoreProperties(ignoreUnknown = true)
32 @JsonPropertyOrder({ "major", "minor", "patch" })
33 public class Version implements Serializable{
38 private static final long serialVersionUID = 7509573030831487410L;
39 @JsonProperty("major")
40 private Integer major;
41 @JsonProperty("minor")
42 private Integer minor;
43 @JsonProperty("patch")
46 @JsonProperty("major")
47 public Integer getMajor() {
51 @JsonProperty("major")
52 public void setMajor(Integer major) {
56 @JsonProperty("minor")
57 public Integer getMinor() {
61 @JsonProperty("minor")
62 public void setMinor(Integer minor) {
66 @JsonProperty("patch")
67 public String getPatch() {
71 @JsonProperty("patch")
72 public void setPatch(String patch) {