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