Class BastionActiveSessionInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.BastionActiveSessionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BastionActiveSessionInner>
public final class BastionActiveSessionInner
extends Object
implements com.azure.json.JsonSerializable<BastionActiveSessionInner>
The session detail for a target.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BastionActiveSessionInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BastionActiveSessionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BastionActiveSessionInner from the JsonReader.protocol()Get the protocol property: The protocol used to connect to the target.Get the resourceType property: The type of the resource.Get the sessionDurationInMins property: Duration in mins the session has been active.Get the sessionId property: A unique id for the session.Get the startTime property: The time when the session started.Get the targetHostname property: The host name of the target.Get the targetIpAddress property: The IP Address of the target.Get the targetResourceGroup property: The resource group of the target.Get the targetResourceId property: The resource id of the target.Get the targetSubscriptionId property: The subscription id for the target virtual machine.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) username()Get the username property: The user name who is active on this session.voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BastionActiveSessionInner
public BastionActiveSessionInner()Creates an instance of BastionActiveSessionInner class.
-
-
Method Details
-
sessionId
Get the sessionId property: A unique id for the session.- Returns:
- the sessionId value.
-
startTime
Get the startTime property: The time when the session started.- Returns:
- the startTime value.
-
targetSubscriptionId
Get the targetSubscriptionId property: The subscription id for the target virtual machine.- Returns:
- the targetSubscriptionId value.
-
resourceType
Get the resourceType property: The type of the resource.- Returns:
- the resourceType value.
-
targetHostname
Get the targetHostname property: The host name of the target.- Returns:
- the targetHostname value.
-
targetResourceGroup
Get the targetResourceGroup property: The resource group of the target.- Returns:
- the targetResourceGroup value.
-
username
Get the username property: The user name who is active on this session.- Returns:
- the username value.
-
targetIpAddress
Get the targetIpAddress property: The IP Address of the target.- Returns:
- the targetIpAddress value.
-
protocol
Get the protocol property: The protocol used to connect to the target.- Returns:
- the protocol value.
-
targetResourceId
Get the targetResourceId property: The resource id of the target.- Returns:
- the targetResourceId value.
-
sessionDurationInMins
Get the sessionDurationInMins property: Duration in mins the session has been active.- Returns:
- the sessionDurationInMins value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BastionActiveSessionInner>- Throws:
IOException
-
fromJson
public static BastionActiveSessionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BastionActiveSessionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BastionActiveSessionInner 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 BastionActiveSessionInner.
-