001package org.kuali.common.devops.model;
002
003import org.kuali.common.util.Assert;
004
005public final class Node {
006
007        private final String name;
008        private final String fqdn;
009
010        public static class Builder {
011
012                // Required
013                private final String name;
014                private final String fqdn;
015
016                public Builder(String name, String fqdn) {
017                        this.name = name;
018                        this.fqdn = fqdn;
019                }
020
021                public Node build() {
022                        Assert.noBlanks(name, fqdn);
023                        return new Node(this);
024                }
025
026        }
027
028        private Node(Builder builder) {
029                this.name = builder.name;
030                this.fqdn = builder.fqdn;
031        }
032
033        public String getName() {
034                return name;
035        }
036
037        public String getFqdn() {
038                return fqdn;
039        }
040
041}