BastionShareableLinkInner Class

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

Implements

public final class BastionShareableLinkInner
implements JsonSerializable<BastionShareableLinkInner>

Bastion Shareable Link.

Constructor Summary

Constructor Description
BastionShareableLinkInner()

Creates an instance of BastionShareableLinkInner class.

Method Summary

Modifier and Type Method and Description
String bsl()

Get the bsl property: The unique Bastion Shareable Link to the virtual machine.

String createdAt()

Get the createdAt property: The time when the link was created.

static BastionShareableLinkInner fromJson(JsonReader jsonReader)

Reads an instance of BastionShareableLinkInner from the JsonReader.

String message()

Get the message property: Optional field indicating the warning or error message related to the vm in case of partial failure.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VM vm()

Get the vm property: Reference of the virtual machine resource.

BastionShareableLinkInner withVm(VM vm)

Set the vm property: Reference of the virtual machine resource.

Methods inherited from java.lang.Object

Constructor Details

BastionShareableLinkInner

public BastionShareableLinkInner()

Creates an instance of BastionShareableLinkInner class.

Method Details

bsl

public String bsl()

Get the bsl property: The unique Bastion Shareable Link to the virtual machine.

Returns:

the bsl value.

createdAt

public String createdAt()

Get the createdAt property: The time when the link was created.

Returns:

the createdAt value.

fromJson

public static BastionShareableLinkInner fromJson(JsonReader jsonReader)

Reads an instance of BastionShareableLinkInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BastionShareableLinkInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

message

public String message()

Get the message property: Optional field indicating the warning or error message related to the vm in case of partial failure.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vm

public VM vm()

Get the vm property: Reference of the virtual machine resource.

Returns:

the vm value.

withVm

public BastionShareableLinkInner withVm(VM vm)

Set the vm property: Reference of the virtual machine resource.

Parameters:

vm - the vm value to set.

Returns:

the BastionShareableLinkInner object itself.

Applies to