blob: 47b10a82906647f945c6e76de2b20cec00172c92 (
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
|
package org.onap.sdc.tosca.parser.elements.queries;
import org.onap.sdc.tosca.parser.enums.SdcTypes;
/**
* This class describes a node template instance containing an entity searched and retrieved by SDC Tosca Parser API
* It is used as the API input parameter. See the {@link org.onap.sdc.tosca.parser.api.ISdcCsarHelper}
*/
public class TopologyTemplateQuery {
public void setCustomizationUUID(String customizationUUID) {
this.customizationUUID = customizationUUID;
}
private final SdcTypes sdcType;
private String customizationUUID;
private TopologyTemplateQuery(SdcTypes sdcType) {
this.sdcType = sdcType;
}
public static TopologyTemplateQueryBuilder newBuilder(SdcTypes sdcType) {
return new TopologyTemplateQueryBuilder(sdcType);
}
public SdcTypes getNodeTemplateType() {
return sdcType;
}
public String getCustomizationUUID() {
return customizationUUID;
}
public static class TopologyTemplateQueryBuilder {
private TopologyTemplateQuery topologyTemplateQuery;
private TopologyTemplateQueryBuilder(SdcTypes sdcType) { topologyTemplateQuery = new TopologyTemplateQuery(sdcType);}
public TopologyTemplateQueryBuilder customizationUUID(String customizationUUID) {
topologyTemplateQuery.setCustomizationUUID(customizationUUID);
return this;
}
public TopologyTemplateQuery build() {
return topologyTemplateQuery;
}
}
}
|