BastionActiveSessionInner Class
- java.
lang. Object - com.
azure. resourcemanager. network. fluent. models. BastionActiveSessionInner
- com.
Implements
public final class BastionActiveSessionInner
implements JsonSerializable<BastionActiveSessionInner>
The session detail for a target.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Bastion |
fromJson(JsonReader jsonReader)
Reads an instance of Bastion |
|
Bastion |
protocol()
Get the protocol property: The protocol used to connect to the target. |
| String |
resourceType()
Get the resource |
| Float |
sessionDurationInMins()
Get the session |
| String |
sessionId()
Get the session |
| Object |
startTime()
Get the start |
| String |
targetHostName()
Get the target |
| String |
targetIpAddress()
Get the target |
| String |
targetResourceGroup()
Get the target |
| String |
targetResourceId()
Get the target |
| String |
targetSubscriptionId()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: The user name who is active on this session. |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Method Details
fromJson
public static BastionActiveSessionInner fromJson(JsonReader jsonReader)
Reads an instance of BastionActiveSessionInner from the JsonReader.
Parameters:
Returns:
Throws:
protocol
public BastionConnectProtocol protocol()
Get the protocol property: The protocol used to connect to the target.
Returns:
resourceType
public String resourceType()
Get the resourceType property: The type of the resource.
Returns:
sessionDurationInMins
public Float sessionDurationInMins()
Get the sessionDurationInMins property: Duration in mins the session has been active.
Returns:
sessionId
public String sessionId()
Get the sessionId property: A unique id for the session.
Returns:
startTime
public Object startTime()
Get the startTime property: The time when the session started.
Returns:
targetHostName
public String targetHostName()
Get the targetHostName property: The host name of the target.
Returns:
targetIpAddress
public String targetIpAddress()
Get the targetIpAddress property: The IP Address of the target.
Returns:
targetResourceGroup
public String targetResourceGroup()
Get the targetResourceGroup property: The resource group of the target.
Returns:
targetResourceId
public String targetResourceId()
Get the targetResourceId property: The resource id of the target.
Returns:
targetSubscriptionId
public String targetSubscriptionId()
Get the targetSubscriptionId property: The subscription id for the target virtual machine.
Returns:
toJson
username
public String username()
Get the username property: The user name who is active on this session.
Returns:
validate
public void validate()
Validates the instance.