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 "CURRENT_USER" which is not part of the standard ObjectValueType enum as it's 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 null since CURRENT_USER is not part of the standard ObjectValueType enum.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.- 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 null since CURRENT_USER is not part of the standard ObjectValueType enum. The objectType field is handled separately viagetObjectTypeString().- Returns:
- null
-
-