Interface UserProfileEnforcementAction.Visitor
-
- All Implemented Interfaces:
public interface UserProfileEnforcementAction.Visitor<T extends Object>An interface that defines how to map each variant of UserProfileEnforcementAction to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitRestriction(UserProfileEnforcementActionRestriction restriction)Anthropic has limited how it serves the end user until the action is resolved. abstract TvisitBan(UserProfileEnforcementActionBan ban)Anthropic has stopped serving the end user where the ban applies and does not plan to serve them there again. Tunknown(JsonValue json)Maps an unknown variant of UserProfileEnforcementAction to a value of type T. -
-
Method Detail
-
visitRestriction
abstract T visitRestriction(UserProfileEnforcementActionRestriction restriction)
Anthropic has limited how it serves the end user until the action is resolved. The end user may still be served in part.
-
visitBan
abstract T visitBan(UserProfileEnforcementActionBan ban)
Anthropic has stopped serving the end user where the ban applies and does not plan to serve them there again.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of UserProfileEnforcementAction to a value of type T.
An instance of UserProfileEnforcementAction can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-