[SDC-29] rebase continue work to align source
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / datatypes / ArtifactReqDetails.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
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 package org.openecomp.sdc.ci.tests.datatypes;
22
23 import java.util.List;
24
25 import org.openecomp.sdc.be.model.ArtifactDefinition;
26 import org.openecomp.sdc.be.model.HeatParameterDefinition;
27
28 public class ArtifactReqDetails {
29
30         public ArtifactReqDetails() {
31
32         }
33
34         public ArtifactReqDetails(String artifactName, String artifactType, String artifactDescription, String payloadData,
35                         String artifactLable) {
36                 super();
37                 this.artifactName = artifactName;
38                 this.artifactType = artifactType;
39                 this.description = artifactDescription;
40                 this.payloadData = payloadData;
41                 this.artifactLabel = artifactLable;
42         }
43
44         public ArtifactReqDetails(String artifactLable, ArtifactReqDetails a) {
45                 super();
46                 this.artifactName = a.getArtifactName();
47                 this.artifactType = a.getArtifactType();
48                 this.description = a.getArtifactType();
49                 this.payloadData = a.getPayload();
50                 this.artifactLabel = artifactLable;
51         }
52
53         private String uniqueId;
54         private String artifactName;
55         private String artifactType;
56         private String description;
57         private String payloadData;
58         private String artifactLabel;
59         private String apiUrl;
60         private String artifactGroupType;
61         private Integer timeout;
62         private String userIdLastUpdater;
63         private String creatorFullName;
64         private String updaterFullName;
65         private String artifactChecksum;
66         private String artifactDisplayName;
67         private List<HeatParameterDefinition> heatParameters;
68
69         private boolean mandatory;
70         private boolean serviceApi;
71
72         public boolean isServiceApi() {
73                 return serviceApi;
74         }
75
76         public void setServiceApi(boolean serviceApi) {
77                 this.serviceApi = serviceApi;
78         }
79
80         public String getArtifactLabel() {
81                 return artifactLabel;
82         }
83
84         public void setArtifactLabel(String artifactLabel) {
85                 this.artifactLabel = artifactLabel;
86         }
87
88         public String getArtifactName() {
89                 return artifactName;
90         }
91
92         public void setArtifactName(String artifactName) {
93                 this.artifactName = artifactName;
94         }
95
96         public String getArtifactType() {
97                 return artifactType;
98         }
99
100         public void setArtifactType(String artifactType) {
101                 this.artifactType = artifactType;
102         }
103
104         public String getDescription() {
105                 return description;
106         }
107
108         public void setDescription(String description) {
109                 this.description = description;
110         }
111
112         public String getPayload() {
113                 return payloadData;
114         }
115
116         public void setPayload(String payload) {
117                 this.payloadData = payload;
118         }
119
120         public void setPayloadData(String payloadData) {
121                 this.payloadData = payloadData;
122         }
123
124         public String getArtifactGroupType() {
125                 return artifactGroupType;
126         }
127
128         public void setArtifactGroupType(String artifactGroupType) {
129                 this.artifactGroupType = artifactGroupType;
130         }
131
132         public Integer getTimeout() {
133                 return timeout;
134         }
135
136         public void setTimeout(Integer timeout) {
137                 this.timeout = timeout;
138         }
139
140         public boolean isMandatory() {
141                 return mandatory;
142         }
143
144         public void setMandatory(boolean mandatory) {
145                 this.mandatory = mandatory;
146         }
147
148         public String getUrl() {
149                 return apiUrl;
150         }
151
152         public void setUrl(String url) {
153                 this.apiUrl = url;
154         }
155
156         @Override
157         public String toString() {
158                 if (!apiUrl.isEmpty()) {
159                         return "ArtifactReqDetails [artifactName=" + artifactName + ", artifactType=" + artifactType
160                                         + ", description=" + description + ", payloadData=" + payloadData + ", artifactLabel="
161                                         + artifactLabel + ", mandatory=" + mandatory + ", url=" + apiUrl + "]";
162                 }
163
164                 return "ArtifactReqDetails [artifactName=" + artifactName + ", artifactType=" + artifactType + ", description="
165                                 + description + ", payloadData=" + payloadData + ", artifactLabel=" + artifactLabel
166                                 + ", artifactUniqueId=" + uniqueId + ", mandatory=" + mandatory + ", serviceApi=" + serviceApi + "]";
167
168         }
169
170         // public String getPayloadData() {
171         // return payloadData;
172         // }
173         //
174         // public void setPayloadData(String payloadData) {
175         // this.payloadData = payloadData;
176         // }
177
178         // public String getUserIdCreator() {
179         // return userIdCreator;
180         // }
181         //
182         // public void setUserIdCreator(String userIdCreator) {
183         // this.userIdCreator = userIdCreator;
184         // }
185         //
186         public String getArtifactDisplayName() {
187
188                 return artifactDisplayName;
189         }
190
191         public void setArtifactDisplayName(String artifactDisplayName) {
192                 this.artifactDisplayName = artifactDisplayName;
193         }
194
195         public String getUserIdLastUpdater() {
196                 return userIdLastUpdater;
197         }
198
199         public void setUserIdLastUpdater(String userIdLastUpdater) {
200                 this.userIdLastUpdater = userIdLastUpdater;
201         }
202
203         public String getCreatorFullName() {
204                 return creatorFullName;
205         }
206
207         public void setCreatorFullName(String creatorFullName) {
208                 this.creatorFullName = creatorFullName;
209         }
210
211         public String getUpdaterFullName() {
212                 return updaterFullName;
213         }
214
215         public void setUpdaterFullName(String updaterFullName) {
216                 this.updaterFullName = updaterFullName;
217         }
218
219         public String getArtifactChecksum() {
220                 return artifactChecksum;
221         }
222
223         public void setArtifactChecksum(String artifactChecksum) {
224                 this.artifactChecksum = artifactChecksum;
225         }
226
227         public String getUniqueId() {
228                 return uniqueId;
229         }
230
231         public void setUniqueId(String artifactUniqueId) {
232                 this.uniqueId = artifactUniqueId;
233         }
234
235         public List<HeatParameterDefinition> getHeatParameters() {
236                 return heatParameters;
237         }
238
239         public void setHeatParameters(List<HeatParameterDefinition> heatParameters) {
240                 this.heatParameters = heatParameters;
241         }
242
243 }