/** * Indicates whether the specified object has a Legal Hold in place. */ public ObjectLockLegalHold withStatus(ObjectLockLegalHoldStatus status) { this.status = status.toString(); return this; }
/** * Specifies whether you want to apply a Legal Hold to the copied object. */ public CopyObjectRequest withObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { return withObjectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); }
public static ObjectLockLegalHoldStatus fromString(String objectLockLegalHoldStatusString) { for (ObjectLockLegalHoldStatus v : ObjectLockLegalHoldStatus.values()) { if (v.toString().equals(objectLockLegalHoldStatusString)) { return v; } } throw new IllegalArgumentException("Cannot create enum from " + objectLockLegalHoldStatusString + " value!"); }
/** * Specifies whether you want to apply a Legal Hold to the copied object. */ public void setObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { setObjectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); } }
/** * The Legal Hold status that you want to apply to the specified object. */ public <T extends PutObjectRequest> T withObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { return withObjectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); }
/** * The Legal Hold status that you want to apply to the specified object. */ public void setObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { setObjectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); } }
/** * Indicates whether the specified object has a Legal Hold in place. */ public void setStatus(ObjectLockLegalHoldStatus status) { setStatus(status.toString()); } }
/** * The Legal Hold status that you want to apply to the specified object. */ public void setObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { setObjectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); }
/** * The Legal Hold status that you want to apply to the specified object. */ public InitiateMultipartUploadRequest withObjectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { return withObjectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); }