Class ETagState
- java.lang.Object
-
- com.azure.resourcemanager.resources.fluentcore.utils.ETagState
-
public class ETagState extends Object
Utility class for ETag state handling.
-
-
Constructor Summary
Constructors Constructor Description ETagState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ETagStateclear()Clears the stored values in ETag stateStringifMatchValueOnDelete()Specifies the ETag value for If-Match header on delete.StringifMatchValueOnUpdate(String currentETagValue)Specifies the ETag value for If-Match header on update.StringifNonMatchValueOnCreate()Specifies the ETag value for If-None-Match header on create.ETagStatewithExplicitETagCheckOnDelete(String eTagValue)Specifies the explicit ETag value on delete.ETagStatewithExplicitETagCheckOnUpdate(String eTagValue)Specifies the explicit ETag value on update.ETagStatewithImplicitETagCheckOnCreateOrUpdate(boolean isInCreateMode)Specifies if it is in create or update with implicit ETag check.
-
-
-
Method Detail
-
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.
-
-