Package org.bremersee.dccon.model
Class DhcpLease
- java.lang.Object
-
- org.bremersee.dccon.model.DhcpLease
-
- All Implemented Interfaces:
Serializable
@Validated public class DhcpLease extends Object implements Serializable
The dhcp lease.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSORT_ORDER_BEGIN_HOSTNAMEThe constant SORT_ORDER_BEGIN_HOSTNAME.static StringSORT_ORDER_IP_BEGIN_HOSTNAMEThe constant SORT_ORDER_IP_BEGIN_HOSTNAME.
-
Constructor Summary
Constructors Constructor Description DhcpLease(String mac, String ip, String hostname, OffsetDateTime begin, OffsetDateTime end, String manufacturer)Instantiates a new dhcp lease.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimegetBegin()Gets begin.OffsetDateTimegetEnd()Gets end.StringgetHostname()Gets hostname.StringgetIp()Gets ip.StringgetMac()Gets mac.StringgetManufacturer()Gets manufacturer.voidsetBegin(OffsetDateTime begin)Sets begin.voidsetEnd(OffsetDateTime end)Sets end.voidsetHostname(String hostname)Sets hostname.voidsetIp(String ip)Sets ip.voidsetMac(String mac)Sets mac.voidsetManufacturer(String manufacturer)Sets manufacturer.
-
-
-
Field Detail
-
SORT_ORDER_BEGIN_HOSTNAME
public static final String SORT_ORDER_BEGIN_HOSTNAME
The constant SORT_ORDER_BEGIN_HOSTNAME.- See Also:
- Constant Field Values
-
SORT_ORDER_IP_BEGIN_HOSTNAME
public static final String SORT_ORDER_IP_BEGIN_HOSTNAME
The constant SORT_ORDER_IP_BEGIN_HOSTNAME.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DhcpLease
public DhcpLease(String mac, String ip, String hostname, OffsetDateTime begin, OffsetDateTime end, String manufacturer)
Instantiates a new dhcp lease.- Parameters:
mac- the macip- the iphostname- the hostnamebegin- the beginend- the endmanufacturer- the manufacturer
-
-
Method Detail
-
getMac
public String getMac()
Gets mac.- Returns:
- the mac
-
setMac
public void setMac(String mac)
Sets mac.- Parameters:
mac- the mac
-
getIp
public String getIp()
Gets ip.- Returns:
- the ip
-
setIp
public void setIp(String ip)
Sets ip.- Parameters:
ip- the ip
-
getHostname
public String getHostname()
Gets hostname.- Returns:
- the hostname
-
setHostname
public void setHostname(String hostname)
Sets hostname.- Parameters:
hostname- the hostname
-
getBegin
public OffsetDateTime getBegin()
Gets begin.- Returns:
- the begin
-
setBegin
public void setBegin(OffsetDateTime begin)
Sets begin.- Parameters:
begin- the begin
-
getEnd
public OffsetDateTime getEnd()
Gets end.- Returns:
- the end
-
setEnd
public void setEnd(OffsetDateTime end)
Sets end.- Parameters:
end- the end
-
getManufacturer
public String getManufacturer()
Gets manufacturer.- Returns:
- the manufacturer
-
setManufacturer
public void setManufacturer(String manufacturer)
Sets manufacturer.- Parameters:
manufacturer- the manufacturer
-
-