Added oparent to sdc main
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / resources / data / auditing / model / ResourceVersionInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 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.be.resources.data.auditing.model;
22
23 public class ResourceVersionInfo {
24     private String artifactUuid;
25     private String state;
26     private String version;
27     private String distributionStatus;
28
29     private ResourceVersionInfo() {
30         //for builder
31     }
32
33     public static Builder newBuilder() {
34         return new Builder();
35     }
36
37     public String getArtifactUuid() {
38         return artifactUuid;
39     }
40     public String getState() {
41         return state;
42     }
43     public String getVersion() {
44         return version;
45     }
46     public String getDistributionStatus() { return distributionStatus; }
47
48
49     public static class Builder {
50         private final ResourceVersionInfo instance;
51
52         private Builder() {
53             instance = new ResourceVersionInfo();
54         }
55
56         public Builder artifactUuid(String artifactUuid) {
57             instance.artifactUuid = artifactUuid;
58             return this;
59         }
60
61         public Builder state(String state) {
62             instance.state = state;
63             return this;
64         }
65
66         public Builder version(String version) {
67             instance.version = version;
68             return this;
69         }
70
71         public Builder distributionStatus(String distributionStatus) {
72             instance.distributionStatus = distributionStatus;
73             return this;
74         }
75
76         public ResourceVersionInfo build() {
77             return instance;
78         }
79     }
80 }