aboutsummaryrefslogtreecommitdiffstats
path: root/common-app-logging/src/main/java/org/openecomp/sdc/common/log/elements/ErrorLogOptionalData.java
blob: c0dee08fa71ffb2556d41f0cfd0c4ea2cf6bab8a (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
50
51
52
53
package org.openecomp.sdc.common.log.elements;

public class ErrorLogOptionalData {

    private String targetEntity;
    private String targetServiceName;

    public ErrorLogOptionalData() {
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    String getTargetEntity() {
        return targetEntity;
    }

    private void setTargetEntity(String targetEntity) {
        this.targetEntity = targetEntity;
    }

    String getTargetServiceName() {
        return targetServiceName;
    }

    private void setTargetServiceName(String targetServiceName) {
        this.targetServiceName = targetServiceName;
    }

    public static class Builder {

        private final ErrorLogOptionalData instance;

        private Builder() {
            instance = new ErrorLogOptionalData();
        }

        public Builder targetEntity(String targetEntity) {
            instance.setTargetEntity(targetEntity);
            return this;
        }

        public Builder targetServiceName(String targetServiceName) {
            instance.setTargetServiceName(targetServiceName);
            return this;
        }

        public ErrorLogOptionalData build() {
            return instance;
        }
    }
}