Class CheckServiceProviderAvailabilityInput

java.lang.Object
com.azure.resourcemanager.peering.models.CheckServiceProviderAvailabilityInput
All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckServiceProviderAvailabilityInput>

public final class CheckServiceProviderAvailabilityInput extends Object implements com.azure.json.JsonSerializable<CheckServiceProviderAvailabilityInput>
Class for CheckServiceProviderAvailabilityInput.
  • Constructor Details

    • CheckServiceProviderAvailabilityInput

      public CheckServiceProviderAvailabilityInput()
      Creates an instance of CheckServiceProviderAvailabilityInput class.
  • Method Details

    • peeringServiceLocation

      public String peeringServiceLocation()
      Get the peeringServiceLocation property: Gets or sets the peering service location.
      Returns:
      the peeringServiceLocation value.
    • withPeeringServiceLocation

      public CheckServiceProviderAvailabilityInput withPeeringServiceLocation(String peeringServiceLocation)
      Set the peeringServiceLocation property: Gets or sets the peering service location.
      Parameters:
      peeringServiceLocation - the peeringServiceLocation value to set.
      Returns:
      the CheckServiceProviderAvailabilityInput object itself.
    • peeringServiceProvider

      public String peeringServiceProvider()
      Get the peeringServiceProvider property: Gets or sets the peering service provider.
      Returns:
      the peeringServiceProvider value.
    • withPeeringServiceProvider

      public CheckServiceProviderAvailabilityInput withPeeringServiceProvider(String peeringServiceProvider)
      Set the peeringServiceProvider property: Gets or sets the peering service provider.
      Parameters:
      peeringServiceProvider - the peeringServiceProvider value to set.
      Returns:
      the CheckServiceProviderAvailabilityInput object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CheckServiceProviderAvailabilityInput>
      Throws:
      IOException
    • fromJson

      public static CheckServiceProviderAvailabilityInput fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CheckServiceProviderAvailabilityInput from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CheckServiceProviderAvailabilityInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the CheckServiceProviderAvailabilityInput.