Class NetworkInterfaceIpConfiguration
java.lang.Object
com.azure.resourcemanager.hybridnetwork.models.NetworkInterfaceIpConfiguration
Network interface IP configuration properties.
-
Constructor Summary
ConstructorDescriptionCreates an instance of NetworkInterfaceIpConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dnsServers property: The list of DNS servers IP addresses.gateway()
Get the gateway property: The value of the gateway.Get the ipAddress property: The value of the IP address.Get the ipAllocationMethod property: IP address allocation method.Get the ipVersion property: IP address version.subnet()
Get the subnet property: The value of the subnet.void
validate()
Validates the instance.withDnsServers
(List<String> dnsServers) Set the dnsServers property: The list of DNS servers IP addresses.withGateway
(String gateway) Set the gateway property: The value of the gateway.withIpAddress
(String ipAddress) Set the ipAddress property: The value of the IP address.withIpAllocationMethod
(IpAllocationMethod ipAllocationMethod) Set the ipAllocationMethod property: IP address allocation method.withIpVersion
(IpVersion ipVersion) Set the ipVersion property: IP address version.withSubnet
(String subnet) Set the subnet property: The value of the subnet.
-
Constructor Details
-
NetworkInterfaceIpConfiguration
public NetworkInterfaceIpConfiguration()Creates an instance of NetworkInterfaceIpConfiguration class.
-
-
Method Details
-
ipAllocationMethod
Get the ipAllocationMethod property: IP address allocation method.- Returns:
- the ipAllocationMethod value.
-
withIpAllocationMethod
public NetworkInterfaceIpConfiguration withIpAllocationMethod(IpAllocationMethod ipAllocationMethod) Set the ipAllocationMethod property: IP address allocation method.- Parameters:
ipAllocationMethod
- the ipAllocationMethod value to set.- Returns:
- the NetworkInterfaceIpConfiguration object itself.
-
ipAddress
Get the ipAddress property: The value of the IP address.- Returns:
- the ipAddress value.
-
withIpAddress
Set the ipAddress property: The value of the IP address.- Parameters:
ipAddress
- the ipAddress value to set.- Returns:
- the NetworkInterfaceIpConfiguration object itself.
-
subnet
Get the subnet property: The value of the subnet.- Returns:
- the subnet value.
-
withSubnet
Set the subnet property: The value of the subnet.- Parameters:
subnet
- the subnet value to set.- Returns:
- the NetworkInterfaceIpConfiguration object itself.
-
gateway
Get the gateway property: The value of the gateway.- Returns:
- the gateway value.
-
withGateway
Set the gateway property: The value of the gateway.- Parameters:
gateway
- the gateway value to set.- Returns:
- the NetworkInterfaceIpConfiguration object itself.
-
ipVersion
Get the ipVersion property: IP address version.- Returns:
- the ipVersion value.
-
withIpVersion
Set the ipVersion property: IP address version.- Parameters:
ipVersion
- the ipVersion value to set.- Returns:
- the NetworkInterfaceIpConfiguration object itself.
-
dnsServers
Get the dnsServers property: The list of DNS servers IP addresses.- Returns:
- the dnsServers value.
-
withDnsServers
Set the dnsServers property: The list of DNS servers IP addresses.- Parameters:
dnsServers
- the dnsServers value to set.- Returns:
- the NetworkInterfaceIpConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-