Class EnvironmentServer
java.lang.Object
com.azure.resourcemanager.apicenter.models.EnvironmentServer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EnvironmentServer>
public final class EnvironmentServer
extends Object
implements com.azure.json.JsonSerializable<EnvironmentServer>
Server information of the environment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentServer
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EnvironmentServer from the JsonReader.Get the managementPortalUri property: The location of the management portal.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Type of the server that represents the environment.void
validate()
Validates the instance.withManagementPortalUri
(List<String> managementPortalUri) Set the managementPortalUri property: The location of the management portal.Set the type property: Type of the server that represents the environment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EnvironmentServer
public EnvironmentServer()Creates an instance of EnvironmentServer class.
-
-
Method Details
-
type
Get the type property: Type of the server that represents the environment.- Returns:
- the type value.
-
withType
Set the type property: Type of the server that represents the environment.- Parameters:
type
- the type value to set.- Returns:
- the EnvironmentServer object itself.
-
managementPortalUri
Get the managementPortalUri property: The location of the management portal.- Returns:
- the managementPortalUri value.
-
withManagementPortalUri
Set the managementPortalUri property: The location of the management portal.- Parameters:
managementPortalUri
- the managementPortalUri value to set.- Returns:
- the EnvironmentServer object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<EnvironmentServer>
- Throws:
IOException
-
fromJson
Reads an instance of EnvironmentServer from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of EnvironmentServer 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 EnvironmentServer.
-