* ============LICENSE_START=======================================================
* ONAP : APPC
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
* See the License for the specific language governing permissions and
* limitations under the License.
*
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
* ============LICENSE_END=========================================================
*/
package org.onap.appc.listener.LCM.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-
-@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
+@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResponseStatus {
+
@JsonProperty("code")
private Integer code;
@JsonProperty("message")
return code;
}
- public void setCode(Integer code) {
- code = code;
- }
public String getValue() {
return value;
}
-
+ public void setCode(Integer code) {
+ this.code = code;
+ }
public void setValue(String value) {
- value = value;
+ this.value = value;
}
@Override
public String toString() {
return "ResponseStatus{" +
- "code=" + code +
- ", value='" + value + '\'' +
- '}';
+ "code=" + code +
+ ", value='" + value + '\'' +
+ '}';
}
}