ServerInfo Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ServerInfo
- com.
Implements
public final class ServerInfo
implements JsonSerializable<ServerInfo>
Server info for the server trust group.
Constructor Summary
Constructor | Description |
---|---|
ServerInfo() |
Creates an instance of Server |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Server |
fromJson(JsonReader jsonReader)
Reads an instance of Server |
String |
serverId()
Get the server |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Server |
withServerId(String serverId)
Set the server |
Methods inherited from java.lang.Object
Constructor Details
ServerInfo
public ServerInfo()
Creates an instance of ServerInfo class.
Method Details
fromJson
public static ServerInfo fromJson(JsonReader jsonReader)
Reads an instance of ServerInfo from the JsonReader.
Parameters:
Returns:
Throws:
serverId
public String serverId()
Get the serverId property: Server Id.
Returns:
toJson
validate
public void validate()
Validates the instance.
withServerId
public ServerInfo withServerId(String serverId)
Set the serverId property: Server Id.
Parameters:
Returns:
Applies to
Azure SDK for Java