Class ServerFarmInstanceDetailsInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.ServerFarmInstanceDetailsInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServerFarmInstanceDetailsInner>
public final class ServerFarmInstanceDetailsInner
extends Object
implements com.azure.json.JsonSerializable<ServerFarmInstanceDetailsInner>
Represents instance details for an app service plan.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServerFarmInstanceDetailsInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerFarmInstanceDetailsInner from the JsonReader.Get the instanceCount property: The total number of instances.Get the instances property: The list of server farm instances.Get the serverFarmName property: The server farm name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withInstanceCount(Integer instanceCount) Set the instanceCount property: The total number of instances.withInstances(List<ServerFarmInstance> instances) Set the instances property: The list of server farm instances.withServerFarmName(String serverFarmName) Set the serverFarmName property: The server farm name.Methods inherited from class 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
-
ServerFarmInstanceDetailsInner
public ServerFarmInstanceDetailsInner()Creates an instance of ServerFarmInstanceDetailsInner class.
-
-
Method Details
-
serverFarmName
Get the serverFarmName property: The server farm name.- Returns:
- the serverFarmName value.
-
withServerFarmName
Set the serverFarmName property: The server farm name.- Parameters:
serverFarmName- the serverFarmName value to set.- Returns:
- the ServerFarmInstanceDetailsInner object itself.
-
instances
Get the instances property: The list of server farm instances.- Returns:
- the instances value.
-
withInstances
Set the instances property: The list of server farm instances.- Parameters:
instances- the instances value to set.- Returns:
- the ServerFarmInstanceDetailsInner object itself.
-
instanceCount
Get the instanceCount property: The total number of instances.- Returns:
- the instanceCount value.
-
withInstanceCount
Set the instanceCount property: The total number of instances.- Parameters:
instanceCount- the instanceCount value to set.- Returns:
- the ServerFarmInstanceDetailsInner 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<ServerFarmInstanceDetailsInner>- Throws:
IOException
-
fromJson
public static ServerFarmInstanceDetailsInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServerFarmInstanceDetailsInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServerFarmInstanceDetailsInner 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 ServerFarmInstanceDetailsInner.
-