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 Summary
Constructors Constructor Description BastionActiveSessionInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BastionConnectProtocolprotocol()Get the protocol property: The protocol used to connect to the target.StringresourceType()Get the resourceType property: The type of the resource.FloatsessionDurationInMins()Get the sessionDurationInMins property: Duration in mins the session has been active.StringsessionId()Get the sessionId property: A unique id for the session.ObjectstartTime()Get the startTime property: The time when the session started.StringtargetHostname()Get the targetHostname property: The host name of the target.StringtargetIpAddress()Get the targetIpAddress property: The IP Address of the target.StringtargetResourceGroup()Get the targetResourceGroup property: The resource group of the target.StringtargetResourceId()Get the targetResourceId property: The resource id of the target.StringtargetSubscriptionId()Get the targetSubscriptionId property: The subscription id for the target virtual machine.Stringusername()Get the username property: The user name who is active on this session.voidvalidate()Validates the instance.
-
-
-
Method Detail
-
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.
-
-