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