Class BastionActiveSessionInner

java.lang.Object
com.azure.resourcemanager.network.fluent.models.BastionActiveSessionInner

public final class BastionActiveSessionInner extends Object
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.