Class DeletedAutomationAccount

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

public final class DeletedAutomationAccount extends Object implements com.azure.json.JsonSerializable<DeletedAutomationAccount>
Definition of the deleted automation account type.
  • Constructor Details

    • DeletedAutomationAccount

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

    • id

      public String id()
      Get the id property: The resource id.
      Returns:
      the id value.
    • withId

      public DeletedAutomationAccount withId(String id)
      Set the id property: The resource id.
      Parameters:
      id - the id value to set.
      Returns:
      the DeletedAutomationAccount object itself.
    • name

      public String name()
      Get the name property: Gets or sets name of the resource.
      Returns:
      the name value.
    • withName

      public DeletedAutomationAccount withName(String name)
      Set the name property: Gets or sets name of the resource.
      Parameters:
      name - the name value to set.
      Returns:
      the DeletedAutomationAccount object itself.
    • type

      public String type()
      Get the type property: The resource type.
      Returns:
      the type value.
    • withType

      public DeletedAutomationAccount withType(String type)
      Set the type property: The resource type.
      Parameters:
      type - the type value to set.
      Returns:
      the DeletedAutomationAccount object itself.
    • location

      public String location()
      Get the location property: Gets or sets the location of the resource.
      Returns:
      the location value.
    • withLocation

      public DeletedAutomationAccount withLocation(String location)
      Set the location property: Gets or sets the location of the resource.
      Parameters:
      location - the location value to set.
      Returns:
      the DeletedAutomationAccount object itself.
    • automationAccountResourceId

      public String automationAccountResourceId()
      Get the automationAccountResourceId property: Gets or sets the Automation Account Resource Id.
      Returns:
      the automationAccountResourceId value.
    • withAutomationAccountResourceId

      public DeletedAutomationAccount withAutomationAccountResourceId(String automationAccountResourceId)
      Set the automationAccountResourceId property: Gets or sets the Automation Account Resource Id.
      Parameters:
      automationAccountResourceId - the automationAccountResourceId value to set.
      Returns:
      the DeletedAutomationAccount object itself.
    • automationAccountId

      public String automationAccountId()
      Get the automationAccountId property: Gets or sets the Automation Account Id.
      Returns:
      the automationAccountId value.
    • withAutomationAccountId

      public DeletedAutomationAccount withAutomationAccountId(String automationAccountId)
      Set the automationAccountId property: Gets or sets the Automation Account Id.
      Parameters:
      automationAccountId - the automationAccountId value to set.
      Returns:
      the DeletedAutomationAccount object itself.
    • locationPropertiesLocation

      public String locationPropertiesLocation()
      Get the location property: Gets or sets the location of the resource.
      Returns:
      the location value.
    • withLocationPropertiesLocation

      public DeletedAutomationAccount withLocationPropertiesLocation(String location)
      Set the location property: Gets or sets the location of the resource.
      Parameters:
      location - the location value to set.
      Returns:
      the DeletedAutomationAccount object itself.
    • deletionTime

      public OffsetDateTime deletionTime()
      Get the deletionTime property: Gets the deletion time.
      Returns:
      the deletionTime 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<DeletedAutomationAccount>
      Throws:
      IOException
    • fromJson

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