@NotThreadSafe public final class SetAttributeOptions extends Object
Constructor and Description |
---|
SetAttributeOptions(SetAttributeTOptions options)
Constructs a new method option for setting the attributes.
|
Modifier and Type | Method and Description |
---|---|
static SetAttributeOptions |
defaults() |
boolean |
equals(Object o) |
CommonOptions |
getCommonOptions() |
String |
getGroup() |
Short |
getMode() |
long |
getOperationTimeMs() |
String |
getOwner() |
Boolean |
getPersisted() |
Boolean |
getPinned() |
Long |
getTtl() |
TtlAction |
getTtlAction() |
String |
getUfsFingerprint() |
int |
hashCode() |
boolean |
isRecursive() |
SetAttributeOptions |
setCommonOptions(CommonOptions options) |
SetAttributeOptions |
setGroup(String group) |
SetAttributeOptions |
setMode(short mode) |
SetAttributeOptions |
setOperationTimeMs(long operationTimeMs) |
SetAttributeOptions |
setOwner(String owner) |
SetAttributeOptions |
setPersisted(boolean persisted) |
SetAttributeOptions |
setPinned(boolean pinned) |
SetAttributeOptions |
setRecursive(boolean recursive) |
SetAttributeOptions |
setTtl(long ttl) |
SetAttributeOptions |
setTtlAction(TtlAction ttlAction) |
SetAttributeOptions |
setUfsFingerprint(String ufsFingerprint) |
String |
toString() |
public SetAttributeOptions(SetAttributeTOptions options)
options
- the options for setting the attributespublic static SetAttributeOptions defaults()
SetAttributeOptions
public CommonOptions getCommonOptions()
public Boolean getPinned()
public Long getTtl()
public Boolean getPersisted()
public String getOwner()
public String getGroup()
public Short getMode()
public boolean isRecursive()
public long getOperationTimeMs()
public String getUfsFingerprint()
public SetAttributeOptions setCommonOptions(CommonOptions options)
options
- the common optionspublic SetAttributeOptions setPinned(boolean pinned)
pinned
- the pinned flag value to usepublic SetAttributeOptions setTtl(long ttl)
ttl
- the time-to-live (in seconds) to usepublic SetAttributeOptions setTtlAction(TtlAction ttlAction)
ttlAction
- the TtlAction
to usepublic SetAttributeOptions setPersisted(boolean persisted)
persisted
- the persisted flag value to usepublic SetAttributeOptions setOwner(String owner)
owner
- the owner to useIllegalArgumentException
- if the owner is set to emptypublic SetAttributeOptions setGroup(String group)
group
- the group to useIllegalArgumentException
- if the group is set to emptypublic SetAttributeOptions setMode(short mode)
mode
- the mode bits to usepublic SetAttributeOptions setRecursive(boolean recursive)
recursive
- whether owner / group / mode should be updated recursivelypublic SetAttributeOptions setOperationTimeMs(long operationTimeMs)
operationTimeMs
- the operation time to usepublic SetAttributeOptions setUfsFingerprint(String ufsFingerprint)
ufsFingerprint
- the ufs fingerprintCopyright © 2023. All Rights Reserved.