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

    Constructors
    Constructor
    Description
    Creates an instance of BastionShareableLinkInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    bsl()
    Get the bsl property: The unique Bastion Shareable Link to the virtual machine.
    Get the createdAt property: The time when the link was created.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BastionShareableLinkInner from the JsonReader.
    Get the message property: Optional field indicating the warning or error message related to the vm in case of partial failure.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    vm()
    Get the vm property: Reference of the virtual machine resource.
    withVm(VM vm)
    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, wait

    Methods 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

      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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.