ServerFarmInstance Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ServerFarmInstance
- com.
Implements
public final class ServerFarmInstance
implements JsonSerializable<ServerFarmInstance>
Represents details of a single instance in a server farm.
Constructor Summary
| Constructor | Description |
|---|---|
| ServerFarmInstance() |
Creates an instance of Server |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Server |
fromJson(JsonReader jsonReader)
Reads an instance of Server |
| String |
instanceName()
Get the instance |
| String |
ipAddress()
Get the ip |
| String |
status()
Get the status property: The instance status. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Server |
withInstanceName(String instanceName)
Set the instance |
|
Server |
withIpAddress(String ipAddress)
Set the ip |
|
Server |
withStatus(String status)
Set the status property: The instance status. |
Methods inherited from java.lang.Object
Constructor Details
ServerFarmInstance
public ServerFarmInstance()
Creates an instance of ServerFarmInstance class.
Method Details
fromJson
public static ServerFarmInstance fromJson(JsonReader jsonReader)
Reads an instance of ServerFarmInstance from the JsonReader.
Parameters:
Returns:
Throws:
instanceName
public String instanceName()
Get the instanceName property: The instance name.
Returns:
ipAddress
public String ipAddress()
Get the ipAddress property: The instance IP address.
Returns:
status
public String status()
Get the status property: The instance status.
Returns:
toJson
validate
public void validate()
Validates the instance.
withInstanceName
public ServerFarmInstance withInstanceName(String instanceName)
Set the instanceName property: The instance name.
Parameters:
Returns:
withIpAddress
public ServerFarmInstance withIpAddress(String ipAddress)
Set the ipAddress property: The instance IP address.
Parameters:
Returns:
withStatus
public ServerFarmInstance withStatus(String status)
Set the status property: The instance status.
Parameters:
Returns: