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 String
SORT_ORDER_BEGIN_HOSTNAME
The constant SORT_ORDER_BEGIN_HOSTNAME.static String
SORT_ORDER_IP_BEGIN_HOSTNAME
The 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 OffsetDateTime
getBegin()
Gets begin.OffsetDateTime
getEnd()
Gets end.String
getHostname()
Gets hostname.String
getIp()
Gets ip.String
getMac()
Gets mac.String
getManufacturer()
Gets manufacturer.void
setBegin(OffsetDateTime begin)
Sets begin.void
setEnd(OffsetDateTime end)
Sets end.void
setHostname(String hostname)
Sets hostname.void
setIp(String ip)
Sets ip.void
setMac(String mac)
Sets mac.void
setManufacturer(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
-
-