summaryrefslogtreecommitdiffstats
path: root/aai-core/src/main/java/org/openecomp/aai/domain/responseMessage/AAIResponseMessage.java
blob: b3f03247b38d0e06f29d60ddf38ef964a306505a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*-
 * ============LICENSE_START=======================================================
 * org.openecomp.aai
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * ================================================================================
 * 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.
 * ============LICENSE_END=========================================================
 */

package org.openecomp.aai.domain.responseMessage;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "aaiResponseMessageCode",
    "aaiResponseMessageResourceType",
    "aaiResponseMessageDescription",
    "aaiResponseMessageData",
})
@XmlRootElement(name = "aai-response-message", namespace = "http://org.openecomp.aai.inventory")
public class AAIResponseMessage {

    @XmlElement(name = "aai-response-message-code", required = true)
    protected String aaiResponseMessageCode;
    @XmlElement(name = "aai-response-message-resource-type")
    protected String aaiResponseMessageResourceType;
    @XmlElement(name = "aai-response-message-description")
    protected String aaiResponseMessageDescription;
    @XmlElement(name = "aai-response-message-data")
    protected AAIResponseMessageData aaiResponseMessageData;
	
	/**
	 * Gets the aai response message code.
	 *
	 * @return the aai response message code
	 */
	public String getAaiResponseMessageCode() {
		return aaiResponseMessageCode;
	}
	
	/**
	 * Sets the aai response message code.
	 *
	 * @param aaiResponseMessageCode the new aai response message code
	 */
	public void setAaiResponseMessageCode(String aaiResponseMessageCode) {
		this.aaiResponseMessageCode = aaiResponseMessageCode;
	}
	
	/**
	 * Gets the aai response message resource type.
	 *
	 * @return the aai response message resource type
	 */
	public String getAaiResponseMessageResourceType() {
		return aaiResponseMessageResourceType;
	}
	
	/**
	 * Sets the aai response message resource type.
	 *
	 * @param aaiResponseMessageResourceType the new aai response message resource type
	 */
	public void setAaiResponseMessageResourceType(
			String aaiResponseMessageResourceType) {
		this.aaiResponseMessageResourceType = aaiResponseMessageResourceType;
	}
	
	/**
	 * Gets the aai response message description.
	 *
	 * @return the aai response message description
	 */
	public String getAaiResponseMessageDescription() {
		return aaiResponseMessageDescription;
	}
	
	/**
	 * Sets the aai response message description.
	 *
	 * @param aaiResponseMessageDescription the new aai response message description
	 */
	public void setAaiResponseMessageDescription(
			String aaiResponseMessageDescription) {
		this.aaiResponseMessageDescription = aaiResponseMessageDescription;
	}
	
	/**
	 * Gets the aai response message data.
	 *
	 * @return the aai response message data
	 */
	public AAIResponseMessageData getAaiResponseMessageData() {
		if (aaiResponseMessageData == null) { 
			aaiResponseMessageData = new AAIResponseMessageData();
		}
	   return aaiResponseMessageData;
	}
	
	/**
	 * Sets the AAI response message data.
	 *
	 * @param aaiResponseMessageData the new AAI response message data
	 */
	public void setAAIResponseMessageData(
			AAIResponseMessageData aaiResponseMessageData) {
		this.aaiResponseMessageData = aaiResponseMessageData;
	}
}