Package com.google.cloud.hadoop.gcsio
Class ObjectWriteConditions
- java.lang.Object
-
- com.google.cloud.hadoop.gcsio.ObjectWriteConditions
-
public abstract class ObjectWriteConditions extends Object
Conditions on which a object write should be allowed to continue. Corresponds to settingIfGenerationMatchandIfMetaGenerationMatchin API requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectWriteConditions.Builder
-
Field Summary
Fields Modifier and Type Field Description static ObjectWriteConditionsNONENo conditions for completing the write.
-
Constructor Summary
Constructors Constructor Description ObjectWriteConditions()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidapply(com.google.api.services.storage.Storage.Objects.Insert objectToInsert)Apply the conditions represented by this object to an Insert operation.static ObjectWriteConditions.Builderbuilder()abstract LonggetContentGenerationMatch()abstract LonggetMetaGenerationMatch()booleanhasContentGenerationMatch()booleanhasMetaGenerationMatch()abstract ObjectWriteConditions.BuildertoBuilder()
-
-
-
Field Detail
-
NONE
public static final ObjectWriteConditions NONE
No conditions for completing the write.
-
-
Method Detail
-
builder
public static ObjectWriteConditions.Builder builder()
-
toBuilder
public abstract ObjectWriteConditions.Builder toBuilder()
-
getMetaGenerationMatch
@Nullable public abstract Long getMetaGenerationMatch()
-
hasMetaGenerationMatch
public boolean hasMetaGenerationMatch()
-
getContentGenerationMatch
@Nullable public abstract Long getContentGenerationMatch()
-
hasContentGenerationMatch
public boolean hasContentGenerationMatch()
-
apply
public void apply(com.google.api.services.storage.Storage.Objects.Insert objectToInsert)
Apply the conditions represented by this object to an Insert operation.
-
-