Class BastionShareableLinkInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.BastionShareableLinkInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BastionShareableLinkInner>
public final class BastionShareableLinkInner
extends Object
implements com.azure.json.JsonSerializable<BastionShareableLinkInner>
Bastion Shareable Link.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BastionShareableLinkInner class. -
Method Summary
Modifier and TypeMethodDescriptionbsl()Get the bsl property: The unique Bastion Shareable Link to the virtual machine.Get the createdAt property: The time when the link was created.static BastionShareableLinkInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BastionShareableLinkInner from the JsonReader.message()Get the message property: Optional field indicating the warning or error message related to the vm in case of partial failure.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vm()Get the vm property: Reference of the virtual machine resource.Set the vm property: Reference of the virtual machine resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BastionShareableLinkInner
public BastionShareableLinkInner()Creates an instance of BastionShareableLinkInner class.
-
-
Method Details
-
vm
Get the vm property: Reference of the virtual machine resource.- Returns:
- the vm value.
-
withVm
Set the vm property: Reference of the virtual machine resource.- Parameters:
vm- the vm value to set.- Returns:
- the BastionShareableLinkInner object itself.
-
bsl
Get the bsl property: The unique Bastion Shareable Link to the virtual machine.- Returns:
- the bsl value.
-
createdAt
Get the createdAt property: The time when the link was created.- Returns:
- the createdAt value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BastionShareableLinkInner>- Throws:
IOException
-
fromJson
public static BastionShareableLinkInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BastionShareableLinkInner.
-