Class ETagState
java.lang.Object
com.azure.resourcemanager.resources.fluentcore.utils.ETagState
Utility class for ETag state handling.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear()Clears the stored values in ETag stateSpecifies the ETag value for If-Match header on delete.ifMatchValueOnUpdate(String currentETagValue) Specifies the ETag value for If-Match header on update.Specifies the ETag value for If-None-Match header on create.withExplicitETagCheckOnDelete(String eTagValue) Specifies the explicit ETag value on delete.withExplicitETagCheckOnUpdate(String eTagValue) Specifies the explicit ETag value on update.withImplicitETagCheckOnCreateOrUpdate(boolean isInCreateMode) Specifies if it is in create or update with implicit ETag check.
-
Constructor Details
-
ETagState
public ETagState()Creates a new instance of ETagState.
-
-
Method Details
-
withImplicitETagCheckOnCreateOrUpdate
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
Specifies the explicit ETag value on update.- Parameters:
eTagValue- The explicit ETag value.- Returns:
- the ETag state.
-
withExplicitETagCheckOnDelete
Specifies the explicit ETag value on delete.- Parameters:
eTagValue- The explicit ETag value.- Returns:
- the ETag state.
-
clear
Clears the stored values in ETag state- Returns:
- the ETag state.
-
ifMatchValueOnUpdate
Specifies the ETag value for If-Match header on update.- Parameters:
currentETagValue- The current ETag value.- Returns:
- the ETag value.
-
ifMatchValueOnDelete
Specifies the ETag value for If-Match header on delete.- Returns:
- the ETag value.
-
ifNonMatchValueOnCreate
Specifies the ETag value for If-None-Match header on create.- Returns:
- the ETag value.
-