Class AvailableServiceAliasInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.AvailableServiceAliasInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AvailableServiceAliasInner>
public final class AvailableServiceAliasInner
extends Object
implements com.azure.json.JsonSerializable<AvailableServiceAliasInner>
The available service alias.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AvailableServiceAliasInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AvailableServiceAliasInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvailableServiceAliasInner from the JsonReader.id()Get the id property: The ID of the service alias.name()Get the name property: The name of the service alias.Get the resourceName property: The resource name of the service alias.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.Set the id property: The ID of the service alias.Set the name property: The name of the service alias.withResourceName(String resourceName) Set the resourceName property: The resource name of the service alias.Set the type property: The type of the resource.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
-
AvailableServiceAliasInner
public AvailableServiceAliasInner()Creates an instance of AvailableServiceAliasInner class.
-
-
Method Details
-
name
Get the name property: The name of the service alias.- Returns:
- the name value.
-
withName
Set the name property: The name of the service alias.- Parameters:
name- the name value to set.- Returns:
- the AvailableServiceAliasInner object itself.
-
id
Get the id property: The ID of the service alias.- Returns:
- the id value.
-
withId
Set the id property: The ID of the service alias.- Parameters:
id- the id value to set.- Returns:
- the AvailableServiceAliasInner object itself.
-
type
Get the type property: The type of the resource.- Returns:
- the type value.
-
withType
Set the type property: The type of the resource.- Parameters:
type- the type value to set.- Returns:
- the AvailableServiceAliasInner object itself.
-
resourceName
Get the resourceName property: The resource name of the service alias.- Returns:
- the resourceName value.
-
withResourceName
Set the resourceName property: The resource name of the service alias.- Parameters:
resourceName- the resourceName value to set.- Returns:
- the AvailableServiceAliasInner 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<AvailableServiceAliasInner>- Throws:
IOException
-
fromJson
public static AvailableServiceAliasInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AvailableServiceAliasInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AvailableServiceAliasInner 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 AvailableServiceAliasInner.
-