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 Summary
ConstructorsConstructorDescriptionCreates an instance of DeletedAutomationAccount class. -
Method Summary
Modifier and TypeMethodDescriptionGet the automationAccountId property: Gets or sets the Automation Account Id.Get the automationAccountResourceId property: Gets or sets the Automation Account Resource Id.Get the deletionTime property: Gets the deletion time.static DeletedAutomationAccount
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DeletedAutomationAccount from the JsonReader.id()
Get the id property: The resource id.location()
Get the location property: Gets or sets the location of the resource.Get the location property: Gets or sets the location of the resource.name()
Get the name property: Gets or sets name of the resource.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The resource type.void
validate()
Validates the instance.withAutomationAccountId
(String automationAccountId) Set the automationAccountId property: Gets or sets the Automation Account Id.withAutomationAccountResourceId
(String automationAccountResourceId) Set the automationAccountResourceId property: Gets or sets the Automation Account Resource Id.Set the id property: The resource id.withLocation
(String location) Set the location property: Gets or sets the location of the resource.withLocationPropertiesLocation
(String location) Set the location property: Gets or sets the location of the resource.Set the name property: Gets or sets name of the resource.Set the type property: The resource type.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
-
DeletedAutomationAccount
public DeletedAutomationAccount()Creates an instance of DeletedAutomationAccount class.
-
-
Method Details
-
id
Get the id property: The resource id.- Returns:
- the id value.
-
withId
Set the id property: The resource id.- Parameters:
id
- the id value to set.- Returns:
- the DeletedAutomationAccount object itself.
-
name
Get the name property: Gets or sets name of the resource.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets name of the resource.- Parameters:
name
- the name value to set.- Returns:
- the DeletedAutomationAccount object itself.
-
type
Get the type property: The resource type.- Returns:
- the type value.
-
withType
Set the type property: The resource type.- Parameters:
type
- the type value to set.- Returns:
- the DeletedAutomationAccount object itself.
-
location
Get the location property: Gets or sets the location of the resource.- Returns:
- the location value.
-
withLocation
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
Get the automationAccountResourceId property: Gets or sets the Automation Account Resource Id.- Returns:
- the automationAccountResourceId value.
-
withAutomationAccountResourceId
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
Get the automationAccountId property: Gets or sets the Automation Account Id.- Returns:
- the automationAccountId value.
-
withAutomationAccountId
Set the automationAccountId property: Gets or sets the Automation Account Id.- Parameters:
automationAccountId
- the automationAccountId value to set.- Returns:
- the DeletedAutomationAccount object itself.
-
locationPropertiesLocation
Get the location property: Gets or sets the location of the resource.- Returns:
- the location value.
-
withLocationPropertiesLocation
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
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
- Specified by:
toJson
in interfacecom.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.
-