1 package org.kuali.common.deploy.env.model;
2
3 import org.kuali.common.deploy.dns.model.DnsContext;
4 import org.kuali.common.util.Assert;
5
6 public final class DeployEnvironment {
7
8 public DeployEnvironment(String groupId, int id, String name, DnsContext dns) {
9 Assert.noBlanks(groupId, name);
10 Assert.noNulls(dns);
11 Assert.isTrue(id > 0, "id must be a positive integer");
12 this.id = id;
13 this.groupId = groupId;
14 this.name = name;
15 this.dns = dns;
16 }
17
18 private final int id;
19 private final String groupId;
20 private final String name;
21 private final DnsContext dns;
22
23 public int getId() {
24 return id;
25 }
26
27 public String getGroupId() {
28 return groupId;
29 }
30
31 public String getName() {
32 return name;
33 }
34
35 public DnsContext getDns() {
36 return dns;
37 }
38
39 }