Catalog alignment
[sdc.git] / common-app-logging / src / main / java / org / openecomp / sdc / common / log / elements / ErrorLogOptionalData.java
1 package org.openecomp.sdc.common.log.elements;
2
3 public class ErrorLogOptionalData {
4     private String targetEntity;
5     private String targetServiceName;
6
7     public ErrorLogOptionalData() {
8     }
9
10     String getTargetEntity() {
11         return targetEntity;
12     }
13
14     private void setTargetEntity(String targetEntity) {
15         this.targetEntity = targetEntity;
16     }
17
18     String getTargetServiceName() {
19         return targetServiceName;
20     }
21
22     private void setTargetServiceName(String targetServiceName) {
23         this.targetServiceName = targetServiceName;
24     }
25
26     public static Builder newBuilder() {
27         return new Builder();
28     }
29
30     public static class Builder {
31         private final ErrorLogOptionalData instance;
32
33         private Builder() {
34             instance = new ErrorLogOptionalData();
35         }
36
37         public Builder targetEntity(String targetEntity) {
38             instance.setTargetEntity(targetEntity);
39             return this;
40         }
41
42         public Builder targetServiceName(String targetServiceName) {
43             instance.setTargetServiceName(targetServiceName);
44             return this;
45         }
46
47         public ErrorLogOptionalData build() {
48             return instance;
49         }
50     }
51 }