Class ExpressRouteFailoverConnectionResourceDetails

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

public final class ExpressRouteFailoverConnectionResourceDetails extends Object implements com.azure.json.JsonSerializable<ExpressRouteFailoverConnectionResourceDetails>
The ExpressRouteFailoverConnectionResourceDetails model.
  • Constructor Details

    • ExpressRouteFailoverConnectionResourceDetails

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

    • nrpResourceUri

      public String nrpResourceUri()
      Get the nrpResourceUri property: NRP Resource URI of the connection.
      Returns:
      the nrpResourceUri value.
    • withNrpResourceUri

      public ExpressRouteFailoverConnectionResourceDetails withNrpResourceUri(String nrpResourceUri)
      Set the nrpResourceUri property: NRP Resource URI of the connection.
      Parameters:
      nrpResourceUri - the nrpResourceUri value to set.
      Returns:
      the ExpressRouteFailoverConnectionResourceDetails object itself.
    • name

      public String name()
      Get the name property: Connection Name.
      Returns:
      the name value.
    • withName

      Set the name property: Connection Name.
      Parameters:
      name - the name value to set.
      Returns:
      the ExpressRouteFailoverConnectionResourceDetails object itself.
    • status

      public FailoverConnectionStatus status()
      Get the status property: The current status of the connection.
      Returns:
      the status value.
    • withStatus

      Set the status property: The current status of the connection.
      Parameters:
      status - the status value to set.
      Returns:
      the ExpressRouteFailoverConnectionResourceDetails object itself.
    • lastUpdatedTime

      public String lastUpdatedTime()
      Get the lastUpdatedTime property: Time when the connection was last updated.
      Returns:
      the lastUpdatedTime value.
    • withLastUpdatedTime

      public ExpressRouteFailoverConnectionResourceDetails withLastUpdatedTime(String lastUpdatedTime)
      Set the lastUpdatedTime property: Time when the connection was last updated.
      Parameters:
      lastUpdatedTime - the lastUpdatedTime value to set.
      Returns:
      the ExpressRouteFailoverConnectionResourceDetails 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<ExpressRouteFailoverConnectionResourceDetails>
      Throws:
      IOException
    • fromJson

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