java.lang.Object
com.azure.resourcemanager.resources.fluentcore.utils.ETagState

public class ETagState extends Object
Utility class for ETag state handling.
  • Constructor Details

    • ETagState

      public ETagState()
  • Method Details

    • withImplicitETagCheckOnCreateOrUpdate

      public ETagState withImplicitETagCheckOnCreateOrUpdate(boolean isInCreateMode)
      Specifies if it is in create or update with implicit ETag check.
      Parameters:
      isInCreateMode - The boolean flag to indicate if it is in create mode.
      Returns:
      the ETag state.
    • withExplicitETagCheckOnUpdate

      public ETagState withExplicitETagCheckOnUpdate(String eTagValue)
      Specifies the explicit ETag value on update.
      Parameters:
      eTagValue - The explicit ETag value.
      Returns:
      the ETag state.
    • withExplicitETagCheckOnDelete

      public ETagState withExplicitETagCheckOnDelete(String eTagValue)
      Specifies the explicit ETag value on delete.
      Parameters:
      eTagValue - The explicit ETag value.
      Returns:
      the ETag state.
    • clear

      public ETagState clear()
      Clears the stored values in ETag state
      Returns:
      the ETag state.
    • ifMatchValueOnUpdate

      public String ifMatchValueOnUpdate(String currentETagValue)
      Specifies the ETag value for If-Match header on update.
      Parameters:
      currentETagValue - The current ETag value.
      Returns:
      the ETag value.
    • ifMatchValueOnDelete

      public String ifMatchValueOnDelete()
      Specifies the ETag value for If-Match header on delete.
      Returns:
      the ETag value.
    • ifNonMatchValueOnCreate

      public String ifNonMatchValueOnCreate()
      Specifies the ETag value for If-None-Match header on create.
      Returns:
      the ETag value.