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
    Constructor
    Description
    Creates an instance of StorageAccount class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(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.JsonWriter
    toJson(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, wait

    Methods 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

      public String id()
      Get the id property: The Azure Resource Manager ID of the storage account resource.
      Returns:
      the id value.
    • withId

      public StorageAccount withId(String id)
      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

      public String key()
      Get the key property: The storage account key.
      Returns:
      the key value.
    • withKey

      public StorageAccount withKey(String key)
      Set the key property: The storage account key.
      Parameters:
      key - the key value to set.
      Returns:
      the StorageAccount object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<StorageAccount>
      Throws:
      IOException
    • fromJson

      public static StorageAccount fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.