Class StorageAccount
java.lang.Object
com.azure.resourcemanager.loganalytics.models.StorageAccount
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StorageAccount>
public final class StorageAccount
extends Object
implements com.azure.json.JsonSerializable<StorageAccount>
Describes a storage account connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageAccountfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StorageAccount from the JsonReader.id()Get the id property: The Azure Resource Manager ID of the storage account resource.key()Get the key property: The storage account key.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Set the id property: The Azure Resource Manager ID of the storage account resource.Set the key property: The storage account key.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StorageAccount
public StorageAccount()Creates an instance of StorageAccount class.
-
-
Method Details
-
id
Get the id property: The Azure Resource Manager ID of the storage account resource.- Returns:
- the id value.
-
withId
Set the id property: The Azure Resource Manager ID of the storage account resource.- Parameters:
id- the id value to set.- Returns:
- the StorageAccount object itself.
-
key
-
withKey
Set the key property: The storage account key.- Parameters:
key- the key value to set.- Returns:
- the StorageAccount object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StorageAccount>- Throws:
IOException
-
fromJson
Reads an instance of StorageAccount from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of StorageAccount 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 StorageAccount.
-