Package com.smartsheet.api.models
Class CurrentUserObjectValue
- java.lang.Object
-
- com.smartsheet.api.models.CurrentUserObjectValue
-
- All Implemented Interfaces:
ReportFilterObjectValue
public class CurrentUserObjectValue extends java.lang.Object implements ReportFilterObjectValue
Represents a CURRENT_USER filter value for report filters.This is used to match against the current authenticated user in report filter criteria. The objectType is represented by
ObjectValueType.CURRENT_USER, which is specific to report filters.
-
-
Constructor Summary
Constructors Constructor Description CurrentUserObjectValue()Default constructor.CurrentUserObjectValue(java.lang.String value)Constructor with custom value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectValueTypegetObjectType()Returns the object value type for a CURRENT_USER filter value.java.lang.StringgetObjectTypeString()Gets the object type string.java.lang.StringgetValue()Gets the value.CurrentUserObjectValuesetValue(java.lang.String value)Sets the value.
-
-
-
Constructor Detail
-
CurrentUserObjectValue
public CurrentUserObjectValue()
Default constructor. Sets value to empty string which is typical for CURRENT_USER filters.
-
CurrentUserObjectValue
public CurrentUserObjectValue(java.lang.String value)
Constructor with custom value.- Parameters:
value- the value (typically empty for CURRENT_USER)
-
-
Method Detail
-
getObjectTypeString
public java.lang.String getObjectTypeString()
Gets the object type string. This returns "CURRENT_USER" for JSON serialization.- Returns:
- "CURRENT_USER"
-
getValue
public java.lang.String getValue()
Gets the value.Annotated
JsonIgnorebecause the CURRENT_USER filter wire format defines onlyobjectType; the value is an SDK-side convenience and is not sent to the API.- Returns:
- the value (typically empty string)
-
setValue
public CurrentUserObjectValue setValue(java.lang.String value)
Sets the value.- Parameters:
value- the value- Returns:
- this CurrentUserObjectValue for method chaining
-
getObjectType
public ObjectValueType getObjectType()
Returns the object value type for a CURRENT_USER filter value. AnnotatedJsonIgnoreso serialization is driven solely bygetObjectTypeString(), keeping the wire format{"objectType":"CURRENT_USER","value":""}.- Specified by:
getObjectTypein interfaceReportFilterObjectValue- Returns:
ObjectValueType.CURRENT_USER
-
-