001    package org.kuali.common.deploy.env.model;
002    
003    import org.kuali.common.deploy.dns.model.DnsContext;
004    import org.kuali.common.util.Assert;
005    
006    public final class DeployEnvironment {
007    
008            public DeployEnvironment(String groupId, int id, String name, DnsContext dns) {
009                    Assert.noBlanks(groupId, name);
010                    Assert.noNulls(dns);
011                    Assert.isTrue(id > 0, "id must be a positive integer");
012                    this.id = id;
013                    this.groupId = groupId;
014                    this.name = name;
015                    this.dns = dns;
016            }
017    
018            private final int id;
019            private final String groupId;
020            private final String name;
021            private final DnsContext dns;
022    
023            public int getId() {
024                    return id;
025            }
026    
027            public String getGroupId() {
028                    return groupId;
029            }
030    
031            public String getName() {
032                    return name;
033            }
034    
035            public DnsContext getDns() {
036                    return dns;
037            }
038    
039    }