Class AvailableProvidersListCity


  • public final class AvailableProvidersListCity
    extends Object
    City or town details.
    • Constructor Detail

      • AvailableProvidersListCity

        public AvailableProvidersListCity()
    • Method Detail

      • cityName

        public String cityName()
        Get the cityName property: The city or town name.
        Returns:
        the cityName value.
      • withCityName

        public AvailableProvidersListCity withCityName​(String cityName)
        Set the cityName property: The city or town name.
        Parameters:
        cityName - the cityName value to set.
        Returns:
        the AvailableProvidersListCity object itself.
      • providers

        public List<String> providers()
        Get the providers property: A list of Internet service providers.
        Returns:
        the providers value.
      • withProviders

        public AvailableProvidersListCity withProviders​(List<String> providers)
        Set the providers property: A list of Internet service providers.
        Parameters:
        providers - the providers value to set.
        Returns:
        the AvailableProvidersListCity object itself.
      • validate

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