Class WorkloadNetworkDhcpServer
java.lang.Object
com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpEntity
com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpServer
NSX DHCP Server.
-
Constructor Summary
ConstructorDescriptionCreates an instance of WorkloadNetworkDhcpServer class. -
Method Summary
Modifier and TypeMethodDescriptionGet the leaseTime property: DHCP Server Lease Time.Get the serverAddress property: DHCP Server Address.void
validate()
Validates the instance.withDisplayName
(String displayName) Set the displayName property: Display name of the DHCP entity.withLeaseTime
(Long leaseTime) Set the leaseTime property: DHCP Server Lease Time.withRevision
(Long revision) Set the revision property: NSX revision number.withServerAddress
(String serverAddress) Set the serverAddress property: DHCP Server Address.Methods inherited from class com.azure.resourcemanager.avs.models.WorkloadNetworkDhcpEntity
displayName, provisioningState, revision, segments
-
Constructor Details
-
WorkloadNetworkDhcpServer
public WorkloadNetworkDhcpServer()Creates an instance of WorkloadNetworkDhcpServer class.
-
-
Method Details
-
serverAddress
Get the serverAddress property: DHCP Server Address.- Returns:
- the serverAddress value.
-
withServerAddress
Set the serverAddress property: DHCP Server Address.- Parameters:
serverAddress
- the serverAddress value to set.- Returns:
- the WorkloadNetworkDhcpServer object itself.
-
leaseTime
Get the leaseTime property: DHCP Server Lease Time.- Returns:
- the leaseTime value.
-
withLeaseTime
Set the leaseTime property: DHCP Server Lease Time.- Parameters:
leaseTime
- the leaseTime value to set.- Returns:
- the WorkloadNetworkDhcpServer object itself.
-
withDisplayName
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
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.
-