Class WorkloadNetworkSegmentSubnet
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.WorkloadNetworkSegmentSubnet
-
public final class WorkloadNetworkSegmentSubnet extends Object
Subnet configuration for segment.
-
-
Constructor Summary
Constructors Constructor Description WorkloadNetworkSegmentSubnet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
dhcpRanges()
Get the dhcpRanges property: DHCP Range assigned for subnet.String
gatewayAddress()
Get the gatewayAddress property: Gateway address.void
validate()
Validates the instance.WorkloadNetworkSegmentSubnet
withDhcpRanges(List<String> dhcpRanges)
Set the dhcpRanges property: DHCP Range assigned for subnet.WorkloadNetworkSegmentSubnet
withGatewayAddress(String gatewayAddress)
Set the gatewayAddress property: Gateway address.
-
-
-
Method Detail
-
dhcpRanges
public List<String> dhcpRanges()
Get the dhcpRanges property: DHCP Range assigned for subnet.- Returns:
- the dhcpRanges value.
-
withDhcpRanges
public WorkloadNetworkSegmentSubnet withDhcpRanges(List<String> dhcpRanges)
Set the dhcpRanges property: DHCP Range assigned for subnet.- Parameters:
dhcpRanges
- the dhcpRanges value to set.- Returns:
- the WorkloadNetworkSegmentSubnet object itself.
-
gatewayAddress
public String gatewayAddress()
Get the gatewayAddress property: Gateway address.- Returns:
- the gatewayAddress value.
-
withGatewayAddress
public WorkloadNetworkSegmentSubnet withGatewayAddress(String gatewayAddress)
Set the gatewayAddress property: Gateway address.- Parameters:
gatewayAddress
- the gatewayAddress value to set.- Returns:
- the WorkloadNetworkSegmentSubnet object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-