1 package org.onap.sdc.tosca.parser.elements.queries;
3 import org.onap.sdc.tosca.parser.enums.SdcTypes;
6 * This class describes a node template instance containing an entity searched and retrieved by SDC Tosca Parser API
7 * It is used as the API input parameter. See the {@link org.onap.sdc.tosca.parser.api.ISdcCsarHelper}
9 public class TopologyTemplateQuery {
11 public void setCustomizationUUID(String customizationUUID) {
12 this.customizationUUID = customizationUUID;
15 private final SdcTypes sdcType;
17 private String customizationUUID;
19 private TopologyTemplateQuery(SdcTypes sdcType) {
20 this.sdcType = sdcType;
23 public static TopologyTemplateQueryBuilder newBuilder(SdcTypes sdcType) {
24 return new TopologyTemplateQueryBuilder(sdcType);
27 public SdcTypes getNodeTemplateType() {
31 public String getCustomizationUUID() {
32 return customizationUUID;
35 public static class TopologyTemplateQueryBuilder {
36 private TopologyTemplateQuery topologyTemplateQuery;
37 private TopologyTemplateQueryBuilder(SdcTypes sdcType) { topologyTemplateQuery = new TopologyTemplateQuery(sdcType);}
39 public TopologyTemplateQueryBuilder customizationUUID(String customizationUUID) {
40 topologyTemplateQuery.setCustomizationUUID(customizationUUID);
44 public TopologyTemplateQuery build() {
45 return topologyTemplateQuery;