/** * <p> * Indicates whether the specified object has a Legal Hold in place. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #status} will * return {@link ObjectLockLegalHoldStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is * available from {@link #statusAsString}. * </p> * * @return Indicates whether the specified object has a Legal Hold in place. * @see ObjectLockLegalHoldStatus */ public ObjectLockLegalHoldStatus status() { return ObjectLockLegalHoldStatus.fromValue(status); }
/** * Use this in place of valueOf to convert the raw string returned by the service into the enum value. * * @param value * real value * @return ObjectLockLegalHoldStatus corresponding to the value */ public static ObjectLockLegalHoldStatus fromValue(String value) { if (value == null) { return null; } return Stream.of(ObjectLockLegalHoldStatus.values()).filter(e -> e.toString().equals(value)).findFirst() .orElse(UNKNOWN_TO_SDK_VERSION); }
@Override public final Builder objectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { this.objectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); return this; }
/** * Use this in place of {@link #values()} to return a {@link Set} of all values known to the SDK. This will return * all known enum values except {@link #UNKNOWN_TO_SDK_VERSION}. * * @return a {@link Set} of known {@link ObjectLockLegalHoldStatus}s */ public static Set<ObjectLockLegalHoldStatus> knownValues() { return Stream.of(values()).filter(v -> v != UNKNOWN_TO_SDK_VERSION).collect(toSet()); } }
@Override public final Builder objectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { this.objectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); return this; }
@Override public final Builder objectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { this.objectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); return this; }
/** * <p> * Specifies whether you want to apply a Legal Hold to the uploaded object. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, * {@link #objectLockLegalHoldStatus} will return {@link ObjectLockLegalHoldStatus#UNKNOWN_TO_SDK_VERSION}. The raw * value returned by the service is available from {@link #objectLockLegalHoldStatusAsString}. * </p> * * @return Specifies whether you want to apply a Legal Hold to the uploaded object. * @see ObjectLockLegalHoldStatus */ public ObjectLockLegalHoldStatus objectLockLegalHoldStatus() { return ObjectLockLegalHoldStatus.fromValue(objectLockLegalHoldStatus); }
@Override public final Builder objectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { this.objectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); return this; }
/** * <p> * The Legal Hold status that you want to apply to the specified object. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, * {@link #objectLockLegalHoldStatus} will return {@link ObjectLockLegalHoldStatus#UNKNOWN_TO_SDK_VERSION}. The raw * value returned by the service is available from {@link #objectLockLegalHoldStatusAsString}. * </p> * * @return The Legal Hold status that you want to apply to the specified object. * @see ObjectLockLegalHoldStatus */ public ObjectLockLegalHoldStatus objectLockLegalHoldStatus() { return ObjectLockLegalHoldStatus.fromValue(objectLockLegalHoldStatus); }
@Override public final Builder status(ObjectLockLegalHoldStatus status) { this.status(status.toString()); return this; }
/** * <p> * The Legal Hold status for the specified object. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, * {@link #objectLockLegalHoldStatus} will return {@link ObjectLockLegalHoldStatus#UNKNOWN_TO_SDK_VERSION}. The raw * value returned by the service is available from {@link #objectLockLegalHoldStatusAsString}. * </p> * * @return The Legal Hold status for the specified object. * @see ObjectLockLegalHoldStatus */ public ObjectLockLegalHoldStatus objectLockLegalHoldStatus() { return ObjectLockLegalHoldStatus.fromValue(objectLockLegalHoldStatus); }
@Override public final Builder objectLockLegalHoldStatus(ObjectLockLegalHoldStatus objectLockLegalHoldStatus) { this.objectLockLegalHoldStatus(objectLockLegalHoldStatus.toString()); return this; }
/** * <p> * Specifies whether you want to apply a Legal Hold to the copied object. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, * {@link #objectLockLegalHoldStatus} will return {@link ObjectLockLegalHoldStatus#UNKNOWN_TO_SDK_VERSION}. The raw * value returned by the service is available from {@link #objectLockLegalHoldStatusAsString}. * </p> * * @return Specifies whether you want to apply a Legal Hold to the copied object. * @see ObjectLockLegalHoldStatus */ public ObjectLockLegalHoldStatus objectLockLegalHoldStatus() { return ObjectLockLegalHoldStatus.fromValue(objectLockLegalHoldStatus); }
/** * <p> * Indicates whether this object has an active legal hold. This field is only returned if you have permission to * view an object's legal hold status. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, * {@link #objectLockLegalHoldStatus} will return {@link ObjectLockLegalHoldStatus#UNKNOWN_TO_SDK_VERSION}. The raw * value returned by the service is available from {@link #objectLockLegalHoldStatusAsString}. * </p> * * @return Indicates whether this object has an active legal hold. This field is only returned if you have * permission to view an object's legal hold status. * @see ObjectLockLegalHoldStatus */ public ObjectLockLegalHoldStatus objectLockLegalHoldStatus() { return ObjectLockLegalHoldStatus.fromValue(objectLockLegalHoldStatus); }