blob: a4bc8f2ec94a8e4f55e869e7c18648556ed081a2 [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
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
22
23package org.onap.osam.model;
24
25import com.fasterxml.jackson.annotation.*;
26import com.google.common.base.MoreObjects;
27import org.onap.osam.domain.mso.RequestReferences;
28
29import java.util.HashMap;
30import java.util.Map;
31
32@JsonInclude(JsonInclude.Include.NON_NULL)
33public class RequestReferencesContainer {
34 private final RequestReferences requestReferences;
35
36 @JsonIgnore
37 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
38
39 @JsonAnyGetter
40 public Map<String, Object> getAdditionalProperties() {
41 return this.additionalProperties;
42 }
43
44 @JsonAnySetter
45 public void setAdditionalProperty(String name, Object value) {
46 this.additionalProperties.put(name, value);
47 }
48
49 public RequestReferencesContainer(@JsonProperty("requestReferences") RequestReferences requestReferences) {
50 this.requestReferences = requestReferences;
51 }
52
53 public RequestReferences getRequestReferences() {
54 return requestReferences;
55 }
56
57 @Override
58 public String toString() {
59 return MoreObjects.toStringHelper(this)
60 .add("requestReferences", requestReferences)
61 .add("additionalProperties", additionalProperties)
62 .toString();
63 }
64}