Class WorkloadNetworkDhcpServer
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpEntity
-
- com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer
-
public final class WorkloadNetworkDhcpServer extends WorkloadNetworkDhcpEntity
NSX DHCP Server.
-
-
Constructor Summary
Constructors Constructor Description WorkloadNetworkDhcpServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
leaseTime()
Get the leaseTime property: DHCP Server Lease Time.String
serverAddress()
Get the serverAddress property: DHCP Server Address.void
validate()
Validates the instance.WorkloadNetworkDhcpServer
withDisplayName(String displayName)
Set the displayName property: Display name of the DHCP entity.WorkloadNetworkDhcpServer
withLeaseTime(Long leaseTime)
Set the leaseTime property: DHCP Server Lease Time.WorkloadNetworkDhcpServer
withRevision(Long revision)
Set the revision property: NSX revision number.WorkloadNetworkDhcpServer
withServerAddress(String serverAddress)
Set the serverAddress property: DHCP Server Address.-
Methods inherited from class com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpEntity
displayName, provisioningState, revision, segments
-
-
-
-
Method Detail
-
serverAddress
public String serverAddress()
Get the serverAddress property: DHCP Server Address.- Returns:
- the serverAddress value.
-
withServerAddress
public WorkloadNetworkDhcpServer withServerAddress(String serverAddress)
Set the serverAddress property: DHCP Server Address.- Parameters:
serverAddress
- the serverAddress value to set.- Returns:
- the WorkloadNetworkDhcpServer object itself.
-
leaseTime
public Long leaseTime()
Get the leaseTime property: DHCP Server Lease Time.- Returns:
- the leaseTime value.
-
withLeaseTime
public WorkloadNetworkDhcpServer withLeaseTime(Long leaseTime)
Set the leaseTime property: DHCP Server Lease Time.- Parameters:
leaseTime
- the leaseTime value to set.- Returns:
- the WorkloadNetworkDhcpServer object itself.
-
withDisplayName
public WorkloadNetworkDhcpServer withDisplayName(String displayName)
Set the displayName property: Display name of the DHCP entity.- Overrides:
withDisplayName
in classWorkloadNetworkDhcpEntity
- Parameters:
displayName
- the displayName value to set.- Returns:
- the WorkloadNetworkDhcpEntity object itself.
-
withRevision
public WorkloadNetworkDhcpServer withRevision(Long revision)
Set the revision property: NSX revision number.- Overrides:
withRevision
in classWorkloadNetworkDhcpEntity
- Parameters:
revision
- the revision value to set.- Returns:
- the WorkloadNetworkDhcpEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classWorkloadNetworkDhcpEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-