ConnectionInfo Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. ConnectionInfo
- com.
Implements
public class ConnectionInfo
implements JsonSerializable<ConnectionInfo>
Defines the connection properties of a server.
Constructor Summary
| Constructor | Description |
|---|---|
| ConnectionInfo() |
Creates an instance of Connection |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
| String |
password()
Get the password property: Password credential. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Type of connection info. |
| String |
username()
Get the username property: User name. |
| void |
validate()
Validates the instance. |
|
Connection |
withPassword(String password)
Set the password property: Password credential. |
|
Connection |
withUsername(String username)
Set the username property: User name. |
Methods inherited from java.lang.Object
Constructor Details
ConnectionInfo
public ConnectionInfo()
Creates an instance of ConnectionInfo class.
Method Details
fromJson
public static ConnectionInfo fromJson(JsonReader jsonReader)
Reads an instance of ConnectionInfo from the JsonReader.
Parameters:
Returns:
Throws:
password
public String password()
Get the password property: Password credential.
Returns:
toJson
type
public String type()
Get the type property: Type of connection info.
Returns:
username
public String username()
Get the username property: User name.
Returns:
validate
public void validate()
Validates the instance.
withPassword
public ConnectionInfo withPassword(String password)
Set the password property: Password credential.
Parameters:
Returns:
withUsername
public ConnectionInfo withUsername(String username)
Set the username property: User name.
Parameters:
Returns: