Class EndpointPropertiesSubnetsItem

java.lang.Object
com.azure.resourcemanager.trafficmanager.models.EndpointPropertiesSubnetsItem

public final class EndpointPropertiesSubnetsItem extends Object
Subnet first address, scope, and/or last address.
  • Constructor Details

    • EndpointPropertiesSubnetsItem

      public EndpointPropertiesSubnetsItem()
  • Method Details

    • first

      public String first()
      Get the first property: First address in the subnet.
      Returns:
      the first value.
    • withFirst

      public EndpointPropertiesSubnetsItem withFirst(String first)
      Set the first property: First address in the subnet.
      Parameters:
      first - the first value to set.
      Returns:
      the EndpointPropertiesSubnetsItem object itself.
    • last

      public String last()
      Get the last property: Last address in the subnet.
      Returns:
      the last value.
    • withLast

      public EndpointPropertiesSubnetsItem withLast(String last)
      Set the last property: Last address in the subnet.
      Parameters:
      last - the last value to set.
      Returns:
      the EndpointPropertiesSubnetsItem object itself.
    • scope

      public Integer scope()
      Get the scope property: Block size (number of leading bits in the subnet mask).
      Returns:
      the scope value.
    • withScope

      public EndpointPropertiesSubnetsItem withScope(Integer scope)
      Set the scope property: Block size (number of leading bits in the subnet mask).
      Parameters:
      scope - the scope value to set.
      Returns:
      the EndpointPropertiesSubnetsItem object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.