Class BastionHostListResult

java.lang.Object
com.azure.resourcemanager.network.models.BastionHostListResult
All Implemented Interfaces:
com.azure.json.JsonSerializable<BastionHostListResult>

public final class BastionHostListResult extends Object implements com.azure.json.JsonSerializable<BastionHostListResult>
Response for ListBastionHosts API service call.
  • Constructor Details

    • BastionHostListResult

      public BastionHostListResult()
      Creates an instance of BastionHostListResult class.
  • Method Details

    • value

      public List<BastionHostInner> value()
      Get the value property: List of Bastion Hosts in a resource group.
      Returns:
      the value value.
    • withValue

      public BastionHostListResult withValue(List<BastionHostInner> value)
      Set the value property: List of Bastion Hosts in a resource group.
      Parameters:
      value - the value value to set.
      Returns:
      the BastionHostListResult object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: URL to get the next set of results.
      Returns:
      the nextLink value.
    • withNextLink

      public BastionHostListResult withNextLink(String nextLink)
      Set the nextLink property: URL to get the next set of results.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the BastionHostListResult object itself.
    • 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<BastionHostListResult>
      Throws:
      IOException
    • fromJson

      public static BastionHostListResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BastionHostListResult from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BastionHostListResult 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 BastionHostListResult.