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 Summary
ConstructorsConstructorDescriptionCreates an instance of CheckServiceProviderAvailabilityInput class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CheckServiceProviderAvailabilityInput from the JsonReader.Get the peeringServiceLocation property: Gets or sets the peering service location.Get the peeringServiceProvider property: Gets or sets the peering service provider.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPeeringServiceLocation(String peeringServiceLocation) Set the peeringServiceLocation property: Gets or sets the peering service location.withPeeringServiceProvider(String peeringServiceProvider) Set the peeringServiceProvider property: Gets or sets the peering service provider.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CheckServiceProviderAvailabilityInput
public CheckServiceProviderAvailabilityInput()Creates an instance of CheckServiceProviderAvailabilityInput class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-