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 Details

    • BastionActiveSessionInner

      public BastionActiveSessionInner()
      Creates an instance of BastionActiveSessionInner class.
  • Method Details

    • sessionId

      public String sessionId()
      Get the sessionId property: A unique id for the session.
      Returns:
      the sessionId value.
    • startTime

      public Object startTime()
      Get the startTime property: The time when the session started.
      Returns:
      the startTime value.
    • targetSubscriptionId

      public String targetSubscriptionId()
      Get the targetSubscriptionId property: The subscription id for the target virtual machine.
      Returns:
      the targetSubscriptionId value.
    • resourceType

      public String resourceType()
      Get the resourceType property: The type of the resource.
      Returns:
      the resourceType value.
    • targetHostname

      public String targetHostname()
      Get the targetHostname property: The host name of the target.
      Returns:
      the targetHostname value.
    • targetResourceGroup

      public String targetResourceGroup()
      Get the targetResourceGroup property: The resource group of the target.
      Returns:
      the targetResourceGroup value.
    • username

      public String username()
      Get the username property: The user name who is active on this session.
      Returns:
      the username value.
    • targetIpAddress

      public String targetIpAddress()
      Get the targetIpAddress property: The IP Address of the target.
      Returns:
      the targetIpAddress value.
    • protocol

      public BastionConnectProtocol protocol()
      Get the protocol property: The protocol used to connect to the target.
      Returns:
      the protocol value.
    • targetResourceId

      public String targetResourceId()
      Get the targetResourceId property: The resource id of the target.
      Returns:
      the targetResourceId value.
    • sessionDurationInMins

      public Float 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.