BastionActiveSessionInner Class

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

Implements

public final class BastionActiveSessionInner
implements JsonSerializable<BastionActiveSessionInner>

The session detail for a target.

Constructor Summary

Constructor Description
BastionActiveSessionInner()

Creates an instance of BastionActiveSessionInner class.

Method Summary

Modifier and Type Method and Description
static BastionActiveSessionInner fromJson(JsonReader jsonReader)

Reads an instance of BastionActiveSessionInner from the JsonReader.

BastionConnectProtocol protocol()

Get the protocol property: The protocol used to connect to the target.

String resourceType()

Get the resourceType property: The type of the resource.

Float sessionDurationInMins()

Get the sessionDurationInMins property: Duration in mins the session has been active.

String sessionId()

Get the sessionId property: A unique id for the session.

Object startTime()

Get the startTime property: The time when the session started.

String targetHostname()

Get the targetHostname property: The host name of the target.

String targetIpAddress()

Get the targetIpAddress property: The IP Address of the target.

String targetResourceGroup()

Get the targetResourceGroup property: The resource group of the target.

String targetResourceId()

Get the targetResourceId property: The resource id of the target.

String targetSubscriptionId()

Get the targetSubscriptionId property: The subscription id for the target virtual machine.

JsonWriter 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

Constructor Details

BastionActiveSessionInner

public BastionActiveSessionInner()

Creates an instance of BastionActiveSessionInner class.

Method Details

fromJson

public static BastionActiveSessionInner fromJson(JsonReader jsonReader)

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.

protocol

public BastionConnectProtocol protocol()

Get the protocol property: The protocol used to connect to the target.

Returns:

the protocol value.

resourceType

public String resourceType()

Get the resourceType property: The type of the resource.

Returns:

the resourceType value.

sessionDurationInMins

public Float sessionDurationInMins()

Get the sessionDurationInMins property: Duration in mins the session has been active.

Returns:

the sessionDurationInMins value.

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.

targetHostname

public String targetHostname()

Get the targetHostname property: The host name of the target.

Returns:

the targetHostname value.

targetIpAddress

public String targetIpAddress()

Get the targetIpAddress property: The IP Address of the target.

Returns:

the targetIpAddress value.

targetResourceGroup

public String targetResourceGroup()

Get the targetResourceGroup property: The resource group of the target.

Returns:

the targetResourceGroup value.

targetResourceId

public String targetResourceId()

Get the targetResourceId property: The resource id of the target.

Returns:

the targetResourceId value.

targetSubscriptionId

public String targetSubscriptionId()

Get the targetSubscriptionId property: The subscription id for the target virtual machine.

Returns:

the targetSubscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: The user name who is active on this session.

Returns:

the username value.

validate

public void validate()

Validates the instance.

Applies to