BastionSessionStateInner Class

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

Implements

public final class BastionSessionStateInner
implements JsonSerializable<BastionSessionStateInner>

The session state detail for a target.

Constructor Summary

Constructor Description
BastionSessionStateInner()

Creates an instance of BastionSessionStateInner class.

Method Summary

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

Reads an instance of BastionSessionStateInner from the JsonReader.

String message()

Get the message property: Used for extra information.

String sessionId()

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

String state()

Get the state property: The state of the session.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

BastionSessionStateInner

public BastionSessionStateInner()

Creates an instance of BastionSessionStateInner class.

Method Details

fromJson

public static BastionSessionStateInner fromJson(JsonReader jsonReader)

Reads an instance of BastionSessionStateInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BastionSessionStateInner 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 BastionSessionStateInner.

message

public String message()

Get the message property: Used for extra information.

Returns:

the message value.

sessionId

public String sessionId()

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

Returns:

the sessionId value.

state

public String state()

Get the state property: The state of the session. Disconnected/Failed/NotFound.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to