1 package org.kuali.common.devops.model;
2
3 import org.kuali.common.util.Assert;
4
5 public final class Service {
6
7 private final String title;
8 private final String name;
9
10 public static class Builder {
11
12
13 private final String title;
14 private final String name;
15
16 public Builder(String name) {
17 this(name, name);
18 }
19
20 public Builder(String title, String name) {
21 this.title = title;
22 this.name = name;
23 }
24
25 public Service build() {
26 Assert.noBlanks(title, name);
27 return new Service(this);
28 }
29 }
30
31 private Service(Builder builder) {
32 this.title = builder.title;
33 this.name = builder.name;
34 }
35
36 public String getTitle() {
37 return title;
38 }
39
40 public String getName() {
41 return name;
42 }
43
44 }