Class ImmutableStorageWithVersioning

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

public final class ImmutableStorageWithVersioning extends Object implements com.azure.json.JsonSerializable<ImmutableStorageWithVersioning>
Object level immutability properties of the container.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ImmutableStorageWithVersioning class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ImmutableStorageWithVersioning from the JsonReader.
    Get the migrationState property: This property denotes the container level immutability to object level immutability migration state.
    Get the timestamp property: Returns the date and time the object level immutability was enabled.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.

    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

    • ImmutableStorageWithVersioning

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

    • enabled

      public Boolean enabled()
      Get the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.
      Returns:
      the enabled value.
    • withEnabled

      public ImmutableStorageWithVersioning withEnabled(Boolean enabled)
      Set the enabled property: This is an immutable property, when set to true it enables object level immutability at the container level.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ImmutableStorageWithVersioning object itself.
    • timestamp

      public OffsetDateTime timestamp()
      Get the timestamp property: Returns the date and time the object level immutability was enabled.
      Returns:
      the timestamp value.
    • migrationState

      public MigrationState migrationState()
      Get the migrationState property: This property denotes the container level immutability to object level immutability migration state.
      Returns:
      the migrationState 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<ImmutableStorageWithVersioning>
      Throws:
      IOException
    • fromJson

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