Class ImmutableStorageWithVersioning


  • public final class ImmutableStorageWithVersioning
    extends Object
    Object level immutability properties of the container.
    • Constructor Detail

      • ImmutableStorageWithVersioning

        public ImmutableStorageWithVersioning()
    • Method Detail

      • 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.